Somewhat related - I've found that the game seems to remember everything you've ever done in every playthrough on your saves… would be nice if the game could cull most of the previous info out
Wape as it creates longer load/save times. That, or have the endings/stats/etc saved separately from the game (I tend to save at the starting picker each playthrough so the cruft has gotten excessive in the save files).
To expand on this, it's the
SugarCube.State.history
object that's probably the easiest major thing to remove from the saves. SugarCube uses it so that players can jump back to previous pages to make different decisions, but this game doesn't allow that anyways. To disable it, simply put
Config.history.maxStates = 1;
in a script tagged passage.
I did a bit of testing myself by putting that line in the same area that the functions
setup.findVar()
,
setup.initDB()
,
setup.grabCSV()
, etc. are defined. Resulted in an immediate reduction in save file size of about 80% (~300kB -> ~60 kB).
Some other potentially low hanging fruit for save file size reduction might be to move all those
$db_
variables into the setup object. I'm not seeing any reason for those to be contained in a save file.