RimWorld

RimWorld

Prison Labor
shenniko Jun 8, 2020 @ 5:45am
Error - at PrisonLabor.Core.Other.ArrestUtility.CanBeArrestedBy
Hi, have a prisoner, was working fine yesterday, though today when i loaded saved game i get the following error:

Called SpawnedPawnsInFaction with null faction.
Verse.Log:Error(String, Boolean)
Verse.MapPawns:SpawnedPawnsInFaction(Faction)
RimWorld.WorkGiver_GatherAnimalBodyResources:ShouldSkip(Pawn, Boolean)
PrisonLabor.Core.AI.JobGivers.JobGiver_Labor:PawnCanUseWorkGiver(Pawn, WorkGiver)
PrisonLabor.Core.AI.JobGivers.JobGiver_Labor:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_SubtreesByTag:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DMD<DMD<DetermineNextJob_Patch3>?1985753856::DetermineNextJob_Patch3>(Pawn_JobTracker, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:DMD<DMD<EndCurrentJob_Patch0>?-492800000::EndCurrentJob_Patch0>(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?401571840::Tick_Patch1>(Pawn)
Verse.TickList:DMD<DMD<Tick_Patch2>?-1277529856::Tick_Patch2>(TickList)
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?804443008::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Exception in Verse.AI.ThinkNode_Priority TryIssueJobPackage: System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
at RimWorld.ListerBuildingsRepairable.ListFor (RimWorld.Faction fac) [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at RimWorld.ListerBuildingsRepairable.RepairableBuildings (RimWorld.Faction fac) [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at RimWorld.WorkGiver_Repair.ShouldSkip (Verse.Pawn pawn, System.Boolean forced) [0x00011] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at PrisonLabor.Core.AI.JobGivers.JobGiver_Labor.PawnCanUseWorkGiver (Verse.Pawn pawn, RimWorld.WorkGiver giver) [0x0001c] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at PrisonLabor.Core.AI.JobGivers.JobGiver_Labor.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00150] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
Verse.Log:Error(String, Boolean)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_SubtreesByTag:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DMD<DMD<DetermineNextJob_Patch3>?1985753856::DetermineNextJob_Patch3>(Pawn_JobTracker, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:DMD<DMD<EndCurrentJob_Patch0>?-492800000::EndCurrentJob_Patch0>(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?401571840::Tick_Patch1>(Pawn)
Verse.TickList:DMD<DMD<Tick_Patch2>?-1277529856::Tick_Patch2>(TickList)
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?804443008::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.Core.Other.ArrestUtility.CanBeArrestedBy (Verse.Pawn pawn, Verse.Pawn arrester) [0x00022] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at PrisonLabor.Core.Other.ArrestUtility+<>c__DisplayClass1_0.<ForArrest>b__0 (Verse.TargetInfo targ) [0x0002d] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at RimWorld.TargetingParameters.CanTarget (Verse.TargetInfo targ) [0x00008] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at (wrapper dynamic-method) Verse.GenUI.DMD<DMD<ThingsUnderMouse_Patch0>?1214239744::ThingsUnderMouse_Patch0>(UnityEngine.Vector3,single,RimWorld.TargetingParameters)
at Verse.GenUI+<TargetsAt_NewTemp>d__43.MoveNext () [0x00022] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at PrisonLabor.Core.Other.ArrestUtility.AddArrestOrder (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x001c5] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at PrisonLabor.HarmonyPatches.Triggers+AddHumanlikeOrders.Prefix (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00001] in <ee4c22da86864c16b38dbd3e2e3a1615>:0
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.DMD<DMD<AddHumanlikeOrders_Patch3>?57942144::AddHumanlikeOrders_Patch3>(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.DMD<DMD<ChoicesAtFor_Patch1>?-1247531264::ChoicesAtFor_Patch1>(UnityEngine.Vector3,Verse.Pawn)
at AchtungMod.MultiActions.AddColonist (AchtungMod.Colonist colonist) [0x0001f] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.MultiActions.<.ctor>b__3_0 (AchtungMod.Colonist colonist) [0x00000] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.Tools.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.MultiActions..ctor (System.Collections.Generic.IEnumerable`1[T] colonists, UnityEngine.Vector3 clickPos) [0x00018] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.Controller.MouseDown (UnityEngine.Vector3 pos) [0x00076] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.Controller.HandleEvents () [0x0002f] in <998a529e2cae4e2c921a73d037fe26a5>:0
at AchtungMod.Selector_HandleMapClicks_Patch.Prefix () [0x00005] in <998a529e2cae4e2c921a73d037fe26a5>:0
at (wrapper dynamic-method) RimWorld.Selector.DMD<DMD<HandleMapClicks_Patch2>?35226496::HandleMapClicks_Patch2>(RimWorld.Selector)
at RimWorld.Selector.SelectorOnGUI () [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at (wrapper dynamic-method) RimWorld.UIRoot_Play.DMD<DMD<UIRootOnGUI_Patch1>?-718192256::UIRootOnGUI_Patch1>(RimWorld.UIRoot_Play)
at (wrapper dynamic-method) Verse.Root.DMD<DMD<OnGUI_Patch1>?1438822272::OnGUI_Patch1>(Verse.Root)
Verse.Log:Error(String, Boolean)
Verse.Root:DMD<DMD<OnGUI_Patch1>?1438822272::OnGUI_Patch1>(Root)
< >
Showing 1-3 of 3 comments
Hazzer  [developer] Jun 11, 2020 @ 7:47am 
Need more info about pawns. Are they vanilla pawn or custom race?
Tanetth Feb 27, 2021 @ 10:08pm 
I got the same error of sorts but I took my prisoners off of nursing duty and the error fixed it self.
Tanetth Feb 27, 2021 @ 10:09pm 
Originally posted by Hazzer:
Need more info about pawns. Are they vanilla pawn or custom race?

As for my error, the only "race" I have currently is the Base and the Androids mod.
< >
Showing 1-3 of 3 comments
Per page: 1530 50