NullReferenceException at SortWeaponsError
This thread is stale. Please consider creating a new thread before replying to this one.
Agonos
Hi,
I would like to know if you knew, what would be the cause of these error messages? ^^
Thx

"Failed to run a 2.00 timer in 'BotSpawn v1.9.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.BotSpawn.SortWeapons (NPCPlayerApex npc) [0x00020] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Plugins.BotSpawn.SpawnBots (System.String name, Oxide.Plugins.BotSpawn+DataProfile zone, System.String type, System.String group, UnityEngine.Vector3 location) [0x00302] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Plugins.BotSpawn+<FindMonuments>c__AnonStoreyC.<>m__0 () [0x00037] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0

(00:33:31) | Failed to run a 2.00 timer in 'BotSpawn v1.9.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.BotSpawn.SortWeapons (NPCPlayerApex npc) [0x00020] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Plugins.BotSpawn.SpawnBots (System.String name, Oxide.Plugins.BotSpawn+DataProfile zone, System.String type, System.String group, UnityEngine.Vector3 location) [0x00302] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Plugins.BotSpawn+<FindMonuments>c__AnonStoreyC.<>m__0 () [0x00037] in <35b39cd8b49a45fe8dbcd986d1c9e2ff>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0

"
Steenamaroo
Plugin Developer
Hi,
Thanks for the report. I'll take a look soon and rectify it.

That method iterates over items in the npc inventory belt. Have you got anything unusual in there?
Belt should be reserved for bullet and melee weapons only.
Agonos
Original Poster
Hi,
Thank you for thanking me. lol ;)
I do not know if it's because of that but they also have a flashlight.
Steenamaroo
Plugin Developer
Flashlight is fine; They can use that as a melee weapon and also as a flashlight.
Anything like clothing, deployables, ammo, meds etc shouldn't be in there and would probably cause problems.

The plugin shouldn't throw errors, all the same; I'll get a look at it before long.
LoneWolfAU
Failed to run a 2.00 timer in 'BotSpawn v1.9.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BotSpawn.SortWeapons (NPCPlayerApex npc) [0x00020] in <d8e5b705cbda48afa6dda435f7eb9a83>:0 
  at Oxide.Plugins.BotSpawn.SpawnBots (System.String name, Oxide.Plugins.BotSpawn+DataProfile zone, System.String type, System.String group, UnityEngine.Vector3 location) [0x00302] in <d8e5b705cbda48afa6dda435f7eb9a83>:0 
  at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>c__AnonStorey0+<GenerateSpawnPoints>c__AnonStorey1.<>m__0 () [0x00052] in <d8e5b705cbda48afa6dda435f7eb9a83>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0


Whats that all about?

Steenamaroo
Plugin Developer
Haven't had a chance to look yet but it's on my list.
Thanks for the report. :)