After having looked into how IFIDs work in ALAN, I gathered the following:
- The compiler always look for an
.ifid file with same-name as the source adventure, and if the file exists (and contains a valid IFID string) it will reuse that IFID again, otherwise it will generate a new IFID.
- The compiler (from a certain version onward) now also stores a copy of the IFID string after the ACodeHeader, inside the
.a3c story file.
The problem is that if the user looses the original .ifid file, he/she has no way to recover it from the story file (except via an hex-editor).
I propose to add to ARun:
It seems to me that currently the IFID doesn't play a big role in Alan — it's there, but not much visibility is given to it. For example, it would be good to be able to access the IFID from within an adventure in order to be able to print it — via some built-in keyword constant, like IFID. E.g.:
"Adventure IFID:" Say IFID.
The other terps (WinARun, Gargoyle slot, etc.) should also have a menu to show the IFID and compiler version info of the currently running adventure.
After having looked into how IFIDs work in ALAN, I gathered the following:
.ifidfile with same-name as the source adventure, and if the file exists (and contains a valid IFID string) it will reuse that IFID again, otherwise it will generate a new IFID..a3cstory file.The problem is that if the user looses the original
.ifidfile, he/she has no way to recover it from the story file (except via an hex-editor).I propose to add to ARun:
-infoswitch to show some basic info on the.a3cfile, including its IFID and the compiler version used..ifidfile from an.a3cstory file — i.e. parse the IFID string contained after the ACodeHeader and recreate the lost text file.It seems to me that currently the IFID doesn't play a big role in Alan — it's there, but not much visibility is given to it. For example, it would be good to be able to access the IFID from within an adventure in order to be able to print it — via some built-in keyword constant, like
IFID. E.g.:The other terps (WinARun, Gargoyle slot, etc.) should also have a menu to show the IFID and compiler version info of the currently running adventure.