NullReferenceException at AnimalBrain+AttackState.GetAimDirectionFixed
System.NullReferenceException: Object reference not set to an instance of an object
at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <5cf129a2ac964f838f3c8429bba8dbb2>:0
at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] in <5cf129a2ac964f838f3c8429bba8dbb2>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00058] in <5cf129a2ac964f838f3c8429bba8dbb2>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <5cf129a2ac964f838f3c8429bba8dbb2>:0
at BaseAnimalNPC.TryThink () [0x00023] in <5cf129a2ac964f838f3c8429bba8dbb2>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <5cf129a2ac964f838f3c8429bba8dbb2>:0

So, yesterday I was finished with my latest map patch after the massive usual clusterF being created by FacePunch, does the following error pop up in my Rcon. 

Now, before I'm going to the right channels for this as I don't know where to complain about this would I like to know a bit more information on this error, how it happens and if there would be an option to remove these errors. 

Worthy notes to be knowing of

The server is modded, custom map and has the rustedit.DLL 
I do not have a plugin that alerts animals in some cases. 
I still have to update the latest patch, but presuming that won't fix it anyway as it's an optional update. 

Besides the beloved "error" tag, I would like to know what's causing the error guys. 😶

A method in Rust that isn't checking for null where they assumed it wouldn't be null, probably triggered by something in your custom map.

k9YuPvf6Hho1tXE.jpg Wulf

A method in Rust that isn't checking for null where they assumed it wouldn't be null, probably triggered by something in your custom map.

that was my first thought as well. I do know last time, with the NPC spawners that there was a issue with last month. However, yesterday I have roamed the whole 6k map and checked every location where I have or custom spawns for npc, players or other AI. I haven't found it anywhere to reduplicate this error. 

The error does also cause to lag the server out a lot. It happened twice now, but no one knows how it happens. There is however one slightly possible reason, as when the error started to flood on the rcon, someone was busy with a Bradley that was shooting at another AI at the same moment. Not sure if this is something to look into, but it's worth mentioning. 

If, for example.. a plugin could cause this error, what kind of plugin should we be looking at? a plugin that spawns npc? or alters NPC? 

Added a patch to the game to potentially fix this. Will be in the next released build.

sends digitally can of beer  

cheers, thank you for the fix! 

Im getting this error : 

 

System.NullReferenceException: Object reference not set to an instance of an object at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in :0 at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] in :0 at BaseAIBrain`1[T].Think (System.Single delta) [0x00058] in :0 at BaseAIBrain`1[T].DoThink () [0x0000d] in :0 at BaseAnimalNPC.TryThink () [0x00023] in :0 at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in :0

 

Thats the full error spamming my logs.. I have no idea whats causing it every plugin is updated.

keLse9fIlkePthM.png UnrealSalty

Im getting this error : 

 

System.NullReferenceException: Object reference not set to an instance of an object at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in :0 at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] in :0 at BaseAIBrain`1[T].Think (System.Single delta) [0x00058] in :0 at BaseAIBrain`1[T].DoThink () [0x0000d] in :0 at BaseAnimalNPC.TryThink () [0x00023] in :0 at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in :0

 

Thats the full error spamming my logs.. I have no idea whats causing it every plugin is updated.

Seems to be a FP one , will have to wait for Wulfs patch to see how it is afterwards. Probably saved the day again

System.NullReferenceException: Object reference not set to an instance of an object at AnimalBrain

(08:40:30) | System.NullReferenceException: Object reference not set to an instance of an object
  at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AnimalBrain+AttackState.StateEnter () [0x00053] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].SwitchToState (BaseAIBrain`1+BasicAIState[T] newState, System.Int32 stateContainerID) [0x0004f] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].SwitchToState (AIState newState, System.Int32 stateContainerID) [0x0001b] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].EventTriggeredStateChange (System.Int32 newStateContainerID, System.Int32 sourceEventID) [0x00029] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIEvent.TriggerStateChange (IAIEventListener listener, System.Int32 sourceEventID) [0x00007] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AIEvents.Tick (System.Single deltaTime, StateStatus stateStatus) [0x0014f] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].Think (System.Single delta) [0x0006d] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].DoThink () [0x0000d] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAnimalNPC.TryThink () [0x00023] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <f75c9d81cd8b43d89a53a7efe989153e>:0
(08:40:30) | System.NullReferenceException: Object reference not set to an instance of an object
  at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].Think (System.Single delta) [0x00058] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].DoThink () [0x0000d] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAnimalNPC.TryThink () [0x00023] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <f75c9d81cd8b43d89a53a7efe989153e>:0
(08:40:30) | System.NullReferenceException: Object reference not set to an instance of an object
  at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].Think (System.Single delta) [0x00058] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAIBrain`1[T].DoThink () [0x0000d] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at BaseAnimalNPC.TryThink () [0x00023] in <f75c9d81cd8b43d89a53a7efe989153e>:0 
  at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds,

still getting alot of this spam in console since few updates ago, anyone know how to prevent it?

SfdPFnGkzz7bfvF.jpg Wulf
The patch is in a development build as mentioned above.

I realised that as i stated in my previous post (to the above) that is why i advised UnRealsalty to wait for the next update, as we all are which i assume  will be  2.0.5121

B9kkcBRieppmXeW.jpg Wulf
The patch is in a development build as mentioned above.

Is it just a oxide issue and or plugin issue? ( i might be saying trash ) or is it a plugin issue. If it's a plugin issue please tell me which one lol.

Locked automatically