JSON File Error

I’m getting a pretty common error.

Error starting application:

Error reading file “C:/Program Files(x86)\Stream\steamapps\commono\Stonehearth\user_settings.json”:
Invalid JSON character detected (lo)
Source:

Yes, I have followed the source and deleted the user_settings.json file.

Yes, I have tried deleting the analytics file.

When I delete the user_settings.json file, the game does run again, HOWEVER! the game only pulls up a really old save. Not my most recent save.

Is there any way I can restore my most recent save?

Hi @Lucia_Cisneros. Welcome to the Discourse!

What version of the game are you running?

The last version I was able to run was Alpha 18 release 656. I can’t run release 663

1 Like

By default, you can find stonehearth.log located in C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\

Near the top of that file you’ll find a reference to the version number.

Thanks. @jomaxro @yshan @sdee Do we have a solution to this already, or does this look like something new?

Hmm. @Lucia_Cisneros, can you share an image of the contents in C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games as well as your stonehearth.log from C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\?

Thanks!

1 Like

saved_games screenshot

Stonehearth_log pt 1

Stonehearth_log pt 2

When I delete the user_setttings file, the game does run but it only allows me to work with the save from 9/5, when my last save was on 9/20.

1 Like

Hm, sounds new to me; there could be several things happening.

  • For some reason, the newer saves are being marked as invalid for loading, and therefore not showing up in the save window. @yshan is there a workaround for that?
  • What was corrupted in your user settings file? If you still have it, could you post it too? You could also run it through jsonlint http://jsonlint.com/
  • If you upload one of your 9/20 saves, we can see if it runs on our machines

user_settings.json access

To upload a saved game from 9/20, do I upload this file?

2 Likes

Yes, in a nutshell.

Details:

To upload a save, locate the folder in
C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games (assuming a default Steam install), zip the individual save’s folder (not the entire saved_games folder), and upload it. If the *.zip is less than 10 MB, feel free to upload it directly to the Discourse. If larger, please upload it to a cloud storage site like Dropbox, Google Drive, File Dropper, etc. and post the sharing link here.

2 Likes

1474427954972 9 20 FILE SAVE .zip (7.2 MB)

2 Likes

Hey @Lucia_Cisneros, I’m afraid your save has been corrupted, which is why it didn’t appear in the list. I’m not sure why this might have happened; I’ll let the rest of the team know. Basically, the metadata.json file got corrupted, and if I re-add metatada.json from another file, I get this in the stonehearth.log:

2016-09-22 17:25:26.548206 | server | 0 | simulation.core | Failed to load: could not parse object 406020 of 410419 (size:112).
2016-09-22 17:25:26.548206 | client | 0 | client.core | server load save file failed. returning to stonehearth title screen.
2016-09-22 17:25:26.548206 | client | 1 | mod radiant | lua controller lifetime tracking set to "nil"
2016-09-22 17:25:26.728206 | server | 0 | lua.code | lua panic. forcing application exit
2016-09-22 17:25:26.728206 | server | 2 | lua.code | generating traceback…
2016-09-22 17:25:26.728206 | server | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2016-09-22 17:25:26.728206 | server | 0 | lua.code | events
2016-09-22 17:25:26.728206 | server | 0 | lua.code | stack traceback:
2016-09-22 17:25:26.728206 | server | 0 | lua.code | – Lua Error End -------------------------------
2016-09-22 17:25:26.728206 | server | 0 | lua.memory | destroying lua caching allocator
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Memory Stats: Fatal Exception
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Total System Memory: 15.876 GB (17046401024 bytes)
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Current Memory Usage: 411.855 MB (431861760 bytes)
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Total Address Space: 8.000 TB (8796092891136 bytes)
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Available Address Space: 7.999 TB (8794711007232 bytes)
2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Used Address Space: 1.287 GB (1381883904 bytes)
2016-09-22 17:25:41.732244 | server | 0 | app | Assertion Failed: callbacks_.size() == 0(c:\rb\ihome\root\sh-ob0-build\stonehearth\source\core\slot.h:28)

We’ll keep taking a look but for now, I’m afraid there is no workaround at this time. :frowning:

2 Likes

okay thank you anyway

1 Like