缺氧
台阶
Tscholl 2023 年 4 月 17 日 下午 12:04
Game crashes for no obvious reason with stairs v2.0a
hi,
I seem to have a bug related to the the stairs mod v2.0al. It suddenly started to crash without any obvious reason (no updates or mods installed). but it happens consistently after every other cycle and it crashes the exact moment again after reload (no clicking or anything involved).
I also checked for updates and have the updater mod installed.

NullReferenceException: Object reference not set to an instance of an object Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.GameObject parent, System.String name, System.Boolean initialize_id, System.Int32 gameLayer) (at <36c1a72976474ac69d137f9f2c30c46c>:0) GameUtil.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, Grid+SceneLayer sceneLayer, UnityEngine.GameObject parent, System.String name, System.Int32 gameLayer) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) GameUtil.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, Grid+SceneLayer sceneLayer, System.String name, System.Int32 gameLayer) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Deconstructable.SpawnItem (UnityEngine.Vector3 position, Tag src_element, System.Single src_mass, System.Single src_temperature, System.Byte disease_idx, System.Int32 disease_count) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Deconstructable.SpawnItemsFromConstruction (System.Single temperature, System.Byte disease_idx, System.Int32 disease_count) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Deconstructable.TriggerDestroy (System.Single temperature, System.Byte disease_idx, System.Int32 disease_count) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Deconstructable.OnCompleteWork (Worker worker) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Workable.CompleteWork (Worker worker) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Worker.CompleteWork () (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Worker.Work (System.Single dt) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) GameStateMachine`4+State+<>c__DisplayClass84_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<ToggleWork>b__1 (StateMachineInstanceType smi, System.Single dt) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) BucketUpdater`1[DataType].Update (DataType data, System.Single dt) (at <36c1a72976474ac69d137f9f2c30c46c>:0) UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <36c1a72976474ac69d137f9f2c30c46c>:0) StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <36c1a72976474ac69d137f9f2c30c46c>:0) StateMachineUpdater.AdvanceOneSimSubTick () (at <36c1a72976474ac69d137f9f2c30c46c>:0) Game.SimEveryTick (System.Single dt) (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Game.Update () (at <b1b9d006f0f94a2dbc1211e654d1a3dd>:0) Build: U46-552078-V

Thanks a lot for making this mod..i like it a lot.
I would be really glad if you could resolve the issue for me :)
最后由 Tscholl 编辑于; 2023 年 4 月 17 日 下午 12:05
< >
正在显示第 1 - 4 条,共 4 条留言
!-嘿嘿嘿-!  [开发者] 2023 年 4 月 18 日 上午 1:41 
It seems like you have a corrupted save file. One building already destroyed still exists in the game , but the destruction task never finished , and the game don't know what to do with these so it crashed. I don't think this crash relate to any mod. It happens mostly when the game autosave at wrong moment.
The general solution is play from a previous save that doesn't crash.
Otherwise you need find out which building is causing the crash and cancel the destruction task also completely remove it or any thing related.
Tscholl 2023 年 4 月 18 日 下午 12:27 
Thanks a lot for your help. I found the deconstruction errand for a building which causes the crash. The reason it is related to your mod is because the dups cannot reach the building without the stairs...
Do you by any chance know an easy way to fix that without going back to a previous save? It's the only building of that type on my map so maybe by deleting some lines in a save file?
!-嘿嘿嘿-!  [开发者] 2023 年 4 月 19 日 上午 1:42 
Never tried to fix one, but you can remove any building by using Debug Mode[oxygennotincluded.fandom.com].
If the building is invisible just destroy everything in those tiles.
Tscholl 2023 年 4 月 21 日 下午 1:00 
I tried the debug mode but the game crashes as well when i click it with the deconstruction tool.
But never mind...I go back to an older save now. Thanks again for pointing me to that errand..i might not have found the cause without your stairs :)
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50