RimWorld

RimWorld

Smarter Raider AI
moo 24 Jun @ 8:46pm
1.6 bug possibly yours
Occurred when capturing an enemy

Exception ticking Pavel (at (158, 0, 152)): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 730F97AD]
at PogoAI.Patches.Pawn_HealthTracker_SetDead.GridOnDeath (Verse.Pawn_HealthTracker __instance) [0x0005f] in <b1781770a11a43f8809f96bc6ed95e23>:0
at PogoAI.Patches.Pawn_HealthTracker_MakeDowned.Postfix (Verse.Pawn_HealthTracker __instance) [0x00000] in <b1781770a11a43f8809f96bc6ed95e23>:0
at Verse.Pawn_HealthTracker.MakeDowned (System.Nullable`1[T] dinfo, Verse.Hediff hediff) [0x004c5] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- POSTFIX pogo.ai: Void PogoAI.Patches.Pawn_HealthTracker_MakeDowned:Postfix(Pawn_HealthTracker __instance)
- POSTFIX GiddyUp: Void GiddyUp.Harmony.Patch_MakeDowned:Postfix(Pawn_HealthTracker __instance)
at Verse.Pawn_HealthTracker.CheckForStateChange (System.Nullable`1[T] dinfo, Verse.Hediff hediff) [0x004b3] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- PREFIX kittahkhan.justafleshwound: Boolean JustAFleshWound.Patch.PatchPawn_HealthTracker_CheckForStateChange:Prefix(Nullable`1 dinfo, Hediff hediff, Pawn_HealthTracker __instance)
- POSTFIX OskarPotocki.VEF: Void VEF.Apparels.Patch_Pawn_HealthTracker+VanillaExpandedFramework_Pawn_HealthTracker_CheckForStateChange_Patch:Postfix(Pawn_HealthTracker __instance, Pawn ___pawn)
at Verse.Pawn_HealthTracker.Notify_HediffChanged (Verse.Hediff hediff) [0x0000b] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Hediff.set_Severity (System.Single value) [0x000bf] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.HealthUtility.AdjustSeverity (Verse.Pawn pawn, Verse.HediffDef hdDef, System.Single sevOffset) [0x00026] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.HediffGiver_Bleeding.OnIntervalPassed (Verse.Pawn pawn, Verse.Hediff cause) [0x0002b] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Pawn_HealthTracker.HealthTickInterval (System.Int32 delta) [0x007b2] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Pawn.TickInterval (System.Int32 delta) [0x00073] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Thing.DoTick () [0x000a2] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.ThingOwner.DoTick () [0x0002f] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Thing.DoTick () [0x00146] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.TickList.Tick () [0x0013f] in <78bd3c897ba748f7a6d21cc5498c054e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch0 (Verse.TickManager)
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
< >
Showing 1-3 of 3 comments
moo 24 Jun @ 8:53pm 
Second possible bug, world pawn.

Note - GiddyUp 1.6 is really new, so I wouldn't be surprised...

Exception ticking world pawn Dyytt. Suppressing further errors. System.NullReferenceException: Object reference not set to an instance of an object
[Ref 50C104CD]
at PogoAI.Patches.Pawn_HealthTracker_SetDead.GridOnDeath (Verse.Pawn_HealthTracker __instance) [0x0005f] in <b1781770a11a43f8809f96bc6ed95e23>:0
at PogoAI.Patches.Pawn_HealthTracker_MakeDowned.Postfix (Verse.Pawn_HealthTracker __instance) [0x00000] in <b1781770a11a43f8809f96bc6ed95e23>:0
at Verse.Pawn_HealthTracker.MakeDowned (System.Nullable`1[T] dinfo, Verse.Hediff hediff) [0x004c5] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- POSTFIX pogo.ai: Void PogoAI.Patches.Pawn_HealthTracker_MakeDowned:Postfix(Pawn_HealthTracker __instance)
- POSTFIX GiddyUp: Void GiddyUp.Harmony.Patch_MakeDowned:Postfix(Pawn_HealthTracker __instance)
at Verse.Pawn_HealthTracker.CheckForStateChange (System.Nullable`1[T] dinfo, Verse.Hediff hediff) [0x004b3] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- PREFIX kittahkhan.justafleshwound: Boolean JustAFleshWound.Patch.PatchPawn_HealthTracker_CheckForStateChange:Prefix(Nullable`1 dinfo, Hediff hediff, Pawn_HealthTracker __instance)
- POSTFIX OskarPotocki.VEF: Void VEF.Apparels.Patch_Pawn_HealthTracker+VanillaExpandedFramework_Pawn_HealthTracker_CheckForStateChange_Patch:Postfix(Pawn_HealthTracker __instance, Pawn ___pawn)
at Verse.Pawn_HealthTracker.Notify_HediffChanged (Verse.Hediff hediff) [0x0000b] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Hediff.set_Severity (System.Single value) [0x000bf] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.HealthUtility.AdjustSeverity (Verse.Pawn pawn, Verse.HediffDef hdDef, System.Single sevOffset) [0x00026] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.HediffGiver_Bleeding.OnIntervalPassed (Verse.Pawn pawn, Verse.Hediff cause) [0x0002b] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Pawn_HealthTracker.HealthTickInterval (System.Int32 delta) [0x007b2] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Pawn.TickInterval (System.Int32 delta) [0x00073] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.Thing.DoTick () [0x000a2] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at RimWorld.Planet.WorldPawns.WorldPawnsTick () [0x00039] in <78bd3c897ba748f7a6d21cc5498c054e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.Log:ErrorOnce (string,int)
RimWorld.Planet.WorldPawns:WorldPawnsTick ()
RimWorld.Planet.World:WorldTick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch0 (Verse.TickManager)
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
pogoman  [developer] 30 Jun @ 7:07am 
Thanks moo looks like the same bug, will fix in the next few days
pogoman  [developer] 5 Jul @ 3:48am 
Hi Moo, while running Giddy-Up 2 Forked i was able to capture raiders, including ones riding wargs etc without any errors. Let me know if it happens every time or was just once randomly. If it doesnt noticeably break anything probably fine to ignore for now. The function failing doesnt affect too much
Last edited by pogoman; 5 Jul @ 3:48am
< >
Showing 1-3 of 3 comments
Per page: 1530 50