Jump to content

Black hole if Raptor pounces on a critter that no longer exists


Tigin
  • Branch: Preview Branch Version: Windows Fixed

image.png.65004af0e6946ff9af951e4eefd5897a.png

I've seen this happen on real gameplay, but the easiest way to artificially reproduce this is to Destroy a critter the moment a Rhex jumps up to pounce. In real gameplay, this probably occurs when a critter dies or when a baby grows up to an adult. Given how often Rhexes attempt (and fail) to pounce on wild critters, this crash can become quite frequent


Steps to Reproduce

1. Destroy a critter right when a Rhex pounces on it

dropoff.sav

  • Ninja 1



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.

That also happens if multiple (say 20) predators are targeting the same prey. Can reproduce it.

Note the HuntPredicateTame part because I put 20 tamed rhexes and 1 poor wild regal bammini.

Exception in: (Raptor).EatStates.root.pounce.roll. 
System.NullReferenceException: Object reference not set to an instance of an object
  at Klei.AI.ModifiersExtensions.GetAmounts (UnityEngine.GameObject go) [0x00001] in /home/build/workspace/game/Assets/scripts/ai/modifiers/Modifiers.cs:185 
  at Klei.AI.Amount.Lookup (UnityEngine.GameObject go) [0x00001] in /home/build/workspace/game/Assets/scripts/ai/amounts/Amount.cs:57 
  at EatStates.HuntPredicateTame (UnityEngine.GameObject obj) [0x00001] in /home/build/workspace/game/Assets/scripts/Mods/Fauna/Chores/EatStates.cs:275 
  at EatStates.CheckHuntSuccess (EatStates+Instance smi) [0x00036] in /home/build/workspace/game/Assets/scripts/Mods/Fauna/Chores/EatStates.cs:284 
  at EatStates.<InitializeStates>b__14_2 (EatStates+Instance smi) [0x00001] in /home/build/workspace/game/Assets/scripts/Mods/Fauna/Chores/EatStates.cs:123 
  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 /home/build/workspace/game/Assets/scripts/ai/statemachine/StateMachine.cs:930 

UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
LogCatcher:UnityEngine.ILogHandler.LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) (at /home/build/workspace/game/Assets/scripts/game/Game.cs:47)
LogCatcher:UnityEngine.ILogHandler.LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) (at /home/build/workspace/game/Assets/scripts/game/Game.cs:47)
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Debug:LogError (object,UnityEngine.Object) (at /home/build/workspace/game/Assets/Plugins/Debug.cs:163)
DebugUtil:LogErrorArgs (UnityEngine.Object,object[]) (at /home/build/workspace/game/Assets/Plugins/Klei/util/DebugUtil.cs:219)
DebugUtil:LogException (UnityEngine.Object,string,System.Exception) (at /home/build/workspace/game/Assets/Plugins/Klei/util/DebugUtil.cs:229)
StateMachine`4/GenericInstance<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:ExecuteActions (StateMachine`4/State<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>,System.Collections.Generic.List`1<StateMachine/Action>) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/StateMachine.cs:964)
StateMachine`4/GenericInstance<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:PushState (StateMachine/BaseState) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/StateMachine.cs:889)
StateMachine`4/GenericInstance<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:GoTo (StateMachine/BaseState) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/StateMachine.cs:1186)
GameStateMachine`4/EventTransitionData<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:ExecuteTransition (EatStates/Instance) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:263)
GameStateMachine`4/EventTransitionData<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:OnCallback (EatStates/Instance) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:273)
GameStateMachine`4/EventTransitionData/<>c__DisplayClass7_0<EatStates, EatStates/Instance, IStateMachineTarget, EatStates/Def>:<Register>b__0 (object) (at /home/build/workspace/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:291)
EventSystem:Trigger (UnityEngine.GameObject,int,object) (at /home/build/workspace/game/Assets/Plugins/Klei/util/EventSystem.cs:162)
EventExtensions:Trigger (UnityEngine.GameObject,int,object) (at /home/build/workspace/game/Assets/Plugins/Klei/util/EventSystem.cs:585)
KBatchedAnimController:TriggerStop () (at /home/build/workspace/game/Assets/scripts/animation/KBatchedAnimController.cs:416)
KBatchedAnimController:UpdateFrame (single) (at /home/build/workspace/game/Assets/scripts/animation/KBatchedAnimController.cs:374)
KBatchedAnimController:UpdateAnim (single) (at /home/build/workspace/game/Assets/scripts/animation/KBatchedAnimController.cs:339)
KBatchedAnimUpdater:UpdateRegisteredAnims (System.Collections.Generic.LinkedList`1<KBatchedAnimController>,single) (at /home/build/workspace/game/Assets/scripts/animation/KBatchedAnimUpdater.cs:281)
KBatchedAnimUpdater:LateUpdate () (at /home/build/workspace/game/Assets/scripts/animation/KBatchedAnimUpdater.cs:245)
Global:LateUpdate () (at /home/build/workspace/game/Assets/scripts/game/Global.cs:903)

Build: U56-671013-SCRPD

 

Edited by kurosolo
  • Spool 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...