Jump to content

Game crashing when I execute it


Equi777.
  • Branch: Live Branch Version: Windows Pending

The game crashes everytime I open it and I have no idea how to fix it, I have tried everything from the ONI Troubleshoot Guide page (https://support.klei.com/hc/en-us/articles/360029880551-Oxygen-Not-Included-Troubleshooting-Guide) but the game still keeps crashing. I have also deleted some files that could possibly be causing the crash (e.g.: save files) but the game still crashes.

Full information of the crash:

Assert failed: First anim file for AdvancedApothecaryComplete needs to be non-null.

at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
at Debug.LogError (System.Object obj) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at Debug.Assert (System.Boolean condition, System.Object message) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at DebugUtil.Assert (System.Boolean test, System.String message) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at KAnimControllerBase.set_AnimFiles (KAnimFile[] value) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at BuildingLoader.Add2DComponents (BuildingDef def, UnityEngine.GameObject go, System.String initialAnimState, System.Boolean no_collider, System.Int32 layer) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at BuildingLoader.CreateBuildingComplete (UnityEngine.GameObject go, BuildingDef def) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at BuildingConfigManager.RegisterBuilding (IBuildingConfig config) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at GeneratedBuildings.LoadGeneratedBuildings (System.Collections.Generic.List`1[T] types) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at LegacyModMain.LoadBuildings (System.Collections.Generic.List`1[T] types) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at LegacyModMain.Load () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at Assets.CreatePrefabs () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at Assets.OnPrefabInit () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
at KMonoBehaviour.InitializeComponent () [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at KMonoBehaviour.Awake () [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at UnityEngine.Object.Internal_InstantiateSingleWithParent_Injected (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3& pos, UnityEngine.Quaternion& rot) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
at UnityEngine.Object.Internal_InstantiateSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.GameObject parent, System.String name, System.Boolean initialize_id, System.Int32 gameLayer) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0
at LaunchInitializer.Update () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0
Build: U39-490405-S

I don't have any DLCs.


Steps to Reproduce

I don't know what happened exactly, I stopped playing the game for many months, and then when I wanted to play it again, it was crashing.

DxDiag.txt The Haunted Cosmos.sav




User Feedback


Looking at your logs the game is trying to load Spaced Out but the additional files but they haven't been downloaded from Steam. You own Spaced Out looking at your logs. We encountered this once before on the team.

First try deleting Documents\Klei\OxygenNotIncluded\kplayerprefs.yaml and launch the game. 

If that doesn't work try reinstalling the game. Make sure the C:\Program Files (x86)\Steam\steamapps\common\OxygenNotIncluded folder is completely gone before you install it. You may need to delete your kplayerprefs.yaml again.

  • Thanks 1

Share this comment


Link to comment
Share on other sites

23 hours ago, EricKlei said:

Looking at your logs the game is trying to load Spaced Out but the additional files but they haven't been downloaded from Steam. You own Spaced Out looking at your logs. We encountered this once before on the team.

First try deleting Documents\Klei\OxygenNotIncluded\kplayerprefs.yaml and launch the game. 

If that doesn't work try reinstalling the game. Make sure the C:\Program Files (x86)\Steam\steamapps\common\OxygenNotIncluded folder is completely gone before you install it. You may need to delete your kplayerprefs.yaml again.

that's weird because i don't have spaced out, also i have deleted the kplayerprefs.yaml file before but the game would still crash so i dunno.

and yes, i have reinstalled the game three times, and deleted the kplayerprefs.yaml file before installing it again.

edit: if you think buying the dlc can fix this please let me know

Edited by Equi777.

Share this comment


Link to comment
Share on other sites

You are correct, your log file indicates Spaced Out is downloaded and active but you don't own it. I'm very interested in figuring out if this an issue with Steam or how we query ownership data from Steam.

You can try editing your kplayerprefs.yaml file and change the following line to 0 instead of 1.

EXPANSION1_ID.ENABLED: 0

 

  • Thanks 1

Share this comment


Link to comment
Share on other sites

it worked! all i did was just paste the line in the "ints" section, didn't even have to change the number. thank you!

Share this comment


Link to comment
Share on other sites

Glad to hear you're able to play the game again!

Do you see the "Spaced Out! Activate DLC" button on the title screen? This button should be hidden if you don't own the DLC so if you click it you might need to edit your kplayerprefs again.

image.png

Re-installing Steam might resolve the issue completely but since you're able to play I see no reason to try it.

  • Thanks 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...