[1.3.3055] Corpse cannot be hauled

Started by Jacksonferno, July 09, 2021, 02:35:29 PM

Previous topic - Next topic

Jacksonferno

A minor error is thrown when a corpse cannot be hauled but is allowed. In terms of bugs this can be fixed by creating a corpse stockpile This ends up throwing an error even with a proper stockpile on further testing. It ends up pausing the game on "Pause on error" mode.
The primary concern, though is that the corpse cannot be hauled.
The corpse in question is a Squirrel Corpse. It is inside a building, inside the home area and is fresh but damaged. (Specifically a 12.0 damage revolver shot to the body, which only has 10.0 hit points.) The hauler in reference has only the traits "Creepy Breathing" and "Trigger-happy".

Kaleun threw exception in WorkGiver HaulCorpses: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.DesignationManager.DesignationOn (Verse.Thing t, Verse.DesignationDef def) [0x00000] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.PawnUtility.CanBeBuried (Verse.Thing t) [0x00010] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.StoreUtility.TryFindBestBetterNonSlotGroupStorageFor (Verse.Thing t, Verse.Pawn carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction faction, RimWorld.IHaulDestination& haulDestination, System.Boolean acceptSamePriority) [0x00058] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.StoreUtility.TryFindBestBetterStorageFor (Verse.Thing t, Verse.Pawn carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction faction, Verse.IntVec3& foundCell, RimWorld.IHaulDestination& haulDestination, System.Boolean needAccurateResult) [0x0002b] in <0cd011d786f74fa1b512d1a64d687114>:0
  at Verse.AI.HaulAIUtility.HaulToStorageJob (Verse.Pawn p, Verse.Thing t) [0x00016] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.WorkGiver_Haul.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x0000c] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.WorkGiver_HaulCorpses.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x0000a] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.WorkGiver_Scanner.HasJobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x00000] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.JobGiver_Work+<>c__DisplayClass3_1.<TryIssueJobPackage>b__0 (Verse.Thing t) [0x00013] in <0cd011d786f74fa1b512d1a64d687114>:0
  at Verse.GenClosest+<>c__DisplayClass2_0.<ClosestThingReachable>b__0 (Verse.Thing t) [0x00034] in <0cd011d786f74fa1b512d1a64d687114>:0
  at Verse.GenClosest.<ClosestThing_Global>g__Process|5_0 (Verse.Thing t, Verse.GenClosest+<>c__DisplayClass5_0& ) [0x00047] in <0cd011d786f74fa1b512d1a64d687114>:0
  at Verse.GenClosest.ClosestThing_Global (Verse.IntVec3 center, System.Collections.IEnumerable searchSet, System.Single maxDistance, System.Predicate`1[T] validator, System.Func`2[T,TResult] priorityGetter) [0x0005d] in <0cd011d786f74fa1b512d1a64d687114>:0
  at Verse.GenClosest.ClosestThingReachable (Verse.IntVec3 root, Verse.Map map, Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator, System.Collections.Generic.IEnumerable`1[T] customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32 searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions) [0x0014c] in <0cd011d786f74fa1b512d1a64d687114>:0
  at RimWorld.JobGiver_Work.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00415] in <0cd011d786f74fa1b512d1a64d687114>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.JobGiver_Work:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_PrioritySorter:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Tagger:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Subtree:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob (Verse.ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:CheckForJobOverride ()
RimWorld.Toils_LayDown/<>c__DisplayClass3_0:<LayDown>b__1 ()
Verse.AI.JobDriver:DriverTick ()
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()

thesonofliberty

I also have this error and it seems to be related to every corpse (none can be hauled).

They can still be butchered but the pawn has to go collect the animal wherever it died.

Did not have this issue in 1.3.3052

pulzar

Same here with a corpse that was dug out due to a corpse obsession. It's probably related to the screen flickering bug that manifests itself if you have any dump zones for corpses.

dbusse706

I also experienced this bug after the update pushed to the 1.3 beta on 7/9 in a game I started specifically for the beta. No mods running on this save. The entire screen would bink black constantly with the Root level exception. I solved the immediate problem by using dev tools to destroy all corpses in my stockpiles, but I can no longer haul corpses. I get another Root Level exception when I try to interact with them.

Pheanox

This bug should have been resolved earlier this week along with the screen flickering issue, let me know if it persists.