Jump to content

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

Closed 1.5.3

VENIQQ
VENIQQ

Posted

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

ninco90

Posted

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

VENIQQ

Posted

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

ninco90

Posted

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?

VENIQQ

Posted

I'm not sure when that happens, probably on button click? Seeing that in RCON logs.

Adding my config file

CraftPanel.json

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
ninco90

Posted

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
VENIQQ

Posted (edited)

This fixed both errors, thank you!

Edited by VENIQQ
  • Love 1
ninco90

Posted

Changed Status from Pending to Closed

1.5m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

105.3k

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.