Jump to content

Errors 'OnItemPickup'

Closed 0.2.2 0.2.3

metshival
  • in ZLogs

[11.01 21:20:02] Failed to call hook 'OnItemPickup' on plugin 'ZLogs v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLogs.OnItemPickup (Item item, BasePlayer player) [0x00044] in <f496406e65e94daf86febe88a505cdd2>:0 
  at Oxide.Plugins.ZLogs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ba0] in <f496406e65e94daf86febe88a505cdd2>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0

Share this comment


Link to comment

Hey there, any idea when this error occured? What item has been picked up that shows this error?

Also are the errors constant or was it only once?

Share this comment


Link to comment

its every item and all the time.  Picking up stones/wood/etc from random patches works fine.
 

[11.02 12:35:46] Failed to call hook 'OnItemAction' on plugin 'ZLogs v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLogs.OnItemAction (Item item, System.String action, BasePlayer player) [0x00052] in <95883cd6fac149eb83a458add754cf83>:0 
  at Oxide.Plugins.ZLogs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01bd6] in <95883cd6fac149eb83a458add754cf83>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0
[11.02 12:35:48] Failed to call hook 'OnItemPickup' on plugin 'ZLogs v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLogs.OnItemPickup (Item item, BasePlayer player) [0x00044] in <95883cd6fac149eb83a458add754cf83>:0 
  at Oxide.Plugins.ZLogs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ba0] in <95883cd6fac149eb83a458add754cf83>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0 

 

Edited by metshival
correction

Share this comment


Link to comment

Are you using Carbon or any item modifying plugins?
I am just testing it, by deleting config file, lang file, data file and it always works for me
zlItems.png.b64730257e924f3609ba9f5a4919f632.png

Share this comment


Link to comment

Could you also please provide:
- Your plugin list
- Your config for ZLogs
so I can check it? 🙂

And are you using any plugin that makes NPCs gather or do some stuff with items?

 

Edited by Zeeuss

Share this comment


Link to comment

Still happens but disabling the spam detection fixes the error.

 

  "Item drop spam detection:": {
    "Enabled?": false,
    "WebhookURL": "",
    "Items needed to detect:": 15,
    "Time(seconds)": 8.0,
    "Ignored items(shortnames like: ammo.rifle etc..):": null
  },
  "Item pick spam detection:": {
    "Enabled?": false,
    "WebhookURL": "",
    "Items needed to detect:": 15,
    "Time(seconds)": 8.0,
    "Ignored items(shortnames like: ammo.rifle etc..):": null
  }

(this is all default besides the false for enabled.

Share this comment


Link to comment

Could you change it back to Enabled : True
and try changing it to look like this?
 

"Item drop spam detection:": {
    "Enabled?": true,
    "WebhookURL": "",
    "Items needed to detect:": 15,
    "Time(seconds)": 8.0,
    "Ignored items(shortnames like: ammo.rifle etc..):": [
      "wood",
      "horsedung"
    ]
  },
"Item pick spam detection:": {
    "Enabled?": false,
    "WebhookURL": "",
    "Items needed to detect:": 15,
    "Time(seconds)": 8.0,
    "Ignored items(shortnames like: ammo.rifle etc..):": [
      "wood",
      "horsedung"
    ]
  }

 

then reload plugin and see if it's still showing these errors

Edited by Zeeuss

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

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.