Jump to content

[Error] Failed to call hook 'OnEntitySpawned' on plugin 'NPCGrenades v1.2.7'

Pending 1.2.7

Omega
Omega

Posted

Hi, with 0 player on server

 

10:05 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'NPCGrenades v1.2.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NPCGrenades.OnEntitySpawned (DroppedItemContainer bag) [0x0001f] in <ef2093cefac4480691d421d9287c8bdb>:0 
  at Oxide.Plugins.NPCGrenades.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0056d] in <ef2093cefac4480691d421d9287c8bdb>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0 

ZEODE

Posted

I don't really know what you are asking, I can see the error. You're saying zero players, please give more info about what/when this error happened.

The Friendly Chap

Posted

'OnEntitySpawned' isn't finding what it's looking for in the item. Given 0 players on the server, and a dropped bag referenced, I'd assume it's an NPC being offed by something else and dropping a loot bag, and then the OnEntitySpawn tries to reference something that isn't there.

I get this one
 

Exception while calling NextTick callback (KeyNotFoundException: The given key '3017240' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <694551e795764b938030a3128fac2b36>:0 
  at Oxide.Plugins.NPCGrenades+<>c__DisplayClass87_0.<OnEntitySpawned>b__0 () [0x0002d] in <a5fc1c988ef64c5b9334e809f8a5e0f6>:0 
  at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.