I've now added a note about this to the new "Using Squiffy" page in the documentation:
http://docs.textadventures.co.uk/squiffy/usage.htmlI'm wondering if the current behaviour makes sense. My thinking was that an author might want to be able to update their game, and re-upload it somewhere, without killing the game state for anybody who had started playing it.
But now I'm wondering if that will always be desirable - a game author might make a change to their game which is not compatible with existing saved states. And while developing a game, it's a pain to always have to click the Restart link. And it's confusing if you're not expecting it to work that way.
What do you guys think?
The saved state for a game goes into the browser's local storage, using a prefix (which allows multiple games to exist with their own separate states, even if they're served by the same host). The prefix is a hash of the game filename and machine id, so recompiling the same game will still give you the same hash, so it will be using the same local storage. We could change this to use a hash of the game source code instead, with an option for an author to manually set the prefix to be the same as an older hash if they wanted save states to persist between versions. This would require the author to remember to do that though. Hmmmm....