Jump to content

Game does not generate world upon world generation screen


Sda215

Recommended Posts

Preface: I am relatively new to Linux, so I am not sure if this is an issue I may have inadvertently caused in the past.

###

System specs:

  • OS: Linux Mint 19.2 Cinnamon
  • Processor: AMD Ryzen 5 2600
  • Memory: 16 GB (listed as 15.7 GB in System Info)
  • Graphics Card: AMD Radeon RX 580

EDIT: Forgot to mention this, but I am running the Food Spoilage update (v1.10-rc.1), although I've encountered this issue on the latest stable version of Vintage Story (v1.9.14).

I've encountered a strange bug that I have yet to see addressed elsewhere on the forums. I am able to run the game just fine through the Linux terminal with Mono(1): the main issue is when I attempt to generate a new world in Singleplayer.

When I attempt to generate a new world there―using the Realistic Climate band and 384 block height limit settings―I am taken to the world generation screen as normal, but there is no apparent indication of when the loading screen begins filling up (Exhibit A):

Exhibit A.png

I have attempted generating worlds using different game settings (Patchy Climate and Creative World), but the same result happens.

I looked into the Linux terminal and found something interesting while attempting to generate my worlds (Realistic Climate Bands, 384 block world height):

17:25:37 [Client Fatal] Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: _. Path '', line 0, position 0.
  at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002cc] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x0003f] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Vintagestory.Server.PlayerDataManager.LoadList[T] (System.String name) [0x00023] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager.Load () [0x0002c] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager..ctor (Vintagestory.Server.ServerMain server) [0x0000d] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.ServerMain..ctor (Vintagestory.Common.StartServerArgs serverargs, System.String[] cmdlineArgsRaw, Vintagestory.Server.ServerCommandLineArgs progArgs) [0x00355] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at _HQkmz7DQLMYQ8vrWVKY4vJm3UIF._cbC6oAuIIyrWllhAsBZZ1p8dOzk () [0x0003f] in <9121d65540b840bc89082a9014d8ea71>:0 

I've checked the other generation attempts and they all seem to have similar errors:

(Patchy Climate, 256 block world height)

17:29:32 [Client Fatal] Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: _. Path '', line 0, position 0.
  at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002cc] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x0003f] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Vintagestory.Server.PlayerDataManager.LoadList[T] (System.String name) [0x00023] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager.Load () [0x0002c] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager..ctor (Vintagestory.Server.ServerMain server) [0x0000d] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.ServerMain..ctor (Vintagestory.Common.StartServerArgs serverargs, System.String[] cmdlineArgsRaw, Vintagestory.Server.ServerCommandLineArgs progArgs) [0x00355] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at _HQkmz7DQLMYQ8vrWVKY4vJm3UIF._cbC6oAuIIyrWllhAsBZZ1p8dOzk () [0x0003f] in <9121d65540b840bc89082a9014d8ea71>:0 

(Creative World, 256 block world height)

17:29:50 [Client Fatal] Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: _. Path '', line 0, position 0.
  at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002cc] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x0003f] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <5753133c467642479854e5d6c1dc2798>:0 
  at Vintagestory.Server.PlayerDataManager.LoadList[T] (System.String name) [0x00023] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager.Load () [0x0002c] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.PlayerDataManager..ctor (Vintagestory.Server.ServerMain server) [0x0000d] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at Vintagestory.Server.ServerMain..ctor (Vintagestory.Common.StartServerArgs serverargs, System.String[] cmdlineArgsRaw, Vintagestory.Server.ServerCommandLineArgs progArgs) [0x00355] in <ae33bd11df074a09b126fdde258fcc24>:0 
  at _HQkmz7DQLMYQ8vrWVKY4vJm3UIF._cbC6oAuIIyrWllhAsBZZ1p8dOzk () [0x0003f] in <9121d65540b840bc89082a9014d8ea71>:0 

Parsing through the text as best I can, it seems that error is the result of this "Newtonsoft.Json" suffering a reader exception: specifically, "Unexpected character encountered while parsing value: _. Path '', line 0, position 0." I looked into my vintagestory folder to see if I can somehow fix this myself and discovered a "Newtonsoft.Json.dll" file within ~/vintagestory/Lib. I removed the .dll file, but that resulted in the game not starting up at all through the command terminal. I'm somewhat reminded of a fix I discovered while trying to start up Civilization VI where a certain file had to be edited just to start the game up, so I'm considering my next option to rename the .dll file to "Newtonsoft.json.dll" instead; I'll report back on this in a bit.

Irrespective of this, I'm not sure why this is happening. To be safe, I attempted to completely uninstall Mono and reinstall it to see if I had installed it incorrectly, but the generation issue still occurs.

EDIT: Renaming the "Newtonsoft.Json.dll" to "Newtonsoft.json.dll" caused the game to not start up at all, instead providing an error on the Linux terminal. Figured it would happen since its extension is a .dll, but I had to try.

###

(1) A separate issue, but I couldn't run "install.sh" through the terminal. However, as a relatively new Linux user, I realize that perhaps using the "mono" command may not be appropriate for programs with the ".sh" extension―I simply have not taken the time to look into this one yet.

Edited by Sda215
Small update on Newtonsoft.Json.dll file
Link to comment
Share on other sites

Huh. Odd. The files in question that it fails to read are in the playerdata folder on linux usually located in ~/.config/VintageStoryData/Playerdata
I'll add a thing that instead of just crashing it'll log an error what file exactly it failed to read!

7 hours ago, Sda215 said:

(1) A separate issue, but I couldn't run "install.sh" through the terminal. However, as a relatively new Linux user, I realize that perhaps using the "mono" command may not be appropriate for programs with the ".sh" extension―I simply have not taken the time to look into this one yet.

Yup, the invocation for this one is "./install.sh" or "sh install.sh"

Link to comment
Share on other sites

Alright. I'll be looking forward to seeing what the error exactly is.

EDIT: I actually found a fix: I checked the .json files in the ~/.config/VintageStoryData/Playerdata and found out they all contained borked and broken text. I deleted the whole VintageStoryData folder and reinstalled Vintage Story, and lo and behold, my game generates the world this time! The game has played phenomenally on my gaming computer so far.

I'm not sure how the .json files got borked, per se, but deleting the VintageStoryData folder and reinstalling Vintage Story to regenerate said folder seems to solve the world generation issue.

Edited by Sda215
Found the solution
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.