RimWorld

RimWorld

LightsOut
This topic has been locked
oscar370 2 Oct, 2022 @ 8:55am
Traveler freezes.
It happened to me that a pawn that was part of a group of travelers passing through my colony was frozen, his hunger does not pass or anything, it also caused a drop in FPS. Analyzing the HugsLib log with RimPy I found an error with the name of the pawn that is frozen.

Exception ticking Mixtecas (at (9, 0, 74)). Suppressing further errors. Exception: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch3(Verse.Pawn) at Verse.TickList.Tick () Verse.Pawn.Verse.Pawn.Tick_Patch3 was patched by: PRE: LightsOut.Patches.Lights.DetectPawnRoomChange.Prefix. POST: LightsOut.Patches.Lights.DetectPawnRoomChange.Postfix TRANS: Soyuz.Patches.Pawn_Tick_Patch.Transpiler.

I don't know much about reading the log, and seeing this mod mentioned in the error I was wondering if this error is caused by this mod, or if it could be something else.

https://gist.github.com/HugsLibRecordKeeper/a2ab1ffcbb2ad56bc8fc02448a89b2b7
< >
Showing 1-2 of 2 comments
juanlopez2008  [developer] 2 Oct, 2022 @ 3:35pm 
This doesn't look like my mod, it looks like a Combat Evolved problem.

According to your log, the order of events was:

1. Mixtecas meleed from out of melee position

2. Combat Evolved blew up, presumably because of the above:
System.NullReferenceException: Object reference not set to an instance of an object at CombatExtended.Verb_MeleeAttackCE.TryCastShot () at (wrapper dynamic-method) Verse.Verb.Verse.Verb.TryCastNextBurstShot_Patch0(Verse.Verb) at Verse.Verb.VerbTick () at (wrapper dynamic-method) Verse.VerbTracker.Verse.VerbTracker.VerbsTick_Patch0(Verse.VerbTracker) at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch3(Verse.Pawn)

3. RimWorld logged a more general stack trace of the error above, this time only noting that the failure happened during the tick:
Exception ticking Mixtecas (at (9, 0, 74)). Suppressing further errors. Exception: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch3(Verse.Pawn) at Verse.TickList.Tick ()

CE blew up when Mixtecas attempted to melee attack, and that was what caused the NullReferenceException. My mod is mentioned simply because the melee attack happens deep down during a pawn's tick, which my mod happens to have patches on.
Last edited by juanlopez2008; 2 Oct, 2022 @ 3:36pm
oscar370 2 Oct, 2022 @ 3:50pm 
Oh, I see, thank you very much for clarifying.
< >
Showing 1-2 of 2 comments
Per page: 1530 50