Jump to content

Failed to call hook 'OnDispenserGather'

Closed 1.1.1

EDIT: Did some digging. This is from wearing a full mining set. I'm assuming that it's to do with miners luck. No items are being given to the player wearing a set, but I think it's spitting these errors out trying to.

I'm unsure of the significance of this, but I noticed that the server FPS went to 1-3 for about 15 seconds, so checked the console to see if I could recognise anything where I saw:
 

Creating item with less than 1 amount! (High Quality Metal Ore)

Failed to call hook 'OnDispenserGather' on plugin 'EpicLoot v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at BasePlayer.GiveItem (Item item, BaseEntity+GiveItemReason reason) [0x0004c] in :0 
  at Oxide.Plugins.EpicLoot.HandleDispenser (ResourceDispenser dispenser, BasePlayer player, Item item, System.Boolean bonus) [0x0065c] in :0 
  at Oxide.Plugins.EpicLoot.OnDispenserGather (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00000] in :0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02b8d] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0d3ec4223e1545f9b3666f4f73517a10>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0d3ec4223e1545f9b3666f4f73517a10>:0 

Creating item with less than 1 amount! (Horse Dung)

Failed to call hook 'OnDispenserBonus' on plugin 'EpicLoot v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at BasePlayer.GiveItem (Item item, BaseEntity+GiveItemReason reason) [0x0004c] in :0 
  at Oxide.Plugins.EpicLoot.HandleDispenser (ResourceDispenser dispenser, BasePlayer player, Item item, System.Boolean bonus) [0x0065c] in :0 
  at Oxide.Plugins.EpicLoot.OnDispenserBonus (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00000] in :0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02bcd] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0d3ec4223e1545f9b3666f4f73517a10>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0d3ec4223e1545f9b3666f4f73517a10>:0 

2671883[2671883] was killed by excavator_yaw (entity)

Saved 159,579 ents, cache(0.09), write(0.03), disk(0.02).

Saving complete

7086026[7086026] was killed by bradleyapc (entity)

Creating item with less than 1 amount! (Metal Fragments)

Failed to call hook 'OnDispenserBonus' on plugin 'EpicLoot v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at BasePlayer.GiveItem (Item item, BaseEntity+GiveItemReason reason) [0x0004c] in :0 
  at Oxide.Plugins.EpicLoot.HandleDispenser (ResourceDispenser dispenser, BasePlayer player, Item item, System.Boolean bonus) [0x0065c] in :0 
  at Oxide.Plugins.EpicLoot.OnDispenserBonus (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00000] in :0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02bcd] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0d3ec4223e1545f9b3666f4f73517a10>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0d3ec4223e1545f9b3666f4f73517a10>:0 


I know there is a save in here, but saving on the server never affects the FPS more than a slight stutter for a microsecond. Since this, I've allowed my server to save numerous times and have manually saved to see if I could rule that out from being the cause.

Again, I don't know if this is actually the cause or if it's even significant, but thought it could be best to report it anyway.

Thanks,
Christopher.
 

Edited by ChristopherS

Share this comment


Link to comment

I see the issue. Realistically it shouldn't be dropping your server frames that much though. I will upload the fix in a bit; going to wait and see if any other bugs appear.

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.3k

Files Sold

Total number of files sold.

1.6m

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.