peterhaneve / ONIMods

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

Food Supply Tooltips crash #457

Closed nightw closed 7 months ago

nightw commented 7 months ago

Expected Behavior

Clicking on a Thimble Reed and then on the Errands tab it shows if there is any errand associated with that thimble reed.

I am using Spaced Out with Fast Track 0.13.3.0 and a lot of mods, but this seems to be reproducible and the stack trace points to this mod.

Current Behavior

When I click on the errands tab on Thimble Reed the game crashes.

Mod Versions

I am using Steam and Mod Updater. Mod updater says the version of Food Supply Tooltips is v3.6.0.0 and it was last updated on the 23rd of February.

Steps to Reproduce

  1. Have a thimble reed be planted in a hydroponic farm tile
  2. Click on thimble reed
  3. Click on errands tab
  4. See crash

Output Log

Relevant part of the output log (crash stack trace):

MethodAccessException: Method `SimpleInfoScreen.Refresh(bool)' is inaccessible from method `PeterHan.FoodTooltip.InfoScreenRefresher.RefreshInfoPanel(object)'
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr)
  at PeterHan.FoodTooltip.InfoScreenRefresher.RefreshInfoPanel (System.Object _) [0x0000a] in <1f22cc9a36774969867a3330c60d5b59>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <3ca21dc18eae422d87255277091f8593>:0 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00026] in <3ca21dc18eae422d87255277091f8593>:0 
  at WiltCondition.DoWilt () [0x00032] in <10441a52cf784e609fef9aaaa8368210>:0 
  at WiltCondition.DoWiltCallback (System.Object data) [0x00000] in <10441a52cf784e609fef9aaaa8368210>:0 
  at Scheduler.Update () [0x00083] in <10441a52cf784e609fef9aaaa8368210>:0 
  at GameScheduler.Update () [0x00000] in <10441a52cf784e609fef9aaaa8368210>:0 
peterhaneve commented 7 months ago

The base game did not update the mod correctly - it looks like the mod info YAML was unpacked, but not the DLL, as this crash is from the 3.4.0.0 version of the mod. Try manually updating the mod again.

nightw commented 7 months ago

You were right, force updating the mod in Mod Updater fixed the problem. I have seen all kinds of mod update issues in ONI, but partial updates was a new one for me.