JimmyCushnie / TUNG

The Ultimate Nerd Game bug tracker
4 stars 0 forks source link

ES3 Json error on Debian 9 (Linux) #41

Open Stenodyon opened 6 years ago

Stenodyon commented 6 years ago

Symptoms: screenshot_20180420_222739

Log file: Player.log

JimmyCushnie commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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