Mephi00 / v-rising-wine-docker-image

MIT License
53 stars 32 forks source link

JsonReaderException: Unexpected character encountered while parsing value: T. Path 'ListOnMasterServer' #7

Closed dakota-marshall closed 2 years ago

dakota-marshall commented 2 years ago

I'm having issues getting this v-rising container up and running. The container seems to be crashing with the following error:

JsonReaderException: Unexpected character encountered while parsing value: T. Path 'ListOnMasterServer', line 12, position 25.
  at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <00000000000000000000000000000000>:0 
  at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x00000] in <00000000000000000000000000000000>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <00000000000000000000000000000000>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Populate (Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <00000000000000000000000000000000>:0 
  at Newtonsoft.Json.JsonSerializer.PopulateInternal (Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <00000000000000000000000000000000>:0 
  at Newtonsoft.Json.JsonConvert.PopulateObject (System.String value, System.Object target, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Shared.SettingsBase.TryLoadJsonFile (System.String path, System.Boolean logWarning, System.Boolean defaultSettings) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Shared.SettingsBase..ctor (System.String defaultFilePath, System.Boolean loadDefault, System.Boolean applyEnvironmentVariables) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.ServerHostSettings..ctor () [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.SettingsManager.VerifyServerSettings () [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.SettingsManager.get_ServerHostSettings () [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Auth.SteamPlatformSystem.TryInitServer () [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Auth.SteamPlatformSystem.OnCreate () [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world, Unity.Entities.SystemState* statePtr) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.World.GetOrCreateSystemsAndLogException (System.Collections.Generic.IEnumerable`1[T] types, System.Int32 typesCount) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.CustomWorldSpawning.AddSystemsToWorld (Unity.Entities.World world, ProjectM.WorldType worldType, System.Type[] systemTypes, System.Type initializationSystemGroupType, System.Type simulationSystemGroupType, System.Type presentationSystemGroupType, ProjectM.CustomWorld customWorld) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Bootstrap.Unity.Entities.ICustomBootstrap.Initialize (System.String defaultWorldName) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.DefaultWorldInitialization.Initialize (System.String defaultWorldName, System.Boolean editorWorld) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.AutomaticWorldBootstrap.Initialize () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Unity.Entities.World:GetOrCreateSystemsAndLogException(IEnumerable`1, Int32)
ProjectM.CustomWorldSpawning:AddSystemsToWorld(World, WorldType, Type[], Type, Type, Type, CustomWorld)
ProjectM.Bootstrap:Unity.Entities.ICustomBootstrap.Initialize(String)
Unity.Entities.DefaultWorldInitialization:Initialize(String, Boolean)
Unity.Entities.AutomaticWorldBootstrap:Initialize()

NullReferenceException: Object reference not set to an instance of an object.
  at ProjectM.CustomWorldSpawning.AddSystemsToWorld (Unity.Entities.World world, ProjectM.WorldType worldType, System.Type[] systemTypes, System.Type initializationSystemGroupType, System.Type simulationSystemGroupType, System.Type presentationSystemGroupType, ProjectM.CustomWorld customWorld) [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.Bootstrap.Unity.Entities.ICustomBootstrap.Initialize (System.String defaultWorldName) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.DefaultWorldInitialization.Initialize (System.String defaultWorldName, System.Boolean editorWorld) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.Entities.AutomaticWorldBootstrap.Initialize () [0x00000] in <00000000000000000000000000000000>:0 

NullReferenceException: Object reference not set to an instance of an object.
  at GameVersionUtils.TryInitializePersistenceVersion () [0x00000] in <00000000000000000000000000000000>:0 
  at GameVersionUtils.GetOrLoadPersistenceVersion () [0x00000] in <00000000000000000000000000000000>:0 
  at ProjectM.GameBootstrap.Start () [0x00000] in <00000000000000000000000000000000>:0 

After this error shows in the logs, I just get a repeated message:

Stuck main thread detected. Last system started: . Last system finished: . Last subnode: PrefabGuid: 0 NodeIndex: 0.
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Unity.Entities.<>c__DisplayClass8_0:<Initialize>b__0(Object)
System.Runtime.Serialization.DeserializationEventHandler:Invoke(Object)
System.Threading.SendOrPostCallback:Invoke(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Runtime.Serialization.DeserializationEventHandler:Invoke(Object)

Im using the image in this compose file:

version: "3.4"
services:
  v-rising:
    container_name: v-rising
    image: mephi00/v-rising-wine
    restart: unless-stopped
    volumes:
      - /docker/v-rising/saves:/saves
    ports:
        - 9876:9876/udp
        - 9877:9877/udp
    environment:
        - TZ=America/New_York
        - PUID=1000
        - PGID=1000
        - V_RISING_NAME=VRising Server
        - V_RISING_SAVE_NAME=vrising_server
        - V_RISING_PUBLIC_LIST=True
        - V_RISING_PASSW=${V_RISING_PASS}
        - V_RISING_DESC=Big ol Vampire
        - V_RISING_MAX_USER=20
        - V_RISING_MAX_ADMIN=4
        - V_RISING_GAME_MODE=PvE

I cant really tell what the error is, but if you need any more info let me know and I will be happy to provide it.

dakota-marshall commented 2 years ago

Seems all it takes is reading my own issue to figure out what was wrong...

V_RISING_PUBLIC_LIST=True was the problem. This has to be lowercase, my Python is showing... Setting to true will fix the problem. I dont know if this is worth mentioning in the docs to prevent other people from making the same mistake