Jump to content

rebuilding a rover inside a rocket causes a crash


suicide commando
  • Branch: Preview Branch Version: Windows Pending

When you deconstruct the lander inside a rover module on a rocket, then tell your dupes to deliver new materials and rebuild it, as soon as the materials are delivered and construction begins, the game crashes.

Exception in: (Minion).FetchAreaChore+States.root.delivering.delivercomplete. 
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
  at UnityEngine.GameObject.GetComponent[T] () [0x00009] in C:\buildslave\unity\build\Runtime\Export\Scripting\GameObject.bindings.cs:28 
  at KPrefabIDExtensions.PrefabID (UnityEngine.GameObject go) [0x00001] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\KPrefabIDExtensions.cs:16 
  at JettisonableCargoModule+StatesInstance.CheckIfLoaded () [0x00020] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\Space\JettisonableCargoModule.cs:172 
  at JettisonableCargoModule+<>c.<InitializeStates>b__7_1 (JettisonableCargoModule+StatesInstance smi) [0x00000] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\Space\JettisonableCargoModule.cs:38 
  at GameStateMachine`4+State+<>c__DisplayClass95_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<EventHandler>b__0 (StateMachineInstanceType smi, System.Object d) [0x00000] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\statemachine\GameStateMachine.cs:2309 
  at GameStateMachine`4+GameEvent+<>c__DisplayClass6_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Subscribe>b__0 (System.Object d) [0x0000c] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\statemachine\GameStateMachine.cs:2933 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x0013d] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\util\EventSystem.cs:170 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x0001c] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\util\KMonoBehaviour.cs:411 
  at Storage.Store (UnityEngine.GameObject go, System.Boolean hide_popups, System.Boolean block_events, System.Boolean do_disease_transfer, System.Boolean is_deserializing) [0x002b1] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\components\Storage.cs:481 
  at FetchAreaChore+StatesInstance+Delivery.Complete (System.Collections.Generic.List`1[T] deliverables) [0x0013e] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\chores\FetchAreaChore.cs:78 
  at FetchAreaChore+StatesInstance.DeliverComplete () [0x0014b] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\chores\FetchAreaChore.cs:495 
  at FetchAreaChore+States+<>c.<InitializeStates>b__12_13 (FetchAreaChore+StatesInstance smi) [0x00000] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\chores\FetchAreaChore.cs:728 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00057] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:874 

UnityEngine.Debug:LogError(Object, Object)
Debug:LogError(Object, Object) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Debug.cs:152)
DebugUtil:LogErrorArgs(Object, Object[]) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191)
DebugUtil:LogException(Object, String, Exception) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:201)
GenericInstance:ExecuteActions(State, List`1) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:908)
GenericInstance:PushState(BaseState) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:833)
GenericInstance:GoTo(BaseState) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1128)
<>c__DisplayClass80_0:<ToggleWork>b__1(StatesInstance, Single) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:2006)
BucketUpdater`1:Update(StatesInstance, Single) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:96)
UpdateBucketWithUpdater`1:Update(Single) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:79)
BucketGroup:AdvanceOneSubTick(Single) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:152)
StateMachineUpdater:AdvanceOneSimSubTick() (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:244)
Game:SimEveryTick(Single) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Game.cs:1368)
Game:Update() (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Game.cs:1344)
 


Steps to Reproduce

- Build a Rocket with a rover module

- Have dupes construct rover + lander in the module

- Select rover module

- Select rover lander

- Give deconstruct order on Lander

- Disable/Reenable auto delivery of materials to tell dupes to go and rebuild that rover

- Watch dupe deliver materials

- As soon as dupe has delivered materials and begins construction, KABOOM.




User Feedback


There are no comments to display.



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