Jump to content

BotSpawn Crashing my Server

Can't Reproduce 2.1.0

SlayersRust

So my server has crashed twice now because of BotSpawn in the last 2 days. My console gets spammed with this and then the server basically lags out. I have to keep BotSpawn unloaded at the moment. Could we get an update for this Plugin or a fix for this? I've had multiple server owners tell me the same thing happened to them.

"at Oxide.Plugins.BotSpawn.OnNpcTarget (NPCPlayerApex npcPlayer, BaseEntity entity) [0x001ab] in <a3c59f6d3b734aafb40c14a328dc8fb0>:0
at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a37] in <a3c59f6d3b734aafb40c14a328dc8fb0>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Failed to call hook 'OnNpcTarget' on plugin 'BotSpawn v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.BotSpawn.OnNpcTarget (NPCPlayerApex npcPlayer, BaseEntity entity) [0x001ab] in <a3c59f6d3b734aafb40c14a328dc8fb0>:0
at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a37] in <a3c59f6d3b734aafb40c14a328dc8fb0>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Failed to call hook 'OnNpcTarget' on plugin 'BotSpawn v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)"

Link to comment
  • Administrator

Hi,

Thanks for reporting.

This is the first I've heard of it so, right now, I've no idea what's causing that but I'll look into it and find out.

 

If you, or anyone else, can drop any clues - Maybe it happens when a particular event starts or something? That'd be super helpful.

Link to comment

We had about 20 players online when it crashed, and the only event I have on my server is DangerousTreasures. I did not notice any correlation between the spam and any particular event. I'll report back if I figure out why it happened, but for now I'll probably have to keep it unloaded.

Link to comment
  • Administrator

Thank you. I appreciate you taking the time.

I just compared code from current public and V 2.0.8, for the method that's throwing the error - They're identical.

I thought I had made a HumanNPC detection change but, thinking about it, I didn't push that public yet.

 

That pretty much means something's changed outside of BotSpawn but I still need to find the issue and plug whatever it is.

Edited by Steenamaroo
Link to comment
  • Administrator

I've not seen any issues so far myself and I haven't had any other reports about this.

If it's still an issue please let me know.

Link to comment
1.2m

Downloads

Total number of downloads.

6.1k

Customers

Total customers served.

90.3k

Files Sold

Total number of files sold.

1.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.