NullReferenceException at LoadSpawnpointsError
Hi,

nice plugin, but I want to create a custom spawn file but I don't know how.
I tought I could use the CustomSpawns plugin but when I want to use it to generate a file it gives me this errors:


[Error] Failed to call hook 'ccmdSpawnFile' on plugin 'CustomSpawnPoints v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomSpawnPoints.ccmdSpawnFile (ConsoleSystem+Arg arg) [0x00052] in <102a5b4e71ed439ab332bf7ca7860c12>:0 
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00211] in <102a5b4e71ed439ab332bf7ca7860c12>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 ​


Hope you can help me and show me a way to get that file ready.

Thank you

Error to console
Seeing this in my oxide log today after restart:
17:35 [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 <008a743e3fab4a0eba9f90e55ad260e6>:0 
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <008a743e3fab4a0eba9f90e55ad260e6>:0 
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <008a743e3fab4a0eba9f90e55ad260e6>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
I have Spawns Database installed, with a spawns file that contains 20 spawn points. 
Any ideas @k1lly0u?
18:41 [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 <1eeafc9c54034a5aa153b94ac9b69760>:0 
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <1eeafc9c54034a5aa153b94ac9b69760>:0 
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <1eeafc9c54034a5aa153b94ac9b69760>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <33f7c42a56934dae8ec04b11017dce31>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <33287985591c40d6983f0b8f0e915565>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <33287985591c40d6983f0b8f0e915565>:0 
Somebody please look into this?
UP...  i have too
I've been getting this error since i installed the plugin and the spawn point is not working at all.
Here is the error:
Failed to call hook 'OnPluginLoaded' on plugin 'CustomSpawnPoints v1.1.2'
It just gives an error when starting the server and does not load, you just need to do "oxide.reload CustomSpawnPoints" and everything works normally!
simpsonss
It just gives an error when starting the server and does not load, you just need to do "oxide.reload CustomSpawnPoints" and everything works normally!

Its fine this work when doing a reload of the plugin. But when a server restart itself due to a server update for exemple... the plugin will not work. The admin is not always there to reload the plugin. This plugin need to get updated as soon as possible.

Hello,

Upon startup / reboot I am getting the following when loading the 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 <72d5f5ec8304415d8de9919b23321c32>:0
  at Oxide.Plugins.CustomSpawnPoints.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00029] in <72d5f5ec8304415d8de9919b23321c32>:0
  at Oxide.Plugins.CustomSpawnPoints.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <72d5f5ec8304415d8de9919b23321c32>: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​

All other plugins load fine. The plugin appears to continue to work though assistance resolving this error message would be greatly appreciated. Thanks!

Same issue, looks like the plugin needs an update.

Plugin doesnt work anymore with new oxide and game files updated december 3 2020

Failed to call hook on PluginLoaded

thanks!

Could you provide the full error please?