weatherfactory / cultistsimulator-visible

Read-only preview builds of Cultist Simulator for the convenience of modders and the curious.
https://weatherfactory.biz/cultist-simulator/
37 stars 5 forks source link

Save problem - 'corrupted' / backwards compat? #246

Closed alexiskennedy closed 1 year ago

alexiskennedy commented 1 year ago

"Hi, I reloaded the game to try and finish a major Grail victory run I started a long time ago, but it seems the .json file is corrupted? I was wondering if you'd know any way to help? Attached are the save files! Thank you for your time!" Attachments (1).zip

If it's recoverable it'd be nice to help, but I'm most interested in whether this is a reproducible backwards-compat bug.

alexiskennedy commented 1 year ago

hs 7476

Chelnoque commented 1 year ago

Should've looked at this earlier. Apparently, the actual problem here was about the game not finding a freshly-created save.json.

So, at least, both saves are, afaik, completely ok. Renaming save.json_corrupted loads after proper renaming (into just save.json); reimporting save.txt results in the working save.json. Maybe it's still relevant to the user.

On the other hand, not so long there was a similar problem - the game cheerfully reports a successful save, and a few lines later "uh oh there's no file to load". Not sure why it happens yet, but worth adding a catch, at the very least.