peterhaneve / ONIMods

Peter Han's mods for Oxygen Not Included
Other
316 stars 65 forks source link

Thermal Tooltips - Crash with February QoL Update #450

Closed timcanpy closed 8 months ago

timcanpy commented 8 months ago

Game crashes when interacting with Thermal Tooltips mod

Expected Behavior

When opening building details, the expanded tooltips should be displayed. Currently using the Spaced Out DLC

Current Behavior

When opening building details, the game crashes.

Mod Versions

Currently using a Steam Subscription. Force Update via Mod Updater does not work make a difference.

Steps to Reproduce

  1. Select building
  2. Click the Change Material Button

Output Log

NullReferenceException: Object reference not set to an instance of an object

PeterHan.ThermalTooltips.BuildThermalTooltip.AddThermalInfo (DescriptorPanel effectsPane, Tag elementTag) (at <e853c608cab04803a6c108a14e1c838b>:0)
PeterHan.ThermalTooltips.ThermalTooltipsPatches+MaterialSelector_SetEffects_Patch.Postfix (MaterialSelector __instance, Tag element) (at <e853c608cab04803a6c108a14e1c838b>:0)
(wrapper dynamic-method) MaterialSelector.MaterialSelector.SetEffects_Patch1(MaterialSelector,Tag)
MaterialSelector.OnSelectMaterial (Tag elem, Recipe recipe, System.Boolean focusScrollRect) (at <1a8bba13569349b99ce84dc6ff18815b>:0)
MaterialSelectionPanel.SelectSourcesMaterials (Building building) (at <1a8bba13569349b99ce84dc6ff18815b>:0)
DetailsScreenMaterialPanel.OpenMaterialSelectionPanel () (at <1a8bba13569349b99ce84dc6ff18815b>:0)
DetailsScreenMaterialPanel.<OnPrefabInit>b__12_0 () (at <1a8bba13569349b99ce84dc6ff18815b>:0)
KButton.SignalClick (KKeyCode btn) (at <3ca21dc18eae422d87255277091f8593>:0)
KButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <3ca21dc18eae422d87255277091f8593>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.EventSystem:Update()

Build: U51-596100-S
peterhaneve commented 8 months ago

This is an issue introduced by today's patch, and has been fixed in version 3.4.0.0.