NullReferenceException: Object reference not set to an instance of an object at BaseAnimalNPC.TryThinkFixed

Recently, ive been getting this spammed into my console every 20-40 minutes:

 

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

I would be very happy to receive a proper and answer on this.

Thank you in advance,
-RustyMain

(13:55:01) | Protocol: 2303.213.1

Build Date: 06/07/2021 21:35:07

Unity Version: 2019.4.22f1

Changeset: 62241

Branch: release

(13:55:14) | Oxide.Rust Version: 2.0.5064

 

 

Still happening here.

De9pz0ejtaQANRD.PNG LoneWolfAU

(13:55:01) | Protocol: 2303.213.1

Build Date: 06/07/2021 21:35:07

Unity Version: 2019.4.22f1

Changeset: 62241

Branch: release

(13:55:14) | Oxide.Rust Version: 2.0.5064

 

 

Still happening here.

There are a lot of unusual console messages since the last FP  update , regarding in my case "ArguementNullException: Value cannot be null. Parameter name : key"  and "Bone error in SkeletonProperties>BuildDictionary for ?" , "SetDestination" can only be set on an active agent that has been placed on a Navemesh" and a "stop" one with the same message .  there are also other random ones, I expect they will be fixed after the next wipe, they dont seem to do anything drastic to the server or gameplay.
In regard to the "key" one i have unloaded all my plugins (92) in the expectation of finding which one it belongs to (?)  but it still pops up,

Yeah, I have 5 of these different console messages filtered out of my RCon. Was just wondering if the animalbrain one had been fixed and I was missing out on something.

i'm getting tons of errors

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

I'll look at adding a patch for the other location too.

Hi all,
i just was stupid enough to spawn a horse with the command

entity.spawn horse

Those horses are old assets and cause a loop with the following message

(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object at BaseAnimalNPC.TryThink () [0x00000] in :0 
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in :0

This will spam your logfile and slow down your server until it crashes. 

You can solve this by using the following command

del assets/rust.ai/agents/horse/horse.prefab

Hope this helps & best regards from Germany

Locked automatically