Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

ES3 Json error on Debian 9 (Linux) #41

Open
Stenodyon opened this issue Apr 20, 2018 · 5 comments
Open

ES3 Json error on Debian 9 (Linux) #41

Stenodyon opened this issue Apr 20, 2018 · 5 comments

Comments

@Stenodyon
Copy link

Symptoms:
screenshot_20180420_222739

Log file:
Player.log

@JimmyCushnie
Copy link
Owner

Yeah, looks like ES3 ran into some data it couldn't parse. Should be fixed by deleting settings.txt.

I'm replacing ES3 with my own data text serialization library in 0.3, which should fix this.

@Stenodyon
Copy link
Author

Stenodyon commented Apr 22, 2018

This was on a fresh install, tried removing settings.txt but I still get the same error.

This is what my settings.txt looks like (it's missing pretty much everything).

With a sane settings.txt this is my output log: Player.log

@JimmyCushnie
Copy link
Owner

wow I really have no idea wtf is going on. I'm 90% sure it's not my fault, though - still all just ES3 errors...

@spjoe
Copy link

spjoe commented Jul 16, 2018

@Stenodyon
When you have locales which represents a decimal point with , instead of . TUNG saves json which is invalid. So as a workaround delete "~/.config/unity3d/Mouse Hat Games/The Ultimate Nerd Game/" then start game with the following command: LANG=C ./The\ Ultimate\ Nerd\ Game.x86_64
@Iamsodarncool
Not sure which json lib you are using. I guess/hope you can hardcode culture.
So the actual problem already occurs when any json file is written (settings.txt, TimePlayed.txt, worldinfo.txt and maybe others).

It seems lib produces invalid json like { "a" : 1,2 } but it should be { "a" : 1.2 }

@Stenodyon
Copy link
Author

That was it, I can run the game properly now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants