RimWorld

RimWorld

Combat Training
1stReaper 14 Jul, 2019 @ 2:31pm
Red-liner Debug Error
Hey there Bohedo,
i was wondering if you could..... (or if anyone else who knows what this issue is,) give me a hand figuring out what this red-liner debug error is :S,

it triggers whenever i get my pawn to equip the training bb gun (or least it appears around that time).
i set the combat dummy to ranged training, then equip my pawn with the bb,
and from between setting it to ranged to my pawn equipping and firing at it, it triggers the below log


[HugsLib] Quickstarter generating map with scenario: The Rich Explorer
Verse.Log:Message(String, Boolean)
HugsLib.Utils.ModLogger:Message(String, Object[])
HugsLib.Quickstart.QuickstartController:InitateMapGeneration()
HugsLib.Quickstart.Dialog_QuickstartSettings:MakeSelectScenarioButton(Listing_Standard, QuickstartSettings)
HugsLib.Quickstart.<>c__DisplayClass6_0:<DoWindowContents>b__1(Listing_Standard, Single)
HugsLib.Quickstart.Dialog_QuickstartSettings:MakeSubListing(Listing_Standard, Single, Single, Single, Single, Single, Action`2)
HugsLib.Quickstart.Dialog_QuickstartSettings:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Initializing new game with mods MOD-E, Core, Mod Manager, ShowModDesignators, HugsLib, JecsTools, Miscellaneous 'CORE', EdB Prepare Carefully, Allow Tool, Defensive Positions, Map Reroll, Remote Tech, Release Animals into Wild, Faction Discovery, More Mechanoids, One Big Family, Therapy, Xeva's Rimhair, Avoid Friendly Fire, Heat Map, Labels on Floor, Room Sense, More Planning, Psychology, Run and Hide, Less Arbitrary Surgery, Death Rattle, Combat Training, Cleaning Priority, Harvest Sync, I Clearly Have Enough!, Simple sidearms, Better Pawn Control, Wall Light, Plant Growing Wall Light, WM Hydroponics with lamps, Shield Generators by Frontier Developments, RunAndGun, Search and Destroy, What the hack?!, Giddy-up! Core, Giddy-up! Battle Mounts, Giddy-up! Caravan, Giddy-up! Mechanoids, Doors Expanded, Locks, Locks (DoorsExpanded), Misc. MapGenerator, Misc. Incidents, Misc. TurretBase, Objects, Misc. Robots, Misc. Robots++, Hospitality
Verse.Log:Message(String, Boolean)
Verse.Game:InitNewGame_Patch1(Object)
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Cleaned up 0 depricated records from What the Hack!?
Verse.Log:Message(String, Boolean)
WhatTheHack.Storage.ExtendedDataStorage:Cleanup()
WhatTheHack.Base:WorldLoaded()
HugsLib.HugsLibController:OnPlayingStateEntered()
HugsLib.Patches.Game_FinalizeInit_Patch:WorldLoadedHook()
Verse.Game:FinalizeInit_Patch2(Object)
Verse.Game:InitNewGame_Patch1(Object)
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Cleaned up 0 depricated records from Giddy-up!
Verse.Log:Message(String, Boolean)
GiddyUpCore.Storage.ExtendedDataStorage:Cleanup()
GiddyUpCore.Base:WorldLoaded()
HugsLib.HugsLibController:OnPlayingStateEntered()
HugsLib.Patches.Game_FinalizeInit_Patch:WorldLoadedHook()
Verse.Game:FinalizeInit_Patch2(Object)
Verse.Game:InitNewGame_Patch1(Object)
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Southwest Tedoum Nation are coming after 13.7676 days.
Verse.Log:Message(String, Boolean)
Hospitality.GenericUtility:FillIncidentQueue(Map)
Hospitality.Hospitality_MapComponent:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Southwest Tedoum Nation are coming after 12.78357 days.
Verse.Log:Message(String, Boolean)
Hospitality.GenericUtility:FillIncidentQueue(Map)
Hospitality.Hospitality_MapComponent:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Exception in SetupToils for pawn Eridani driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_146) A=Thing_CombatDummy40107) lastJobGiver=RimWorld.JobGiver_Work
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat/<>c__DisplayClass7_0.<MakeNewToils>b__1 () <0x0013b>
at KriilMod_CD.JobDriver_TrainCombat/<MakeNewToils>d__7.MoveNext () <0x00187>
at (wrapper dynamic-method) Verse.AI.JobDriver.SetupToils_Patch1 (object) <0x00117>

Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:SetupToils_Patch1(Object)
Verse.AI.Pawn_JobTracker:StartJob_Patch1(Object, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Exception in SetupToils for pawn Eridani driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_149) A=Thing_CombatDummy40107) lastJobGiver=RimWorld.JobGiver_Work
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat/<>c__DisplayClass7_0.<MakeNewToils>b__1 () <0x0013b>
at KriilMod_CD.JobDriver_TrainCombat/<MakeNewToils>d__7.MoveNext () <0x00187>
at (wrapper dynamic-method) Verse.AI.JobDriver.SetupToils_Patch1 (object) <0x00117>

Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:SetupToils_Patch1(Object)
Verse.AI.Pawn_JobTracker:StartJob_Patch1(Object, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Exception in SetupToils for pawn Eridani driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_153) A=Thing_CombatDummy40107) lastJobGiver=RimWorld.JobGiver_Work
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat/<>c__DisplayClass7_0.<MakeNewToils>b__1 () <0x0013b>
at KriilMod_CD.JobDriver_TrainCombat/<MakeNewToils>d__7.MoveNext () <0x00187>
at (wrapper dynamic-method) Verse.AI.JobDriver.SetupToils_Patch1 (object) <0x00117>

Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:SetupToils_Patch1(Object)
Verse.AI.Pawn_JobTracker:StartJob_Patch1(Object, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Exception in SetupToils for pawn Eridani driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_157) A=Thing_CombatDummy40107) lastJobGiver=RimWorld.JobGiver_Work
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat/<>c__DisplayClass7_0.<MakeNewToils>b__1 () <0x0013b>
at KriilMod_CD.JobDriver_TrainCombat/<MakeNewToils>d__7.MoveNext () <0x00187>
at (wrapper dynamic-method) Verse.AI.JobDriver.SetupToils_Patch1 (object) <0x00117>

Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:SetupToils_Patch1(Object)
Verse.AI.Pawn_JobTracker:StartJob_Patch1(Object, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Eridani started 10 jobs in 10 ticks. List: (TrainOnCombatDummy (Job_146) A=Thing_CombatDummy40107) (Wait (Job_147)) (Wait_MaintainPosture (Job_148)) , (TrainOnCombatDummy (Job_149) A=Thing_CombatDummy40107) (Wait (Job_150)) (Wait_MaintainPosture (Job_151)) , (TrainOnCombatDummy (Job_153) A=Thing_CombatDummy40107) (Wait (Job_154)) (Wait_MaintainPosture (Job_155)) , (TrainOnCombatDummy (Job_157) A=Thing_CombatDummy40107) (Wait (Job_158)) (Wait_MaintainPosture (Job_159)) curDriver=JobDriver_WaitMaintainPosture (toilIndex=0) curJob=(Wait_MaintainPosture (Job_159)) lastJobGiver=null
Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.Pawn_JobTracker:FinalizeTick()
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
< >
Showing 1-5 of 5 comments
Blazephemie 30 Jan, 2020 @ 7:43am 
similar thing here, no matter the load order .. i tried near top, middle and close to last ..

spamming this error as soon as i unpause


Exception in SetupToils for pawn Mal driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_9006138) A=Thing_CombatDummy5273288) lastJobGiver=RimWorld.JobGiver_Work
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat/<>c__DisplayClass7_0.<MakeNewToils>b__1 () <0x0013b>
at KriilMod_CD.JobDriver_TrainCombat/<MakeNewToils>d__7.MoveNext () <0x0018b>
at (wrapper dynamic-method) Verse.AI.JobDriver.SetupToils_Patch3 (object) <0x00117>

Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:SetupToils_Patch3(Object)
Verse.AI.Pawn_JobTracker:StartJob_Patch3(Object, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.JobDriver:EndJobWith(JobCondition)
Verse.AI.JobDriver:CheckCurrentToilEndOrFail()
Verse.AI.JobDriver:DriverTick_Patch1(Object)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick_Patch2(Object)
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update_Patch1(Object)
Bobdolemite 12 Mar, 2020 @ 5:01pm 
Having the same issue:

Exception in SetupToils for pawn Wolf driver=JobDriver_TrainCombat (toilIndex=-1) driver.job=(TrainOnCombatDummy (Job_59025) A=Thing_CombatDummy82396)
System.NullReferenceException: Object reference not set to an instance of an object
at KriilMod_CD.JobDriver_TrainCombat+<>c__DisplayClass7_0.<MakeNewToils>b__1 () [0x00081] in <2429632247484a489620b49273403371>:0
at KriilMod_CD.JobDriver_TrainCombat+<MakeNewToils>d__7.MoveNext () [0x000f5] in <2429632247484a489620b49273403371>:0
at (wrapper dynamic-method) Verse.AI.JobDriver.DMD<DMD<SetupToils_Patch2>?1833037184::SetupToils_Patch2>(Verse.AI.JobDriver)
Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:DMD<DMD<SetupToils_Patch2>?1833037184::SetupToils_Patch2>(JobDriver)
Verse.AI.Pawn_JobTracker:DMD<DMD<StartJob_Patch2>?235316224::StartJob_Patch2>(Pawn_JobTracker, Job, JobCondition, ThinkNode, Boolean, Boolean, ThinkTreeDef, Nullable`1, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob(JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?-610176768::Tick_Patch1>(Pawn)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:DMD<DMD<Update_Patch1>?904551168::Update_Patch1>(Root_Play)


This error will generate on each tick of the game so they start to pile up and cause lag. Weird part is up until recently this was not occuring, might have been a harmony or rimworld patch responsible. Anyways just a heads up. *Note* I had a similar issue in the 1.0 release just prior to 1.1 being released.
Last edited by Bobdolemite; 21 Mar, 2020 @ 12:34pm
bohedo  [developer] 16 Mar, 2020 @ 6:58am 
You can safely disable the mod in the middle of a save. In the meantime, I'll look into it. It seems new patch messed some stuff up.
Last edited by bohedo; 16 Mar, 2020 @ 6:58am
Bobdolemite 21 Mar, 2020 @ 12:31pm 
Thanks, I was able to remove it without any issues (removed Combat Training stuff beforehand). Thanks for taking a look into this. Absolutely love the mod, ill keep checking in to see if there is an update that can correct the issue.
HacKan 23 Apr, 2020 @ 8:19pm 
Hi there! I've seen this issue happening to me with pawns that have both arms non-biological and its set to train melee (either bionic, archotec, power claw, etc). It's solved by equiping a weapon, such as the training knife.
Last edited by HacKan; 23 Apr, 2020 @ 8:19pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50