akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
45 stars 29 forks source link

Crashes to look into #81

Closed akarnokd closed 3 months ago

akarnokd commented 3 months ago

When quitting a game, probably related to animal shelters.

NullReferenceException: Object reference not set to an instance of an object
  at SpaceCraft.InventorySpawnContent.OnConstructibleDestroyed (UnityEngine.GameObject constructible) [0x00005] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at (wrapper delegate-invoke) System.Action`1[UnityEngine.GameObject].invoke_void_T(UnityEngine.GameObject)
  at SpaceCraft.ConstructibleProxy.OnDestroy () [0x00028] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 

Related to Auto-Harvest grapping algae:

NullReferenceException: Object reference not set to an instance of an object
  at SpaceCraft.MachineOutsideGrower.InstantiateAtRandomPosition (System.Int32 index, UnityEngine.GameObject objectToInstantiate, Unity.Mathematics.Random currentRandom, System.Single currentGrowth) [0x002fe] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at SpaceCraft.MachineOutsideGrower.SpawnRandom (System.Int32 index, System.Single growth) [0x0007a] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at SpaceCraft.MachineOutsideGrower.SpawnAndCheckGrowing (System.Int32 index) [0x0001c] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at SpaceCraft.MachineOutsideGrower.OnGrabedAGrowing (System.Int32 index, SpaceCraft.WorldObject worldObjectGrabed, System.Boolean showNotification) [0x00028] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at SpaceCraft.MachineOutsideGrower+<>c__DisplayClass41_0.<InstantiateAtRandomPosition>b__0 (SpaceCraft.WorldObject worldObjectGrabed, System.Boolean showNotification) [0x00000] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0 
  at SpaceCraft.ActionGrabable.OnDestroy () [0x00065] in <caa9fbf2aef44f15abdeaa1e753d4a9e>:0