Skip to content

World Grid being called prematurely when trying to update to 1.5 #95

@Arndorferd

Description

@Arndorferd

It looks like when I try to create a world with it in 1.5 ExposeData() method which has

Scribe_Deep.Look(ref this.grid, "grid", new object[0]);
Current.Game.World.grid = this.grid;

is being called prematurely? It is saying "Registered RimWorld.Planet.WorldGrid for post load init, but current mode is Inactive."

Loading game from file The Purple Expanse Alliance (Permadeath) with mods:
  - brrainz.harmony
  - Ludeon.RimWorld
  - filunderscore.persistentrimworlds
  - liquorice.nodistantkin
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1 (string)
Verse.Root_Play/<>c:<Start>b__1_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Registered RimWorld.Planet.WorldGrid for cross ref resolve, but current mode is Inactive
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.CrossRefHandler:RegisterForCrossRefResolve (Verse.IExposable)
Verse.ScribeExtractor:SaveableFromNode<RimWorld.Planet.WorldGrid> (System.Xml.XmlNode,object[])
Verse.Scribe_Deep:Look<RimWorld.Planet.WorldGrid> (RimWorld.Planet.WorldGrid&,bool,string,object[])
Verse.Scribe_Deep:Look<RimWorld.Planet.WorldGrid> (RimWorld.Planet.WorldGrid&,string,object[])
RimWorld.Planet.World:ExposeData ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.LoadGame_Patch1 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1 (string)
Verse.Root_Play/<>c:<Start>b__1_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Registered RimWorld.Planet.WorldGrid for post load init, but current mode is Inactive
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PostLoadIniter.RegisterForPostLoadInit_Patch1 (Verse.PostLoadIniter,Verse.IExposable)
Verse.ScribeExtractor:SaveableFromNode<RimWorld.Planet.WorldGrid> (System.Xml.XmlNode,object[])
Verse.Scribe_Deep:Look<RimWorld.Planet.WorldGrid> (RimWorld.Planet.WorldGrid&,bool,string,object[])
Verse.Scribe_Deep:Look<RimWorld.Planet.WorldGrid> (RimWorld.Planet.WorldGrid&,string,object[])
RimWorld.Planet.World:ExposeData ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.LoadGame_Patch1 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1 (string)
Verse.Root_Play/<>c:<Start>b__1_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Exception from asynchronous event: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 68F0010D]
 at RimWorld.Planet.World.FinalizeInit () [0x00000] in <23fcc63d7dfc4dd5b7e76f658fffe1ea>:0 
 at Verse.Game.LoadGame () [0x000cf] in <23fcc63d7dfc4dd5b7e76f658fffe1ea>:0 
     - PREFIX me.filunderscore.persistentrimworlds: Boolean PersistentWorlds.Patches.Game_LoadGame_Patch:Prefix()
 at Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow (System.String fileName) [0x00100] in <23fcc63d7dfc4dd5b7e76f658fffe1ea>:0 
     - PREFIX me.filunderscore.persistentrimworlds: Boolean PersistentWorlds.Patches.SavedGameLoaderNow_LoadGameFromSaveFileNow_Patch:Prefix(String fileName)
 at Verse.Root_Play+<>c.<Start>b__1_1 () [0x00005] in <23fcc63d7dfc4dd5b7e76f658fffe1ea>:0 
 at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action) [0x00008] in <23fcc63d7dfc4dd5b7e76f658fffe1ea>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions