cseelhoff / RimThreaded

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

[Save Our Ship 2] [SOS2] `SaveOurShip2.ShowBreathability+<>c.<CheckO2>b__0_1 (Verse.Building t) [0x00000]` #717

Open sealvessel opened 2 years ago

sealvessel commented 2 years ago

Describe the bug

Show breathability check bug.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Hover over room without life support on a ship that is indoors.
  2. See error

Error Logs

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
  at SaveOurShip2.ShowBreathability+<>c.<CheckO2>b__0_1 (Verse.Building t) [0x00000] in <7bb567b828194433af6c68631a34e56d>:0 
  at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <7e901abeac4244b484a99b66989d226f>:0 
  at SaveOurShip2.ShowBreathability.CheckO2 (System.String& __result) [0x0012b] in <7bb567b828194433af6c68631a34e56d>:0 
  at (wrapper dynamic-method) RimWorld.GlobalControls.RimWorld.GlobalControls.TemperatureString_Patch2()
  at RimWorld.GlobalControls.GlobalControlsOnGUI () [0x000f2] in <7e901abeac4244b484a99b66989d226f>:0 
  at (wrapper dynamic-method) RimWorld.MapInterface.RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs_Patch2(RimWorld.MapInterface)
  at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch1(RimWorld.UIRoot_Play)
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Player.log

Player.log.zip

HugsLib log

https://gist.github.com/4f562f4d846a4dfedf4a62af91efe149

Save file

Quicksave.rws.zip

Screenshots

Please confirm this as I have a video.

https://user-images.githubusercontent.com/66351949/141712854-dec5ce30-8fe0-4234-b4ec-ce57b7c4c561.mov

Mod list (Preferably a RimPy compatible list.)

sealvessel commented 2 years ago

https://user-images.githubusercontent.com/66351949/143664847-7ba1c3e0-ab97-493d-858f-ec96dbdc0d44.mov

Just reconfirmed the issue with a mostly minimal modlist.