asquared31415 / ONI-mods

6 stars 6 forks source link

Better Multitool Animations - crash #9

Closed HugePinball closed 2 years ago

HugePinball commented 2 years ago

Just had a crash in Spaced Out, public testing branch 485768. I marked the Rover's Lander for deconstruction with the deconstruct tool and received this crash message:

ScoutRover does not have component AttributeLevels

UnityEngine.Debug:LogError (object) Debug:LogError (object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:142) StateMachine4/TargetParameter<MultitoolController, MultitoolController/Instance, Worker, object>:Get<Klei.AI.AttributeLevels> (MultitoolController/Instance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1850) BetterAnimations.BetterAnimationsPatches/MultitoolController_Patch:GetScaleHelper (single,MultitoolController/Instance) (wrapper dynamic-method) MultitoolController/Instance:MultitoolController+Instance.PlayPre_Patch0 (MultitoolController/Instance) MultitoolController:<InitializeStates>b__4_0 (MultitoolController/Instance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/fx/MultitoolController.cs:28) StateMachine4/GenericInstance<MultitoolController, MultitoolController/Instance, Worker, object>:ExecuteActions (StateMachine4/State<MultitoolController, MultitoolController/Instance, Worker, object>,System.Collections.Generic.List1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine4/GenericInstance<MultitoolController, MultitoolController/Instance, Worker, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine4/GenericInstance<MultitoolController, MultitoolController/Instance, Worker, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) StateMachine/Instance:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:253) StateMachine4/GenericInstance<MultitoolController, MultitoolController/Instance, Worker, object>:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1010) Worker:StartWork (Worker/StartWorkInfo) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/components/Worker.cs:426) GameStateMachine4/State/<>cDisplayClass81_01<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object, Deconstructable>:b__0 (WorkChore1/StatesInstance<Deconstructable>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:2052) GameStateMachine4/State/<>cDisplayClass80_0<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:<ToggleWork>b__0 (WorkChore1/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:1992) StateMachine4/GenericInstance<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>:ExecuteActions (StateMachine4/State<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>,System.Collections.Generic.List1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine4/GenericInstance<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine4/GenericInstance<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) GameStateMachine4/EventTransitionData<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:ExecuteTransition (WorkChore1/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:254) GameStateMachine4/EventTransitionData<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>:OnCallback (WorkChore1/StatesInstance<Deconstructable>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:264) GameStateMachine4/EventTransitionData/<>cDisplayClass7_0<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:<Register>b__0 (object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:280) EventSystem:Trigger (UnityEngine.GameObject,int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/EventSystem.cs:161) EventExtensions:Trigger (UnityEngine.GameObject,int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/EventSystem.cs:582) GameStateMachine4/State/<>cDisplayClass73_0<Navigator/States, Navigator/StatesInstance, Navigator, object>:b0 (Navigator/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:1828) StateMachine4/GenericInstance<Navigator/States, Navigator/StatesInstance, Navigator, object>:ExecuteActions (StateMachine4/State<Navigator/States, Navigator/StatesInstance, Navigator, object>,System.Collections.Generic.List1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine4/GenericInstance<Navigator/States, Navigator/StatesInstance, Navigator, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine4/GenericInstance<Navigator/States, Navigator/StatesInstance, Navigator, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) Navigator:Stop (bool,bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/components/Navigator.cs:461) Navigator:AdvancePath (bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/components/Navigator.cs:414) Navigator:GoTo (KMonoBehaviour,CellOffset[],NavTactic) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/components/Navigator.cs:303) GameStateMachine4/State/<>c__DisplayClass114_01<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object, Deconstructable>:b0 (WorkChore1/StatesInstance<Deconstructable>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:2613) StateMachine4/GenericInstance<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>:ExecuteActions (StateMachine4/State<WorkChore1/States<Deconstructable>, WorkChore1/StatesInstance, WorkChore1<Deconstructable>, object>,System.Collections.Generic.List1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine4/GenericInstance<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine4/GenericInstance<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) StateMachine/Instance:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:253) StateMachine4/GenericInstance<WorkChore1/States, WorkChore1/StatesInstance<Deconstructable>, WorkChore1, object>:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1010) Chore:Begin (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/Chore.cs:710) WorkChore1<Deconstructable>:Begin (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/chores/WorkChore.cs:190) ChoreDriver/StatesInstance:BeginChore () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:30) ChoreDriver/States/<>c:<InitializeStates>b__5_2 (ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:107) StateMachine4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:ExecuteActions (StateMachine4/State<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>,System.Collections.Generic.List1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) StateMachine4/Parameter1/Transition<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Evaluate (ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1293) StateMachine4/Parameter1/Context<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Set (Chore,ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1369) StateMachine4/Parameter1<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Set (Chore,ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1251) ChoreDriver:SetChore (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:172) Brain:UpdateChores () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/Brain.cs:80) Brain:UpdateBrain () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/Brain.cs:57) BrainScheduler/BrainGroup:RenderEveryTick (single,bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/BrainScheduler.cs:207) BrainScheduler:RenderEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/BrainScheduler.cs:360) SimAndRenderScheduler/RenderEveryTickUpdater:Update (IRenderEveryTick,single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/SimAndRenderScheduler.cs:188) UpdateBucketWithUpdater`1:Update (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:79) StateMachineUpdater/BucketGroup:AdvanceOneSubTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:152) StateMachineUpdater:RenderEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:264) Game:LateUpdate () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1628)

Build: U38-485768-SD

CardiacTasty commented 2 years ago

I also just ran into this error, only with digging.

asquared31415 commented 2 years ago

Thanks for the report, this is fixed in version 2.0.2 (you may need to wait a short while for the update to become available)