Jump to content

Digging Phosphorite tile causes game crash [Solved]


SirBebop
  • Branch: Live Branch Version: Windows Closed

In cycles 100-120, any time I try to dig out one phosphorite tile, ONI crashes. Tested with mods on and with mods off, and still get the same result.

 

Trying to add Phosphorite:UnitType quantity but units dictionary already has key Phosphorite with unit type:mass

  at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0
  at Debug.LogError (System.Object obj) [0x00000] in <3366109ff608488f8317d0b43357f1ba>:0
  at AllResourcesScreen.SpawnCategoryRow (Tag categoryTag, GameUtil+MeasureUnit unit) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at AllResourcesScreen.SpawnRows () [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at AllResourcesScreen.Populate (System.Object data) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at AllResourcesScreen.<Init>b__21_0 (Tag a, Tag b) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at DiscoveredResources.Discover (Tag tag, Tag categoryTag) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at WorldInventory.OnAddedFetchable (System.Object data) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <3366109ff608488f8317d0b43357f1ba>:0
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00000] in <3366109ff608488f8317d0b43357f1ba>:0
  at FetchableMonitor+Instance.RegisterFetchable () [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at FetchableMonitor+<>c.<InitializeStates>b__3_0 (FetchableMonitor+Instance smi) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].Evaluate (StateMachineInstanceType smi) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine+Instance.StartSM () [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].StartSM () [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at Pickupable.OnSpawn () [0x00000] in <b2059d57da244ebc9fb8d55e7bbaa6c7>:0
  at KMonoBehaviour.Spawn () [0x00000] in <3366109ff608488f8317d0b43357f1ba>:0
  at KMonoBehaviour.Start () [0x00000] in <3366109ff608488f8317d0b43357f1ba>:0
Build: U42-509629-S


Steps to Reproduce

1. Dig any Phosphorite tile

DxDiag.txt




User Feedback


The most probable cause is the mod "Favorite Resources" or "pinned resources" or any other mod that can pin resources before you discover them. The pinned resource doesn't disappear even if you deactivate the mod. 

The solution:

1. Load the save file
2. Unpin the resource (in your case phosphorite) from the panel
3. Save
4. Go to the main menu
5. Load the save file

and if it works, thank Sanchozz for posting this solution on another similar bug report :-D

 

Share this comment


Link to comment
Share on other sites

Thanks, @Sanchozz! Ultimately, I had to delete "Favorite Resources" altogether (it crashes the save file upon load every time) in addition to your 5 steps. But I can now dig out Phosphorite tiles without crashes.

 

Thank you @sakura_sk for the assist :)

  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...