abrenneke / RimWorld-BronzeAge

0 stars 0 forks source link

Exception in RimWorld.ThinkNode_ConditionalColonist TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object #100

Closed abrenneke closed 3 years ago

abrenneke commented 3 years ago
Exception in RimWorld.ThinkNode_ConditionalColonist TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
  at HumanResources.HarmonyPatches.CheckKnownWeapons (Verse.Pawn pawn, Verse.Thing thing) [0x00001] in <1fa4f506029f45409b31975f1a34fa18>:0 
  at HumanResources.SimpleSidearms_Patches.equipSpecificWeapon_Prefix (Verse.Pawn pawn, Verse.ThingWithComps weapon) [0x00033] in <1fa4f506029f45409b31975f1a34fa18>:0 
  at (wrapper dynamic-method) SimpleSidearms.utilities.WeaponAssingment.SimpleSidearms.utilities.WeaponAssingment.equipSpecificWeapon_Patch1(Verse.Pawn,Verse.ThingWithComps,bool,bool)
  at SimpleSidearms.utilities.WeaponAssingment.equipSpecificWeaponFromInventory (Verse.Pawn pawn, Verse.ThingWithComps weapon, System.Boolean dropCurrent, System.Boolean intentionalDrop) [0x00001] in <131cbe718ce549358c7074e40983b850>:0 
  at SimpleSidearms.utilities.WeaponAssingment.equipBestWeaponFromInventoryByPreference (Verse.Pawn pawn, SimpleSidearms.Globals+DroppingModeEnum drop, System.Nullable`1[T] modeOverride, Verse.Pawn target) [0x004cd] in <131cbe718ce549358c7074e40983b850>:0 
  at SimpleSidearms.rimworld.JobGiver_QuicklySwitchWeapons.TryGiveJobStatic (Verse.Pawn pawn, System.Boolean inCombat) [0x0005a] in <131cbe718ce549358c7074e40983b850>:0 
  at SimpleSidearms.rimworld.JobGiver_QuicklySwitchWeapons.TryGiveJob (Verse.Pawn pawn) [0x00001] in <131cbe718ce549358c7074e40983b850>:0 
  at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0 
  at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0 
Verse.Log:Error(String, Boolean)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch3(Pawn_JobTracker, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch2(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Verse.Pawn.Tick_Patch2(Pawn)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
abrenneke commented 3 years ago

Fixed in latest HumanResources