UnlimitedHugs / RimworldAllowTool

A set of tools to simplify common tasks in Rimworld.
https://ludeon.com/forums/index.php?topic=17218.0
Other
60 stars 34 forks source link

Exception in PartyHuntHandler when placing a geothermal generator #38

Closed Robyt3 closed 3 years ago

Robyt3 commented 3 years ago

I got this exception when placing a geothermal generator:

JobDriver threw exception in initAction for pawn Xeo driver=JobDriver_Wait (toilIndex=0) driver.job=(Wait (Job_8765382))
System.NullReferenceException: Object reference not set to an instance of an object
  at AllowTool.PartyHuntHandler.get_WorldSettings () [0x0000b] in <131ad912d0814ce38696f6ecf93156a4>:0 
  at AllowTool.PartyHuntHandler.DoBehaviorForPawn (Verse.AI.JobDriver_Wait driver) [0x0001e] in <131ad912d0814ce38696f6ecf93156a4>:0 
  at AllowTool.Patches.JobDriverWait_CheckForAutoAttack_Patch.DoPartyHunting (Verse.AI.JobDriver_Wait __instance) [0x00001] in <131ad912d0814ce38696f6ecf93156a4>:0 
  at (wrapper dynamic-method) Verse.AI.JobDriver_Wait.Verse.AI.JobDriver_Wait.CheckForAutoAttack_Patch1(Verse.AI.JobDriver_Wait)
  at Verse.AI.JobDriver_Wait.<MakeNewToils>b__3_0 () [0x00037] in <7927e938de4c4089b4add4215e58d5b1>:0 
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001df] in <7927e938de4c4089b4add4215e58d5b1>:0 
Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil()
Verse.AI.JobDriver:ReadyForNextToil()
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.StartJob_Patch1(Pawn_JobTracker, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch3(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.JobDriver:EndJobWith(JobCondition)
Verse.AI.JobDriver:Notify_PatherFailed()
Verse.AI.Pawn_PathFollower:PatherFailed()
Verse.AI.Pawn_PathFollower:StartPath(LocalTargetInfo, PathEndMode)
Verse.AI.Pawn_PathFollower:TryResumePathingAfterLoading()
Verse.Pawn:PostMapInit()
Verse.Map:Verse.Map.FinalizeInit_Patch1(Map)
Verse.Map:FinalizeLoading()
Verse.Game:LoadGame()
Verse.SavedGameLoaderNow:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch2(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()

Full log at https://pastebin.com/kMEKeGpE. See line 261 for list of mods and line 348 for the exception.

UnlimitedHugs commented 3 years ago

Could not reproduce, and there are too many mods to investigate further. I could put a stop-gap fix in place, but this error should bot be possible under normal conditions. Still, I appreciate the report. Should you get the error again, please include a Ctrl+F12 log, as it contains more usable information.