Jump to content

Crash when attempting to build any sort of rocket module


Psuemno
  • Branch: Preview Branch Version: Windows Fixed

When attempting to build a CO2 Engine for a new rocket, my game is crashing. 

[Edit] It seems to be happening on any sort of rocket building. Building CO2 or Sugar Engines on different rocket platforms, or adding modules (e.g. solar panels) to existing rockets is causing a crash. 

Below is the error message from the crash screen.

Spoiler

IndexOutOfRangeException: Index was outside the bounds of the array.

Grid+ObjectLayerIndexer.get_Item (System.Int32 cell, System.Int32 layer) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Grid.cs:600)
BuildingDef.IsAreaClear (UnityEngine.GameObject source_go, System.Int32 cell, Orientation orientation, ObjectLayer layer, ObjectLayer tile_layer, System.Boolean replace_tile, System.String& fail_reason) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Defs/BuildingDef.cs:530)
BuildingDef.IsValidPlaceLocation (UnityEngine.GameObject source_go, System.Int32 cell, Orientation orientation, System.Boolean replace_tile, System.String& fail_reason) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Defs/BuildingDef.cs:1135)
BuildingDef.IsValidPlaceLocation (UnityEngine.GameObject source_go, UnityEngine.Vector3 pos, Orientation orientation, System.Boolean replace_tile, System.String& fail_reason) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Defs/BuildingDef.cs:1063)
BuildingDef.TryPlace (UnityEngine.GameObject src_go, UnityEngine.Vector3 pos, Orientation orientation, System.Collections.Generic.IList`1[T] selected_elements, System.Int32 layer) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Defs/BuildingDef.cs:415)
LaunchPad.AddBaseModule (BuildingDef moduleDefID, System.Collections.Generic.IList`1[T] elements) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Space/LaunchPad.cs:324)
SelectModuleSideScreen.OrderBuildSelectedModule () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ui/SideScreens/SelectModuleSideScreen.cs:669)
SelectModuleSideScreen.OnClickBuildSelectedModule () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ui/SideScreens/SelectModuleSideScreen.cs:245)
KButton.SignalClick (KKeyCode btn) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/ui/KButton.cs:89)
KButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/ui/KButton.cs:130)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:262)
UnityEngine.EventSystems.EventSystem:Update() (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:385)

Build: U44-534208-S

 


Steps to Reproduce

Go to Rocket Platform 735 on Abnormini.

Select "new rocket."

Select CO2 Engine.

Click "Build."

Attached is my save file where this is happening. 

Shelter.sav




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

It seems to be happening when doing any sort of rocket module building. Trying to build any rocket engine, or even adding other modules (e.g. solar panels) to existing rockets causes an instant crash. 

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