RimWorld

RimWorld

Remedies
VU1 26 Oct, 2023 @ 6:38am
Another Exception Error
Hey I got this error during multiple test runs for the game and was wondering if you could take a look at it see if you could make heads or tales on the cause

Exception ticking hediff (FF_PainkillerAddiction ticksSinceCreation=116301) for pawn Reilly. Removing hediff... Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.Hediff.get_CurStage () [0x0002a] in <95de19971c5d40878d8742747904cdcd>:0
at (wrapper dynamic-method) Verse.Hediff.Verse.Hediff.Tick_Patch0(Verse.Hediff)
at (wrapper dynamic-method) Verse.Pawn_HealthTracker.Verse.Pawn_HealthTracker.HealthTick_Patch0(Verse.Pawn_HealthTracker)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
(wrapper dynamic-method) Verse.Pawn_HealthTracker:Verse.Pawn_HealthTracker.HealthTick_Patch0 (Verse.Pawn_HealthTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)


Could be a possible mod conflict but I seems to happen even with the majority of mods removed. https://gist.github.com/HugsLibRecordKeeper/520528014bf8ec47d425d15c6c0b2d3f