Hopefully this is my last noob question: how does a player Save and Load a game I created in Inform? I’d like to include this in my instructions, but I can’t seem to find the answer. Is it dependent on the Interpreter they’ve downloaded to play the game, or does Inform have a built-in system? Maybe I just missed this part in the manuals?
Inform has a built-in system. (Specifically, saving and restoring are out of world actions. For a full list of out of world actions, go to the Index, Actions tab, and look under ‘Standard actions which happen out of world’.) >SAVE and >RESTORE are the relevant commands.
Thanks, but when I try that in Inform (in the “game” tab/window) it says “save failed”. Is this because I’m “in” Inform i.e. - I have the skein and the editor? If I was simply playing it would work? Also, it’s not very specific about what the player actually types. Do they just type “Save” or do they have to specify the name of the save game? Ditto for Restore?
EDIT: Thanks Blecki - I didn’t see your post there.
I don’t think you can save or restore in Inform 7’s editor unless you make your own data recording system. As for the original save system, it will always result in a “failed” message if you try under the game tab.
By default the only commands that work are “save” and “restore.” The user should not specify file names, as the interpreter will bring up its own window or other kind of prompt to let people choose the file to work with.
Should they? Every time someone has asked about this it’s been dismissed with “it’s just the IDE”. I assumed it’s by design, especially since save games aren’t compatible between versions and the story file you’re working with in the IDE is changing all the time.
Really? I’ve always assumed that save and restore weren’t meant to work in the Inform 7 IDE and that they’re only meant to work when the game is released. In that case I can file that report if no one has already done so.
Well, it’s better that save and restore work rather than not since it could come in useful for those tinkering with the save and restore mechanism and the author wouldn’t have to “release” the game just to test such features. Plus, everything else that doesn’t deal with the save and restore mechanism won’t be affected.