Jump to content

Errors 'OnItemPickup'

Closed 0.2.2 0.2.3

metshival
  • in ZLogs
metshival

Posted

[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

Zeeuss

Posted

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?

metshival

Posted (edited)

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
Zeeuss

Posted

Okay, will look into it 🙂

 

Zeeuss

Posted

Changed Status from Pending to Work in Progress

Zeeuss

Posted

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

Zeeuss

Posted (edited)

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
metshival

Posted (edited)

I have a stack plugin for items. the config for zlog is default and ill get you the list of plugins. not using carbon.

plugins.txt

Edited by metshival
correction
Zeeuss

Posted

Could you try unloading the stack plugin and then try doing it with normal, not stacked items? 🙂

metshival

Posted

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.

Zeeuss

Posted (edited)

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
Zeeuss

Posted

Changed Status from Work in Progress to Closed

Changed Fixed In to 0.2.3

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.7k

Files Sold

Total number of files sold.

2.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.