[1.1.2570] Freezing at World Map (solved)

Started by Oboro, March 11, 2020, 10:08:54 PM

Previous topic - Next topic

Oboro

Everything works properly until loading the world map where it freezes; pressing "<" or ">" key to cycle colonists is the only way to exit the World Map.

I was able to correct the issue by opening the save and removing any settlement which had the faction set as "null", there was appx. 35 or so.

This is an example:

<li Class="Settlement">
                  <def>Settlement</def>
                  <ID>111</ID>
                  <tile>6214</tile>
                  <faction>null</faction>
                  <questTags IsNull="True" />
                  <expiration>-1</expiration>
                  <previouslyGeneratedInhabitants />
                  <trader>
                     <tmpSavedPawns />
                     <stock IsNull="True" />
                     <lastStockGenerationTicks>-1</lastStockGenerationTicks>
                  </trader>
                  <nameInt>Lenanded</nameInt>
               </li>

After removing all of the settlements that had "<faction>null</faction>" it worked properly.

Here is the error when opening the World Map:

Loading game from file Treaty of Menia with mods:
  - Ludeon.RimWorld
  - Ludeon.RimWorld.Royalty
Verse.Log:Message(String, Boolean)
Verse.SavedGameLoaderNow:LoadGameFromSaveFileNow(String)
Verse.<>c:<Start>b__1_1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Planet.Settlement.get_Material () [0x00015] in <f022d63938c4495c89633af859c233cf>:0
  at RimWorld.Planet.WorldObject.get_ExpandingIconColor () [0x00000] in <f022d63938c4495c89633af859c233cf>:0
  at RimWorld.Planet.ExpandableWorldObjectsUtility.ExpandableWorldObjectsOnGUI () [0x0007e] in <f022d63938c4495c89633af859c233cf>:0
  at RimWorld.WorldInterface.WorldInterfaceOnGUI () [0x00012] in <f022d63938c4495c89633af859c233cf>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00015] in <f022d63938c4495c89633af859c233cf>:0
  at Verse.Root.OnGUI () [0x0003d] in <f022d63938c4495c89633af859c233cf>:0
Verse.Log:Error(String, Boolean)
Verse.Root:OnGUI()