OrionFive / Hospitality

Orion's "Hospitality" and more
https://www.patreon.com/orionmods
GNU General Public License v3.0
91 stars 53 forks source link

Hospitality: Recurring "rescued guest" constantly appearing #635

Closed bvers6 closed 2 years ago

bvers6 commented 2 years ago

Describe the bug Recently I've started having an issue where the rescued guest event fires every 5-10 minutes and the pawn will fail to load; mousing over the event causes the whole screen to go grey. The graphics fix themselves on reload but the event seems to fire constantly with random rescuees spawning. I've tried switching storytellers and re-downloading the mod, clearing configs and verifying steam integrity. disabling hospitality seems to stop the event firing. (so perhaps a weird conflict with something else)

Note the "Root level exception in Update" stacktrace only occurs when mousing over the event which makes the screen go grey (ref. screenshot and 3rd stacktrace log)

To Reproduce Steps to reproduce the behavior:

  1. Start a new game
  2. Wait a little bit
  3. 'rescued guest' appears

Console log https://gist.github.com/34895de5cb80509cee2ac235def92cb2

Error stacktrace The error has extra information that is not included in the log. Please select it in the console and copy the whole error message.

Exception ticking Syd (at (195, 0, 249)): System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch4(Verse.Pawn)
  at Verse.TickList.Tick () [0x0015c] in <e13bd2f1929544099ed2b58e66ece833>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game)
Verse.Root_Play:Update ()

SOYUZ:[README] !!IMPORTANT!! There is a large chance this error is not related to RocketMan at all. RocketMan has patch on pawns that enables throttling, it will cause it to appear in the stacktrace and in visual exceptions, but in 99.9% of the time it's not RocketMan causing this issue but something down the line. RocketMan patches Pawn.Tick function just to add the throttling ability, the new code doesn't have any known issues and the issue is most likely futher down the line with error System.NullReferenceException: Object reference not set to an instance of an object at Verse.PawnTweener.MovedPercent () [0x00000] in :0 at Verse.PawnTweener.TweenedPosRoot () [0x00021] in :0 at Verse.PawnTweener.ResetTweenedPosToRoot () [0x00000] in :0 at Verse.PawnTweener.PreDrawPosCalculation () [0x0001d] in :0 at Verse.Pawn_DrawTracker.get_DrawPos () [0x00000] in :0 at RimWorld.GenThing.TrueCenter (Verse.Thing t) [0x00010] in :0 at VFECore.CompShieldBubble.Break () [0x0006d] in <17b548553b9744ac8900a8f59cc04041>:0 at VFECore.Abilities.CompAbilities.Break () [0x00001] in <17b548553b9744ac8900a8f59cc04041>:0 at VFECore.Abilities.CompAbilities.CompTick () [0x0003c] in <17b548553b9744ac8900a8f59cc04041>:0 at Verse.ThingWithComps.Tick () [0x00024] in :0 at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch4(Verse.Pawn) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) RocketMan.Logger:Debug (string,System.Exception,string) Soyuz.Patches.Pawn_Tick_Patch:Finalizer (Verse.Pawn,System.Exception) (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch4 (Verse.Pawn) Verse.TickList:Tick () (wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game) Verse.Root_Play:Update ()

Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.PawnTweener.MovedPercent () [0x00000] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.PawnTweener.TweenedPosRoot () [0x00021] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.PawnTweener.ResetTweenedPosToRoot () [0x00000] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.PawnTweener.PreDrawPosCalculation () [0x0001d] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.Pawn_DrawTracker.get_DrawPos () [0x00000] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.get_DrawPos_Patch1(Verse.Pawn)
  at Verse.LocalTargetInfo.get_CenterVector3 () [0x00015] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.TargetInfo.get_CenterVector3 () [0x0000c] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at RimWorld.TargetHighlighter.Highlight (RimWorld.Planet.GlobalTargetInfo target, System.Boolean arrow, System.Boolean colonistBar, System.Boolean circleOverlay) [0x0003b] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.LookTargets.Highlight (System.Boolean arrow, System.Boolean colonistBar, System.Boolean circleOverlay) [0x00010] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.LookTargetsUtility.TryHighlight (Verse.LookTargets lookTargets, System.Boolean arrow, System.Boolean colonistBar, System.Boolean circleOverlay) [0x00004] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at Verse.LetterStack.LetterStackUpdate () [0x0002d] in <e13bd2f1929544099ed2b58e66ece833>:0 
  at (wrapper dynamic-method) Verse.Game.Verse.Game.UpdatePlay_Patch3(Verse.Game)
  at Verse.Root_Play.Update () [0x00032] in <e13bd2f1929544099ed2b58e66ece833>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.Root_Play:Update ()

Screenshots image

Modlist modlist1.txt

OrionFive commented 2 years ago

I've uploaded a fix addressing one of the many issues your game is having, but odds are that's just a symptom. You can download it here: https://github.com/OrionFive/Hospitality/archive/refs/heads/develop.zip

From what I can tell the problem(s) are caused by Seek and Destroy and Vanilla Factions Extended, possibly conflicting with other mods.