Report reply SlayersRust Posted August 11, 2020 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)" Quote Share this comment Link to comment
Report reply Steenamaroo Posted August 11, 2020 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. Quote Share this comment Link to comment
Report reply Steenamaroo Posted August 11, 2020 Actually, I might know what it is. Would you mind testing the copy attached here, please? Thank you! https://codefling.com/forums/topic/93-botspawn-bots-keep-attacking-humannpc/#comment-263 Quote Share this comment Link to comment
Report reply SlayersRust Posted August 11, 2020 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. Quote Share this comment Link to comment
Report reply SlayersRust Posted August 11, 2020 (edited) 22 hours ago, Steenamaroo said: Actually, I might know what it is. Would you mind testing the copy attached here, please? Thank you! https://codefling.com/forums/topic/93-botspawn-bots-keep-attacking-humannpc/#comment-263 Okay I loaded this version testing now. I'll keep my console open on my second monitor to monitor this over the next few hours. Edited August 12, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply Steenamaroo Posted August 11, 2020 (edited) 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 August 11, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply Steenamaroo Posted August 21, 2020 Changed Status from Pending to Can't Reproduce Quote Share this comment Link to comment
Report reply Steenamaroo Posted August 21, 2020 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. Quote Share this comment Link to comment