Skip to content

ARun: Add IFID Info and Recovery Switches #3

@tajmone

Description

@tajmone

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:

  • an -info switch to show some basic info on the .a3c file, including its IFID and the compiler version used.
  • a switch to recover the .ifid file from an .a3c story 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.:

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions