Workaround Console Filter by Wulf. This clears up the endless message, but does not solve the problem altogether. My FPS of an empty server dropped from 380 to 280. I'm waiting for updates ..
NullReferenceException: Object reference not set to an instance of an object at BaseAnimalNPC.TryThinkFixed
Sorry I had no idea where else to go for this,
I changed animal spawns using these commands in console:
"bear.population 15",
"boar.population 14",
"wolf.population 14",
"horse.population 5",
"stag.population 10",
"chicken.population 10",
which always worked before, but now since this latest update, it isn't working. I don't think/dont know if it's a plugin specifically? All I know is its spamming this stuff:
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(07:36:32) | System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
Plugin list (this list more or less has persisted through over a years worth of wipes and this is the first issue I've had this wipe):
AdminHammer, AdvancedGather, Agriblock, Airstrike, AutoBroadcast, AutomatedEvents, Backpacks, BackPumpJack, BalloonPlus, BaseRepair, BetterChat, BlueprintShare, BradleyGuards, BuildingGrades, BuriedTreasure, ClothedMurderers, CompoundOptions, CorpseLocation, DangerousTreasures, DeathMarker, DiscordChat, DiscordCore, DiscordServerStats, Earthquake, Economics, ExtendedRecycler, Fishing, Friends, FriendsUI, GatherControl, GatherRewards, Giveaways, GuardedCrate, HomesGUI, ImageLibrary, GUIShop, InstantBuy, InstantCraft, InstantExperiment, InstantMixingTable, Kits, LockOnRockets, MagicAirdropPanel, MagicAirStrikePanel, MagicBradleyPanel, MagicCargoShipPanel, MagicCh47Panel, MagicClockPanel, MagicCrashPanel, MagicDangerousTreasuresPanel, MagicDeathNotesPanel, MagicDescription, MagicEarthquakePanel, MagicEconomicsPanel, MagicFpsPanel, MagicGatherPanel, MagicGridPanel, MagicHeliPanel, MagicHostilePanel, MagicLastWipePanel, MagicOilRigPanel, MagicPanel, MagicPingPanel, MagicPlayersPanel, MagicRadiationInfoPanel, MagicRadiationPanel, MagicRainOfFirePanel, MagicSleepersPanel, MagicWipePanel, MoneyTime, MonumentRadiation, NoCompound, NoGiveNotices, NoWeaponDrop, PathFinding, PermissionsManager, PlaceholderAPI, PlaneCrash, PlayerAdministration, PlayerChallenges, PlayerDatabase, PlayerRankings, PlayerRanks, PlayerTracker, PlaytimeTracker, PreventLooting, QuickSmelt, QuickSort, RadStorm, RainOfFire, RealisticTorch, RealisticWeather, Recycle, RemoverTool, RespawnProtection, RestoreUponDeath, SaveAnnouncer, SignalCooldown, Slap, SleeperGuard, SuicideKill, SurveyInfo, TeaModifiers, TeleportGUI, TimedExecute, Trade, TruePVE, UnburnableMeat, WarpsGUI, Waypoints, WhoaBoy, WipeInfoApi, ZLevelsRemastered, ZombieHorde, RaidingZombies, ZoneDomes and ZoneManager
same issues
Same for me as well.
waiting for an update? or who found a solution to this problem?
- I just now checked all the plugins one by one looking for "RelationshipManager.ServerInstance" to replace it.
- None of the plugins have "RelationshipManager.ServerInstance".
- Everyone is fine. The plugins are not the cause of the mentioned error:
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]. Single delta) [0x0009c] in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0 at BaseAIBrain`1 [T] .Think (System.Single delta) [0x00051] in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0 at BaseAIB0000` in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0 at HumanNPC.ServerThink (System.Single delta) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0 at NPCPlayer.ServerThink_Interddad7008 [0x000148 Tryb0000Think7b94b94008) [0 at NPCPlayer. <d70d90f75fab4a7b9437ed7dadb3ce82>: 0 at AIThinkManager.DoProcessing (ListHashSet`1 [T] process, System.Single budgetSeconds, System.Int32 & last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0
On console.
Looking for a solution.
moonman52
You just need to either update the affected plugins with the new version as and when they get released or you can edit the code of the .cs plugin file and change any entry that reads "RelationshipManager.Instance" to "RelationshipManager.ServerInstance" instead then load the updated plugin to your server and it will be fixed.
Merged post
Mine says:
System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>: 0
at AIThinkManager.DoProcessing (ListHashSet`1 [T] process, System.Single budgetSeconds, System.Int32 & last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:
BaseAnimalNPC.TryThink
Merged post
System.NullReferenceException: Object reference not set to an instance of an object
at BaseAnimalNPC.TryThink () [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
Merged post
I looked at my serverlog and it gives me more information.
It is giving me a file address and a line 39.
I will look at it.
Merged post
It was a problem with the movement of the animals.
I added "nav_disable False" to my server.
Problem solved.
No more console spam for me.
Merged post
Add it to your startup command line or server.cfg.
Setting it to false means that NPC AI is enabled.
True means it is disabled.
Fixed, update your rustedit.dll
sidenote: if people can stop pointing fingers like a child, then this bug would have been fixed sooner. Go digging, do some homework for fellow server owners, help each other out in this rough time.
my console too spaming messages...
nav_disable False in console - dont work(
Same here. and a "rustedit.dll" doesnt exist in my serverfolder, so i cant update it.
I'm fix this error.
I spawn horse
and she dont run in terrain in one location.
used *kill* on ent: horse at position (-367.3, 37.0, 483.3).
[ENTCMD] **************************** used *kill* on ent: assets/rust.ai/agents/horse/horse.prefab
And dont spawn in console
I don't really understand what to do.
Can you better explain how it is solved?.
Where is rustedit.dll and what should we do?.
Majaspokla
Fixed, update your rustedit.dll
sidenote: if people can stop pointing fingers like a child, then this bug would have been fixed sooner. Go digging, do some homework for fellow server owners, help each other out in this rough time.
After updates. This warning pops up on my server. Have you seen it before?
(11:11:35) | System.NullReferenceException: Object reference not set to an instance of an object
at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] 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 BaseAnimalNPC.TryThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
ErMonito
I don't really understand what to do.
Can you better explain how it is solved?.
Where is rustedit.dll and what should we do?.
I have a similar issue. I am using a dedicated server. I couldn't find rusedit.dll either. When I restarted my server it didn't do the update. :(
| System.NullReferenceException: Object reference not set to an instance of an object
at AnimalBrain+AttackState.GetAimDirection (BaseCombatEntity from, BaseCombatEntity target) [0x00000] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AnimalBrain+AttackState.StateThink (System.Single delta) [0x000de] 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 BaseAnimalNPC.TryThink () [0x0000d] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <d70d90f75fab4a7b9437ed7dadb3ce82>:0
Final solution:
1st
https://github.com/k1lly0u/Oxide.Ext.RustEdit
Copy the Oxide.Ext.RustEdit.dll to your / serverroot / RustDedicated_Data / Managed folder.
2nd
https://umod.org/games/rust
Copy - paste and replace files in RustDedicated_Data / Managed folder.
3rd
Restart your server.
Locked automatically