NullReferenceException at TrySpawnStashFixed
Error is thrown when loading/reloading the plugin (v2.0.1).
Failed to call hook 'OnServerInitialized' on plugin 'StashTraps v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.StashTraps.TrySpawnStash () [0x00000] in <ee32e3dfa2dd4620be72501959e39ecc>:0
at Oxide.Plugins.StashTraps.RefillStashes () [0x00005] in <ee32e3dfa2dd4620be72501959e39ecc>:0
at Oxide.Plugins.StashTraps.OnServerInitialized () [0x000ac] in <ee32e3dfa2dd4620be72501959e39ecc>:0
at Oxide.Plugins.StashTraps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000d5] in <ee32e3dfa2dd4620be72501959e39ecc>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

In hindsight this error may or may not be related to the fact that I had not installed the new plugin dependancies (Placeholder API and Power Spawn). I have not tested that so far. If this is the case, please disregard.

This must be the case :) I will add a message next update, thanks for your report.

Same error here:

 

Failed to call hook 'OnServerInitialized' on plugin 'StashTraps v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.StashTraps.TrySpawnStash () [0x00000] in <608065fc3ea942eb8444e19951cb59b4>:0

at Oxide.Plugins.StashTraps.RefillStashes () [0x00005] in <608065fc3ea942eb8444e19951cb59b4>:0

at Oxide.Plugins.StashTraps.OnServerInitialized () [0x000ac] in <608065fc3ea942eb8444e19951cb59b4>:0

at Oxide.Plugins.StashTraps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000d5] in <608065fc3ea942eb8444e19951cb59b4>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

So, we're good to go?

Thanks for your hard work!

James

Make sure you've installed new dependencies.

Locked automatically