Pawn glitched unconcious

Started by xnutellabeastx, February 03, 2017, 09:27:02 PM

Previous topic - Next topic

xnutellabeastx

The pawn is glitched unconscious, and when I click on his health tab, the UI glitches.

This is the error for the pawn

Exception ticking Evgeny: System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at System.Collections.Generic.List`1[Verse.HediffStage].get_Item (Int32 index) [0x00000] in <filename unknown>:0
  at Verse.Hediff.get_CurStage () [0x00000] in <filename unknown>:0
  at RimWorld.StatWorker.GetValueUnfinalized (StatRequest req, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
  at RimWorld.StatWorker.GetValue (StatRequest req, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
  at RimWorld.StatWorker.GetValue (Verse.Thing thing, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
  at RimWorld.StatExtension.GetStatValue (Verse.Thing thing, RimWorld.StatDef stat, Boolean applyPostProcess) [0x00000] in <filename unknown>:0
  at Verse.Pawn.TicksPerMove (Boolean diagonal) [0x00000] in <filename unknown>:0
  at Verse.Pawn.get_TicksPerMoveCardinal () [0x00000] in <filename unknown>:0
  at Verse.AI.PathFinder.FindPath (IntVec3 start, LocalTargetInfo dest, TraverseParms traverseParms, PathEndMode peMode) [0x00000] in <filename unknown>:0
  at Verse.AI.PathFinder.FindPath (IntVec3 start, LocalTargetInfo dest, Verse.Pawn pawn, PathEndMode peMode) [0x00000] in <filename unknown>:0
  at Verse.AI.Pawn_PathFollower.GenerateNewPath () [0x00000] in <filename unknown>:0
  at Verse.AI.Pawn_PathFollower.TrySetNewPath () [0x00000] in <filename unknown>:0
  at Verse.AI.Pawn_PathFollower.TryEnterNextPathCell () [0x00000] in <filename unknown>:0
  at Verse.AI.Pawn_PathFollower.PatherTick () [0x00000] in <filename unknown>:0
  at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
  at Verse.TickList.Tick () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:Update()
Verse.Root_Play:Update()

Calahan

Thank you for the bug report. Although can you please post your entire log file as an attachment (after triggering this error), and not just an extract of it. As the full log file contains additional information that may be pertinent. Plus it also contains a list of the mods you are using (or not, in which case a mod bug can be ruled out).

ison

No more info - locking.

And I've just checked and it seems that CurStageIndex should always be in range, so I think this error should never happen in an unmodded game (unless there was a bug which is already fixed in A17).

Thanks for reporting though.