Inform 6 entry point functions not recognized?

I’m interested in some of the entry point functions given here in the DM, but several seem to have been removed from the latest Inform 6 compiler (compiler 6.34 and lib 6.12.2 from ifarchive). The code

[ GamePreRoutine;
      print "in GamePreRoutine";
];

results in compilation error
"
Error: Expected routine name but found GamePreRoutine
> [ GamePreRoutine
"

and the code

[BeforeParsing;
      print "in BeforeParsing";
];

results in
"
Error: Expected routine name but found BeforeParsing
> [ BeforeParsing
"

Are these functions actually deprecated are am I using them wrong? Assuming the former, where can I find a list of up-to-date entry point functions (and/or where do they appear in the Inform compiler source)?

1 Like

They’re not deprecated, and they work when I try them in a minimal game.

[ GamePreRoutine;
	"Test!";
];

Include "Parser";
Include "VerbLib";

[ Initialise;
  location = Kitchen;
];

Object Kitchen "Kitchen"
  has light;
	  
Include "Grammar";
Release 1 / Serial number 190815 / Inform v6.34 Library v6.12.2 S
Test!

Did you set up your game differently?

1 Like

Now that I remember the ancient ways, I bet your mistake was putting the entry point definitions at the end of the source code. They have to go before the Include "Grammar"; line.

3 Likes