Glulx Problem

Dear all,

I’m trying to set up a new game in Inform 6 with the option to include graphics. I’ve downloaded infglk.h, put it into the Inform 6\Lib\Base directory, added

Include “infglk”;

to my empty game and use

…..\Lib\Base\Inform6 -D -G -s $MAX_ACTIONS=250 $MAX_OBJECTS=1000 $MAX_PROP_TABLE_SIZE=70000 Examplegame +include_path=.,…..\Lib\Base,…..\Lib\Contrib | more

in my .bat.

When I run the .bat I get tons of errors, starting with

…..\Lib\Base\Parser.h(1201): Error: No such constant as “HandleGlkEvent”

Probably I simply miss a file or use an outdated library or whatever, but I have no idea where to look. Any suggestions or questions?

Thanks and kind regards,
Grues

if you’re using the most current version of inform6 i don’t think you have to do anything except compile to Glulx. all the necessary files are already included and in the right places.

1 Like

Okay, thanks! But I have a 13.000-lines-of-sourcecode WIP accessing the same library. I’m using Inform 6.35. If I updated that, would my WIP still run? Because if not, I’d be ready to start WW3.

Which I6 library version? The Inform compiler version doesn’t tell us much.

1 Like

Seems to be version 6.12.5. Can that be correct? That’s what the .h (e.g. parser.h) files say.

Yes, that fits. Library 6.12.5 was released in 2021.

All 6.12.* library releases already include the infglk.h header. You don’t need to download that.

Are you including all the usual header files? That error looks like maybe you forgot to include grammar.h. Although I’m just guessing.

1 Like

Hmmm… I sorted the "Include"s and changed caps and lower cases and now it compiles! Thanks a lot, and let’s see where this leads to…