cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
119 stars 21 forks source link

`Verse.PawnCollisionTweenerUtility.CanGoDirectlyToNextCell` #720

Open sealvessel opened 2 years ago

sealvessel commented 2 years ago

Error Logs

Exception ticking Markos (at (508, 0, 447)): System.NullReferenceException: Object reference not set to an instance of an object
  at RimThreaded.PawnUtility_Patch.PawnBlockingPathAt (Verse.Pawn& __result, Verse.IntVec3 c, Verse.Pawn forPawn, System.Boolean actAsIfHadCollideWithPawnsJob, System.Boolean collideOnlyWithStandingPawns, System.Boolean forPathFinder) [0x00042] in <86be62ec05034ba58645d699f2fc63ae>:0 
  at (wrapper dynamic-method) RimWorld.PawnUtility.RimWorld.PawnUtility.PawnBlockingPathAt_Patch1(Verse.IntVec3,Verse.Pawn,bool,bool,bool)
  at RimWorld.PawnUtility.AnyPawnBlockingPathAt (Verse.IntVec3 c, Verse.Pawn forPawn, System.Boolean actAsIfHadCollideWithPawnsJob, System.Boolean collideOnlyWithStandingPawns, System.Boolean forPathFinder) [0x00000] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.AI.Pawn_PathFollower.WillCollideWithPawnAt (Verse.IntVec3 c) [0x0000f] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.AI.Pawn_PathFollower.WillCollideWithPawnOnNextPathCell () [0x00000] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.AI.Pawn_PathFollower.get_MovingNow () [0x00008] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.PawnCollisionTweenerUtility.CanGoDirectlyToNextCell (Verse.Pawn pawn) [0x0008c] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.PawnCollisionTweenerUtility.PawnCollisionPosOffsetFor (Verse.Pawn pawn) [0x000bd] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.PawnTweener.TweenedPosRoot () [0x00067] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.PawnTweener.PreDrawPosCalculation () [0x0009f] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.Pawn_DrawTracker.get_DrawPos () [0x00000] in <7e901abeac4244b484a99b66989d226f>:0 
  at RimWorld.PawnFootprintMaker.FootprintMakerTick () [0x00045] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.Pawn_DrawTracker.DrawTrackerTick () [0x0004a] in <7e901abeac4244b484a99b66989d226f>:0 
  at Verse.Pawn.Tick () [0x000be] in <7e901abeac4244b484a99b66989d226f>:0 
  at RimThreaded.TickList_Patch.NormalThingTick () [0x00025] in <86be62ec05034ba58645d699f2fc63ae>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimThreaded.TickList_Patch:NormalThingTick ()
RimThreaded.RimThreaded:ExecuteTicks ()
RimThreaded.RimThreaded:ProcessTicks (RimThreaded.RimThreaded/ThreadInfo)
RimThreaded.RimThreaded:InitializeThread (object)
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart (object)

Player.log

HugsLib log

https://gist.github.com/966f1a920e9d6bb73336726565efd2b6

Save file

!!! Please add a save file where the issue occurs to speed up testing and fixing of the issue !!!

Screenshots

image

Mod list (For vanilla report, it has to be same as below list.)

  • brrainz.harmony
  • <li>ludeon.rimworld</li>
    <li>ludeon.rimworld.royalty</li>
    <li>ludeon.rimworld.ideology</li>
    <li>unlimitedhugs.hugslib</li>
    <li>brrainz.cameraplus</li>
    <li>telefonmast.graphicssettings</li>
    <li>edb.preparecarefully</li>
    <li>void.charactereditor</li>
    <li>uuugggg.tdpack</li>
    <li>arandomkiwi.rimsaves</li>
    <li>madarauchiha.custommapsizes</li>
    <li>trinity.runtimegcupdated</li>
    <li>seohyeon.optimizationmeats</li>
    <li>dubwise.dubsmintminimap</li>
    <li>adambucior.betterelectronics</li>
    <li>majorhoff.rimthreaded.experimental</li>