System.NullReferenceException: Object reference not set to an instance of an object at BaseAIBrain`1+BaseRoamState

me too... I have this in console
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:18) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:19) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:19) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:19) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:19) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(20:29:19) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAIBrain`1+BaseRoamState[T].GetRoamAnchorPosition () [0x0000b] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1+BaseRoamState[T].StateThink (System.Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at BaseAIBrain`1[T].DoThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0

same here. was  actually in the middle of installing the plugin when the update dropped in. I suppose that the new AI system is not compatible with the functions this plugin is trying to call.

yes sure

WL8YX7fUa39cgmg.jpg Kaizer

same here. was  actually in the middle of installing the plugin when the update dropped in. I suppose that the new AI system is not compatible with the functions this plugin is trying to call.



Merged post

Ok FOUND replace this
RelationshipManager.Instance
with this

RelationshipManager.ServerInstance

on CS FILE



Merged post

oh and thanks to Wulf about this :)

I'm sorry if this is a silly question but what CS file should we edit to apply the fix?

BaronVonFinchus

I'm sorry if this is a silly question but what CS file should we edit to apply the fix?

Some plugins gave this error about relationshipmanager. So the CS file of your plugin (example: Raidlimit.cs) is what you edit to change that. But it doesn't solve the spamming issue... It just makes the plugins work again.

The error posted in this thread has nothing to do with the compiling error with RelationshipManager that many plugins see. An NRE is not the same as a compiler error.

Oh I see, my apologies. I have a few plugins not working but the main issue for me is the spamming issue. Thank you for your speedy reply!

58tbt29KBMHJB0q.jpg Wulf

The error posted in this thread has nothing to do with the compiling error with RelationshipManager that many plugins see. An NRE is not the same as a compiler error.

Just curious if this is something I can fix or if we'll have to wait for an update?

BaronVonFinchus

Just curious if this is something I can fix or if we'll have to wait for an update?

The error in this thread doesn't appear to be related to a specific plugin.
3fIpd3NlPZAI8Lm.jpg Wulf
The error in this thread doesn't appear to be related to a specific plugin.

Okay so its presumably an extension? Possibly the Oxide or RustEdit extension? Again I apologise if this is a stupid question.

BaronVonFinchus

Okay so its presumably an extension? Possibly the Oxide or RustEdit extension? Again I apologise if this is a stupid question.

Looks like a Rust error, not something on our end from what I can tell; else a plugin causing it, but there's no trace of a plugin in the error.
Vzb1o9mtJOqzKsK.jpg Wulf
Looks like a Rust error, not something on our end from what I can tell; else a plugin causing it, but there's no trace of a plugin in the error.
fLVbik2Aa17KN8T.png

Ahh bugger, I think it might take a while for them to fix because currently they are pointing the finger at modded *got this screenshot from the RustEdit Discord, no idea where it was originally*

BaronVonFinchus

Ahh bugger, I think it might take a while for them to fix because currently they are pointing the finger at modded

Yeah, very possible still, just nothing to really indicate what is causing it in terms of plugins. Facepunch doesn't really support modded servers though, so.

4Gg837xj1rrAy7f.jpg Wulf

Yeah, very possible still, just nothing to really indicate what is causing it in terms of plugins. Facepunch doesn't really support modded servers though, so.

Yeah I'll never understand why they don't give you guys any support. So many players come for vanilla but stay for modded!

Like you say I don't think its plugin specific because I've now thanks to your advice on other forums fixed all the plugins but now still getting console spam but it is what it is.

For anyone reading this the advice Wulf posted was this:
Change the following in any plugin complaining about failing to compile due to Relationship manager not containing a definition for "instance":
From:
RelationshipManager.Instance
To:
RelationshipManager.ServerInstance

Looks like it is RustEdit that is the cause of the error spam.
Tested on a 100% clean install (no errors), Clean install with just UMOD (no other plugins, no errors), UMOD + RustIO (no errors).
But when I had it with UMOD and RustEdit, it spammed the errors like mad.

So looks like it is RustEdit that needs an update to stop the error spam mentioned.