Jump to content

[NEW Ticket][Error] Failed to call hook

Pending 2.8.0

Jbird

Posted

Did you still need help here?

猫のクローン

Posted

12:57 [Info] [CSharp] Started Oxide.Compiler v1.0.32.0 successfully
12:57 [Info] BetterNpc was compiled successfully in 1706ms
12:57 [Warning] [BetterNpc] Plugin loading progress at 2%
12:57 [Info] [BetterNpc] File Abandoned Cabins has been loaded successfully!
12:57 [Info] [BetterNpc] File Abandoned Military Base has been loaded successfully!
12:57 [Info] [BetterNpc] File Abandoned Supermarket has been loaded successfully!
12:57 [Info] [BetterNpc] File Airfield has been loaded successfully!
12:57 [Info] [BetterNpc] File Giant Excavator Pit has been loaded successfully!
12:57 [Info] [BetterNpc] File HQM Quarry has been loaded successfully!
12:57 [Info] [BetterNpc] File Junkyard has been loaded successfully!
12:57 [Info] [BetterNpc] File Large Harbor has been loaded successfully!
12:57 [Info] [BetterNpc] File Lighthouse has been loaded successfully!
12:57 [Info] [BetterNpc] File Military Tunnel has been loaded successfully!
12:57 [Info] [BetterNpc] File Mining Outpost has been loaded successfully!
12:57 [Info] [BetterNpc] File Missile Silo has been loaded successfully!
12:57 [Info] [BetterNpc] File Oxum's Gas Station has been loaded successfully!
12:57 [Info] [BetterNpc] File Power Plant has been loaded successfully!
12:57 [Info] [BetterNpc] File Radtown has been loaded successfully!
12:57 [Info] [BetterNpc] File Satellite Dish has been loaded successfully!
12:57 [Info] [BetterNpc] File Sewer Branch has been loaded successfully!
12:57 [Info] [BetterNpc] File Small Harbor has been loaded successfully!
12:57 [Info] [BetterNpc] File Stone Quarry has been loaded successfully!
12:57 [Info] [BetterNpc] File Sulfur Quarry has been loaded successfully!
12:57 [Info] [BetterNpc] File The Dome has been loaded successfully!
12:57 [Info] [BetterNpc] File TRAIN YARD has been loaded successfully!
12:57 [Info] [BetterNpc] File Water Treatment Plant has been loaded successfully!
12:57 [Info] [BetterNpc] File Wild Swamp has been loaded successfully!
12:57 [Warning] Calling 'OnServerInitialized' on 'BetterNpc v1.3.1' took 365ms
12:57 [Info] Loaded plugin BetterNpc v1.3.1 by KpucTaJl
12:57 [Warning] [BetterNpc] Plugin loading progress at 7%
12:57 [Warning] [BetterNpc] Plugin loading progress at 14%
12:57 [Warning] [BetterNpc] Plugin loading progress at 21%
12:57 [Warning] [BetterNpc] Plugin loading progress at 28%
12:57 [Info] [BetterNpc] File AirDrop has been loaded successfully!
12:57 [Info] [BetterNpc] File Bradley has been loaded successfully!
12:57 [Info] [BetterNpc] File CargoShip has been loaded successfully!
12:57 [Info] [BetterNpc] File CH47 has been loaded successfully!
12:57 [Info] [BetterNpc] File Helicopter has been loaded successfully!
12:57 [Warning] [BetterNpc] Plugin loading progress at 35%
12:57 [Warning] [BetterNpc] Plugin loading progress at 42%
12:57 [Info] [BetterNpc] File Arctic has been loaded successfully!
12:57 [Info] [BetterNpc] File Arid has been loaded successfully!
12:57 [Info] [BetterNpc] File Temperate has been loaded successfully!
12:57 [Info] [BetterNpc] File Tundra has been loaded successfully!
12:57 [Warning] [BetterNpc] Plugin loading progress at 49%
12:57 [Warning] [BetterNpc] Plugin loading progress at 56%
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 

 

