Extensions:The Standard Rules mentions that this line is always included:
Include the Standard Rules by Graham Nelson.
I’ve used 6G95 and 6L38 and both have different locations for the extensions.
6G95: c:\Program Files (x86)\Inform 7\Inform7
Which led me to wonder if there is a way to change where the Inform Windows IDE checks manually or with the registry. It seems like it can be changed, but I don’t know how. And doing a registry search turned up nothing.
The thing is, I’d ideally like one Standard Rules directory for super-small projects with a stripped down parser, and one for standard projects. I can of course swap out two versions of the file when I change the project I’m focused on, but that’s bound to create unexpected nuisances occasionally when I forget to swap them.
I’d feel much more comfortable changing, say, the registry, as I have a batch file to open up various Inform projects and so I could just add a line to point to the appropriate extension directories.
Any suggestions on how I could change the extensions directory the Windows IDE sees? Thanks!
This isn’t quite right. Inform looks for extension in three places:
In a directory under where it is installed. This is where the standard extensions that come with Inform live. For 6M62 it’s the “Internal/Extensions” sub-directory of the install location, though it was in a slightly different place in past versions.
In the “Inform/Extensions” sub-directory of your “My Documents” location. This is where user installed or created extensions live.
In an “Extensions” sub-directory of a project’s “materials” directory. This is where project-local extensions live.
In general it’s a very bad idea to edit any of the standard extensions in the install directory. There are a couple of ways of trying to set things up:
You can change the home directory used for user installed extensions from its “My Documents” default by creating a “home.txt” file in the same directory as the executable. See the help on “Home Directory” under the “Help / Windows Inform Notes” menu. You could then copy the standard extensions to this new home directory and edit it: ones in this directory will take precedence over those in the install directory. But you have to be careful: if you use a copy of Standard Rules with any other version of the compiler than the one it came with, you’ll get lots of strange errors.
You could set up a copy of the standard rules in the “materials” directory for the project, and use that. This is probably the best approach. The only real problem is that at the moment you can’t easily edit such project-local extensions from the front-end.
To bump this…I finally had time to sit down and sort things out.
My source is at:
The materials folder is at:
I copied the Standard Rules to a backup file, then copied them to
C:\games\inform\ectocomp16 Materials\Extensions\Graham Nelson
C:\games\inform\ectocomp16 Materials\Inform\Extensions\Graham Nelson
C:\games\inform\ectocomp16 Materials\Extensions\Inform\Graham Nelson
However, the IDE doesn’t recognize the new standard rules anywhere.
Again this isn’t a huge deal…I can work around it. But if I’m missing something dumb it’d be great to know.
Also, modifying home.txt in C:\Program Files (x86)\Inform 7\inform7.exe to say
doesn’t point to the new extensions either. Again I tried various folder name combinations.