Brand new to Inform and basically brand new to writing IF. This may have been answered already, but for the love of Miracle Whip, I can’t find it.
I dabbled a bit with AGT some years ago and loved it, but reading the reviews I get the sense that Inform is the generally “preferred” way to go. (No offense to the TADS guys out there.) So, I’m trying to cobble some things together. However, coming from a PHP background, this whole “you must cram everything into a single text file” is driving me absolutely insane. While it the pain may ease slightly once the foundation of the project is in place, I’m currently scrolling all over the place trying to update things as it occurs to me that they need to be updated. As heavily as I comment things, it’s even more difficult to find what I’m looking for.
It seems to me that when you “install” an extension, it does absolutely nothing more than copy it to another directory. Inform reads these directories when it opens and allows you to include them in your story file. I see no indication that it does any sort of “pre-compile” or even touches the extensions once it loads except to read the first and last lines and whatever included documentation. I also see no indication that it attempts to actually load the extension file until it compiles the story, which leads me to wonder if editing the extension while Inform is open even matters.
I also looked at the extension files. They seem to be nothing more than Inform “coding” stored in an external file. They can also be edited inside of Inform.
So my question…
Could a project theoretically be broken down into a collection of “extensions” to ease the editing of a massive story file?
For example, say I want all of my “Every turn” rules to go in a single file, so I know exactly where to find them. I want my tables to go in a single file, so I know where to edit them. I want my rule re-writes to go into a single file, so I know where to edit them.
I “install” these “extensions” and include them in my main story file, preferably in an order that doesn’t break the compile. When I’m finished with them, if I don’t want to use them in another project, I move them out of the extensions folder and Inform no longer recognizes them and thus they are “uninstalled”.
Is there a TECHNICAL reason or limitation in Inform that would prevent this from being feasible?
Include Game Name Globals by I4L.
Include Game Name Coversation Tables by I4L.
Include Game Name Turn Rules by I4L.