RimWorld

RimWorld

Psychic Awakening
Leluke Jun 11, 2020 @ 12:22pm
Burnout not being generated
This is the debug log for my attempts of using pyschic powers. They work but there is no burnout added to the pawns using the powers.

Pawn Barbie threw exception while executing toil's finish action (1), jobDriver=RimWorld.JobDriver_PsychicPower, job=UsePsychicPower (Job_2663522) A=Thing_Human336007, toilIndex=0: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) RimWorld.StatExtension.DMD<DMD<GetStatValue_Patch1>?-1337511296::GetStatValue_Patch1>(Verse.Thing,RimWorld.StatDef,bool)
at RimWorld.PsychicMod.addBrainBurn (Verse.Pawn user, RimWorld.PsychicPowerDef power) [0x0008a] in <1b707852b6db4481b3f0ca5f892180f8>:0
at RimWorld.JobDriver_PsychicPower.<MakeNewToils>b__2_2 () [0x0019f] in <1b707852b6db4481b3f0ca5f892180f8>:0
at Verse.AI.Toil.Cleanup (System.Int32 myIndex, Verse.AI.JobDriver jobDriver) [0x0001f] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
Verse.Log:Error(String, Boolean)
Verse.AI.Toil:Cleanup(Int32, JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil()
Verse.AI.JobDriver:ReadyForNextToil()
Verse.AI.JobDriver:DMD<DMD<DriverTick_Patch1>?960055552::DriverTick_Patch1>(JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?1014547712::Tick_Patch1>(Pawn)
Verse.TickList:Tick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?-172400000::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:DMD<DMD<UpdatePlay_Patch2>?305382656::UpdatePlay_Patch2>(Game)
Verse.Root_Play:Update()

Breno starting job UsePsychicPower (Job_2663998) A=Thing_Human341338 from JobGiver while already having job HaulToContainer (Job_2662080) A=Thing_MinifiedThing557863 B=Thing_Blueprint_Install_SculptureLarge552202 without a specific job end condition.
Verse.Log:Warning(String, Boolean)
Verse.AI.Pawn_JobTracker:DMD<DMD<StartJob_Patch2>?-676793088::StartJob_Patch2>(Pawn_JobTracker, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean, Boolean)
RimWorld.<>c__DisplayClass3_0:<generateGizmo>b__4(Thing)
Verse.Command_Target:<ProcessInput>b__2_0(LocalTargetInfo)
RimWorld.Targeter:DMD<DMD<ProcessInputEvents_Patch2>?-1756206720::ProcessInputEvents_Patch2>(Targeter)
RimWorld.MapInterface:HandleMapClicks()
RimWorld.UIRoot_Play:UIRootOnGUI()
Verse.Root:DMD<DMD<OnGUI_Patch1>?-516865664::OnGUI_Patch1>(Root)

Pawn Breno threw exception while executing toil's finish action (1), jobDriver=RimWorld.JobDriver_PsychicPower, job=UsePsychicPower (Job_2663998) A=Thing_Human341338, toilIndex=0: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) RimWorld.StatExtension.DMD<DMD<GetStatValue_Patch1>?-1337511296::GetStatValue_Patch1>(Verse.Thing,RimWorld.StatDef,bool)
at RimWorld.PsychicMod.addBrainBurn (Verse.Pawn user, RimWorld.PsychicPowerDef power) [0x0008a] in <1b707852b6db4481b3f0ca5f892180f8>:0
at RimWorld.JobDriver_PsychicPower.<MakeNewToils>b__2_2 () [0x0019f] in <1b707852b6db4481b3f0ca5f892180f8>:0
at Verse.AI.Toil.Cleanup (System.Int32 myIndex, Verse.AI.JobDriver jobDriver) [0x0001f] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
Verse.Log:Error(String, Boolean)
Verse.AI.Toil:Cleanup(Int32, JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil()
Verse.AI.JobDriver:ReadyForNextToil()
Verse.AI.JobDriver:DMD<DMD<DriverTick_Patch1>?960055552::DriverTick_Patch1>(JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?1014547712::Tick_Patch1>(Pawn)
Verse.TickList:Tick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?-172400000::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:DMD<DMD<UpdatePlay_Patch2>?305382656::UpdatePlay_Patch2>(Game)
Verse.Root_Play:Update()