Remember back, oh, about April – a million weeks ago – I said that I wanted to get autosave working in Glulxe+RemGlk?
It works now. See the bleeding-edge repositories:
This may be useful if you’re creating a bot or online game-playing service. It supports two slightly different use cases:
- Hedging against the possibility of process termination
This is how the iOS interpreters work. (Or worked, since I’m not supporting them on current iOS.) The app starts and runs normally, but it could be killed at any time (when in the background). Therefore, we autosave every turn. At startup time, if autosave files exist, we restore them and continue play.
- Single-turn operation
This allows you to run an ongoing game with no background process! Every time a user input arrives, you launch the interpreter and shove the input into stdin. The interpreter reads the autosave file, processes the input, generates a turn’s worth of output, updates the autosave, and exits.
See the README file at https://github.com/erkyrath/glulxe for more info on using the interpreter in these two modes.