4.30 star(s) 4 Votes

Davox

Well-Known Member
Jul 15, 2017
1,526
2,384
490
are the old saves corrupted?, i can use my save of 5 months ago
Like last time, my old save doesn't work. I can't click on anything.
Same problem. Can someone fix it.
scroll up.... the answer is only a few posts above yours......


Try this as a fix to not being able to click to continue. It will give you an error when it opens but it seems to work.
All i did was copy all the game set up code from the top of last update to the top of this update. No idea if it will break things later on but you can at least continue your old saves
Firstly, I'm not a dev of any game based on SugarCube engine.
Secondly, I've done some debugging based on parts, which you carved out (good job for finding that).
Apparently, new scripts which are handling event of clicking are checking, if property State.variables.presentContentOnClick is either true or false, but at the same time does nothing and does not throw explicit error for any other value.
At the same time, my working hypothesis is, that when generating save whole property State is dumped into a file and because previous version of the game had no property State.variables.presentContentOnClick at all, event is simply started and exited without action or error.
Thirdly, for new game, property State.variables.presentContentOnClick is set by default to true.

For old saves, instead of going with explicit modification of index.html, at least for my tests, it is sufficient to start default index.html, load old save, then start Developer tools and add presentContentOnClick property using command

SugarCube.State.variables.presentContentOnClick=true
 
4.30 star(s) 4 Votes