Jump to content

Failed to call hook 'OnButtonPress' on plugin 'CraftPanel v1.5.3

Closed 1.5.3

VENIQQ

I have this console spam from the plugin - anything that needs to be done here?

Thanks

Failed to call hook 'OnButtonPress' on plugin 'CraftPanel v1.5.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CraftPanel.GetPanelItem (BasePlayer player, System.Int32 i) [0x00041] in <73dca6efc4d2431b9ec03b369fa9694f>:0
at Oxide.Plugins.CraftPanel.OpenPanelCraft (BasePlayer player) [0x00103] in <73dca6efc4d2431b9ec03b369fa9694f>:0
at Oxide.Plugins.CraftPanel.OnButtonPress (BaseEntity button, BasePlayer player) [0x0003d] in <73dca6efc4d2431b9ec03b369fa9694f>:0
at Oxide.Plugins.CraftPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000c3] in <73dca6efc4d2431b9ec03b369fa9694f>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

Link to comment

They have released an update to the server and oxide, can you confirm if once updated it continues to happen?

Link to comment

Yes, still ongoing with latest updates

 

07/09 01:22:58 | Failed to call hook 'OnButtonPress' on plugin 'CraftPanel v1.5.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CraftPanel.GetPanelItem (BasePlayer player, System.Int32 i) [0x00041] in <e2215c89c07440cabc1c67dd5c29703f>:0
at Oxide.Plugins.CraftPanel.OpenPanelCraft (BasePlayer player) [0x00103] in <e2215c89c07440cabc1c67dd5c29703f>:0
at Oxide.Plugins.CraftPanel.OnButtonPress (BaseEntity button, BasePlayer player) [0x0003d] in <e2215c89c074

Link to comment

Does the same thing happen when you try to open it with the chat command? /craft

What do you have set in the config: ID Item Default ?
Does the id established there really exist?

Link to comment
VENIQQ

Posted (edited)

And yes, this happens on button click, not on /craft command, checked that

On /craft command I receive a different error message 😄
07/10 01:15:42 | Failed to call hook 'chatopenvip' on plugin 'CraftPanel v1.5.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CraftPanel.GetPanelItem (BasePlayer player, System.Int32 i) [0x00041] in <046a926919b446ccabe37d58a06179a2>:0
at Oxide.Plugins.CraftPanel.OpenPanelCraft (BasePlayer player) [0x00103] in <046a926919b446ccabe37d58a06179a2>:0
at Oxide.Plugins.CraftPanel.chatopenvip (BasePlayer player) [0x00043] in <046a926919b446ccabe37d58a06179a2>:0

Edited by VENIQQ
Link to comment

Checking your configuration file, you have set: "ID Item Default": 1,

However, there is no item with "ID": 1, configured. You will have to modify the ID of an existing item or simply change "Default Item ID": To an existing ID.

Example:
"Default Item ID": 95,

Maybe this is your problem, since the plugin tries to open the item by default but it does not exist.

  • Like 1
Link to comment
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

95.5k

Files Sold

Total number of files sold.

1.9m

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.