NullReferenceException at LoadSpawnpointsError
Hello,

Plugin is a life saver. Updated Rust / Oxide as of 12/17 and, I'm getting the following error message in console:

Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomSpawnPoints.LoadSpawnpoints () [0x00007] in <68a1be17b34b499ebb3499573654defc>:0
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <68a1be17b34b499ebb3499573654defc>:0
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <68a1be17b34b499ebb3499573654defc>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Let me know if you need additional details. I apologize if this is a configuration error / plugin incompatibility on my side or, if I'm just blatently over looking something.

Thanks!

Any resolution? Not working still.

Merged post

I should say....I Created a spawn file using spawns database, used spawns.config <myfilename>, and checked the spawndatabase data file (to ensure it contained my spawn point) as well as the custom spawn config file (to ensure it pointed to my spawndatabase file). It gives me no error that I can see ( I do not have an rcon terminal up though as I use g-portal and its GUI) but I do not spawn at that set point.

plsus one, same here


Not sure what this is all about.

So I am getting the following errors when the server boots trying to load the mod. 

11:08 [Error] Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomSpawnPoints.LoadSpawnpoints () [0x00007] in <f3ecfc5f03024b7fb09071a7466410b5>:0 
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <f3ecfc5f03024b7fb09071a7466410b5>:0 
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <f3ecfc5f03024b7fb09071a7466410b5>: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 ​

Any idea on this error 

I got this error in console, anything to worry about?

Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomSpawnPoints.LoadSpawnpoints () [0x00007] in <ae178f38b0c548569f541181d73d01fa>:0 
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <ae178f38b0c548569f541181d73d01fa>:0 
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <ae178f38b0c548569f541181d73d01fa>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>: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)
 

+!!
Support, I have the same problem

So far I've only had this object reference error with plugins that weren't updated after a facepunch update. Look to see if there's an updated version of your plugin.

Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CustomSpawnPoints.LoadSpawnpoints () [0x00007] in <c05281d99b254acd8ad7d1250f4997cc>:0

at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <c05281d99b254acd8ad7d1250f4997cc>:0

at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <c05281d99b254acd8ad7d1250f4997cc>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>: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: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
UgDFhJlQNXKmHbf.png

Same here.
I looked into the configuration, but the spawn file does exist and is working.
Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomSpawnPoints.LoadSpawnpoints () [0x00007] in <33bf789845574d7cb17e60b8e9526c87>:0
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <33bf789845574d7cb17e60b8e9526c87>:0
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <33bf789845574d7cb17e60b8e9526c87>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

Same issue here, once server restarts it stops working.