I'm trying to update an old WIP mod from 1.2 to 1.3 but I get the following error when pawns wear the outfits I have added:
Exception while recalculating WearingColor_Ideo thought state for pawn Bomba: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.ThoughtWorker_WearingColor.CurrentStateInternal (Verse.Pawn p) [0x0003a] in <acc1a8abfe07492884c6f18dcdaa4807>:0
at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <acc1a8abfe07492884c6f18dcdaa4807>:0
at RimWorld.SituationalThoughtHandler.TryCreateThought (RimWorld.ThoughtDef def) [0x0001e] in <acc1a8abfe07492884c6f18dcdaa4807>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.SituationalThoughtHandler:TryCreateThought (RimWorld.ThoughtDef)
RimWorld.SituationalThoughtHandler:CheckRecalculateMoodThoughts ()
RimWorld.SituationalThoughtHandler:AppendMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.ThoughtHandler:GetAllMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.Alert_Thought:get_AffectedPawns ()
RimWorld.Alert_Thought:GetReport ()
RimWorld.Alert:Recalculate ()
RimWorld.AlertsReadout:CheckAddOrRemoveAlert (RimWorld.Alert,bool)
RimWorld.AlertsReadout:AlertsReadoutUpdate ()
RimWorld.UIRoot_Play:UIRootUpdate ()
Verse.Root:Update ()
Verse.Root_Play:Update ()
I believe this to be related to the new favourite colour system in 1.3 however I can't work out how to tell the game what colour my apparel is.
I have attached my defs file below and would appreciate any help.
Exception while recalculating WearingColor_Ideo thought state for pawn Bomba: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.ThoughtWorker_WearingColor.CurrentStateInternal (Verse.Pawn p) [0x0003a] in <acc1a8abfe07492884c6f18dcdaa4807>:0
at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <acc1a8abfe07492884c6f18dcdaa4807>:0
at RimWorld.SituationalThoughtHandler.TryCreateThought (RimWorld.ThoughtDef def) [0x0001e] in <acc1a8abfe07492884c6f18dcdaa4807>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.SituationalThoughtHandler:TryCreateThought (RimWorld.ThoughtDef)
RimWorld.SituationalThoughtHandler:CheckRecalculateMoodThoughts ()
RimWorld.SituationalThoughtHandler:AppendMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.ThoughtHandler:GetAllMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.Alert_Thought:get_AffectedPawns ()
RimWorld.Alert_Thought:GetReport ()
RimWorld.Alert:Recalculate ()
RimWorld.AlertsReadout:CheckAddOrRemoveAlert (RimWorld.Alert,bool)
RimWorld.AlertsReadout:AlertsReadoutUpdate ()
RimWorld.UIRoot_Play:UIRootUpdate ()
Verse.Root:Update ()
Verse.Root_Play:Update ()
I believe this to be related to the new favourite colour system in 1.3 however I can't work out how to tell the game what colour my apparel is.
I have attached my defs file below and would appreciate any help.