Truinto / ONI-Modloader-SimpleMods

OxygenNotIncluded Mods
MIT License
16 stars 6 forks source link

Crash with Storages #21

Closed cameronsjo closed 2 years ago

cameronsjo commented 2 years ago
[13:39:26.656] [1] [INFO] Customize Buildings's patched_method Storage.OnQueueDestroyObject matched in the stack trace, adding to referenced mods list
MissingMethodException: void Storage.DropAll(bool,bool,UnityEngine.Vector3,bool)
  at (wrapper dynamic-method) Storage.Storage.OnQueueDestroyObject_Patch1(Storage,object)
  at Storage+<>c.<.cctor>b__135_2 (Storage component, System.Object data) [0x00000] in <f9baef9e89cf46d89f61eedc4adbd93b>:0 
  at EventSystem+IntraObjectHandler`1[ComponentType].Trigger (UnityEngine.GameObject gameObject, System.Object eventData) [0x0001e] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x0004f] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00026] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at TracesExtesions.DeleteObject (UnityEngine.GameObject go) [0x00010] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at TracesExtesions.DeleteObject (UnityEngine.Component cmp) [0x00006] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at Constructable.FinishConstruction (UtilityConnections connections, Worker workerForGameplayEvent) [0x0017c] in <f9baef9e89cf46d89f61eedc4adbd93b>:0 
  at Constructable+<>c__DisplayClass32_0.<OnCompleteWork>b__1 (System.Object data) [0x00000] in <f9baef9e89cf46d89f61eedc4adbd93b>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00026] in <6a81623675ea4347b1cfdd3156c4d89d>:0 
  at BuildingComplete.OnCleanUp () [0x00216] in <f9baef9e89cf46d89f61eedc4adbd93b>:0 
  at KMonoBehaviour.OnDestroy () [0x00039] in <6a81623675ea4347b1cfdd3156c4d89d>:0
Truinto commented 2 years ago

I remember this one. It's just requires recompiling. Klei has added another optional parameter to that method. Pretty sure that's fixed by now.