Jump to content

Npc spawn error

Pending 2.8.4

QueenLuckyshot
QueenLuckyshot

Posted

Hey,

When an chinook want to leave the map, it is stuck in the sky, also a lot of npc spawning only here, other monuments is good. I had 40 npcs here, then i restart the server and was good, when an chinook wants to leave the map, there come more npcs here. (See Picture) I get this error 02/02 21:40:36 | Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.4' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateInventory () [0x00116] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn+CustomScientistNpc.ServerInit () [0x00164] in <f6bd450210074cc5b72351805219395f>:0 at BaseNetworkable.Spawn () [0x0004f] in <3b79f851321f46869731eeb09369ab08>:0 at BaseEntity.Spawn () [0x00000] in <3b79f851321f46869731eeb09369ab08>:0 at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0007b] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <f6bd450210074cc5b72351805219395f>: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 <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0. Can you help me?error.jpg.09db211a9a035c3b807a9878164cbbe6.jpg

QueenLuckyshot

Posted

 

I have now found out that when I unload this file Supermarket, there is no error anymore, but I can't find what is wrong with this file, can someone help me?

Abandoned Supermarket.json

  • Like 1
aimacak

Posted (edited)

5 hours ago, QueenLuckyshot said:

Hey,

When an chinook want to leave the map, it is stuck in the sky, also a lot of npc spawning only here, other monuments is good. I had 40 npcs here, then i restart the server and was good, when an chinook wants to leave the map, there come more npcs here. (See Picture) I get this error 02/02 21:40:36 | Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.8.4' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateInventory () [0x00116] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn+CustomScientistNpc.ServerInit () [0x00164] in <f6bd450210074cc5b72351805219395f>:0 at BaseNetworkable.Spawn () [0x0004f] in <3b79f851321f46869731eeb09369ab08>:0 at BaseEntity.Spawn () [0x00000] in <3b79f851321f46869731eeb09369ab08>:0 at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0007b] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <f6bd450210074cc5b72351805219395f>:0 at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <f6bd450210074cc5b72351805219395f>: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 <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0. Can you help me?error.jpg.09db211a9a035c3b807a9878164cbbe6.jpg

Hello, you have added 2 weapon mods for the bow, but the bow does not have modifier slots, remove the modifiers and the error disappears.
Thank you for providing the data file right away, it greatly accelerated the solution to your problem 🙂

Edited by aimacak
2.2m

Downloads

Total number of downloads.

10.2k

Customers

Total customers served.

147.9k

Files Sold

Total number of files sold.

3.1m

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.