Jbird

Posted

5 hours ago, 猫のクローン said:

12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
12:57 [Error] Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <29516d89bbd04859a8535b919af35955>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 

Are you using the default settings or have you made any changes to the files?

NRE are often configuration issues, so I am wondering if anything was changed out of specification, or if anything might be missing. It is very common for the Custom folder to be missed, as by default it is empty. I have also seen several instances where not all of the folders or files were copied into the server.

When reloading NpcSpawn by itself does it reload properly?

猫のクローン

Posted (edited)

I have confirm below:

1. Using default settings.

2. NpcSpawn load/reload look like fine.

Load NpcSpawn:

[NpcSpawn] Loading custom navigation mesh files...
[NpcSpawn] All custom navigation mesh files have loaded successfully!
[NpcSpawn] List of biome positions: Arid = 1478, Temperate = 1654, Tundra = 458, Arctic = 918
[NpcSpawn] List of road positions: ExtraWide = 1234, Standard = 956, ExtraNarrow = 1052
[NpcSpawn] 0 railway positions found
Calling 'OnServerInitialized' on 'NpcSpawn v2.8.0' took 105ms
Loaded plugin NpcSpawn v2.8.0 by KpucTaJl
> o.reload NpcSpawn
Unloaded plugin NpcSpawn v2.8.0 by KpucTaJl
[NpcSpawn] Loading custom navigation mesh files...
[NpcSpawn] All custom navigation mesh files have loaded successfully!
[NpcSpawn] List of biome positions: Arid = 1503, Temperate = 1579, Tundra = 460, Arctic = 873
[NpcSpawn] List of road positions: ExtraWide = 1234, Standard = 956, ExtraNarrow = 1052
[NpcSpawn] 0 railway positions found
Calling 'OnServerInitialized' on 'NpcSpawn v2.8.0' took 104ms
Loaded plugin NpcSpawn v2.8.0 by KpucTaJl

 

Now BetterNpc and Convoy Reforged two plugin have this problem, and I only using this two plugin need NpcSpawn.

Edited by 猫のクローン
猫のクローン

Posted (edited)

Today I have update convory, issue below:

Unloaded plugin Convoy v2.7.4 by Adem
[Convoy] Route caching has started!
Loaded plugin Convoy v2.7.5 by Adem
[Convoy] Route caching has ended! The number of routes: 2
> convoystart
[Convoy] The event has been successfully launched!
Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <c787fcfac2ee4d9a9617a257457eb70a>:0 out
  at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <c787fcfac2ee4d9a9617a257457eb70a>:0
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <c787fcfac2ee4d9a9617a257457eb70a>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0
NullReferenceException: Object reference not set to an instance of an object

I have 2 server, one on windows server 2025, the other on windows 11 pro, all have same issue, I try open an all new test server on windows 11 pro workstation still same issue.

Edited by 猫のクローン
Jbird

Posted

On 4/23/2025 at 12:40 AM, 猫のクローン said:

I have confirm below:

1. Using default settings.

2. NpcSpawn load/reload look like fine.

Now BetterNpc and Convoy Reforged two plugin have this problem, and I only using this two plugin need NpcSpawn.

With BetterNpc I suggest either a fresh install or just going through and ensuring that all folders are there, including the empty Custom folder, from the download. The Custom folder sometimes needs manually created as some hosts do not allow moving an empty folder into their dashboard.

With Convoy I notice that version 2.7.4 unloaded, and 2.7.5 loaded. Did you just update the plugin? If it gives you the error any time you reload I would try a fresh install. If you continue having issues with it please create a ticket under the Convoy plugin's support tab.

猫のクローン

Posted

Okey.........I have using all new server again, and start step below:

1. Inatsll NpcSpawn

2. Install BetterNpc

3. Install Convoy

All good no error code.

Then start install other plugin, when finish...........all good................................Orz

Jbird

Posted

Thank you for letting me know. Glad to hear it went well.

Let us know if you have any other issues or questions.

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.5m

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.