Hello everyone,
First post here. Been using Twine with Sugarcube for about a year now, slowly refining an interactive novel I'm working on. So far so good - most of the issues I've come across I've been able to solve - excellent tool and framework.
Unfortunately, there's one damning thing which keeps nagging me: save file size. Since the sugarcube savefile basically saves every gamestate, this can easily grow over a meg, especially with a large number of variables being tracked, bringing poor performance and sluggish behavior.
Now, I'm aware there's a single-state mode, which would circumvent this issue entirely. But it made me think: is there any way to limit the history to, say, the last 50 states? My concern here is to allow the player some 'undo' functionality without requiring to constantly revert to an autosave set at some (from the player's perspective) arbitrary point.
If not - oh well. But I figured I'd ask none the less.
Comments
When's the last time you updated SugarCube? It sounds like you're using an older version.
Current SugarCube (latest is v0.9.6) saves are quite svelte. The saved state history is delta encoded and then the entire save is compressed. They, literally, can't get much smaller. There have been several other improvements in this area as well.
No. Not without breaking the window history as soon as you start truncating the story history.
I was indeed using an older version and hadn't noticed. I feel so silly now...