Jump to content

failed to call hook

Not a Bug 1.0.2

MissPriss
MissPriss

Posted (edited)

Hello,

Just purchased the plugin and have been trying it out. Loving it so far! I am  having one issue. When trying to sell an ingredient to the market - I get the following: 

 

"Failed to call hook 'SellIngredient' on plugin 'Cooking v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Cooking.SellIngredient (ConsoleSystem+Arg arg) [0x00363] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.Cooking.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00547] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

Failed to call hook 'SellIngredient' on plugin 'Cooking v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Cooking.SellIngredient (ConsoleSystem+Arg arg) [0x00363] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.Cooking.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00547] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0  "

I put the ingredients in my inventory,  hit the sell button and the market screen closes, removes the item from my inventory, does not give the server rewards, and gives the error. 

 

Thank you in advance. 

 

 

Nevermind!!!!! OMG!!! Found my issue, I neglected to change both options to serverrewards in the config. Sorry in advance 🙂

 

Edited by MissPriss
found my problem
imthenewguy

Posted

  On 9/1/2021 at 11:25 PM, MissPriss said:

Hello,

Just purchased the plugin and have been trying it out. Loving it so far! I am  having one issue. When trying to sell an ingredient to the market - I get the following: 

 

"Failed to call hook 'SellIngredient' on plugin 'Cooking v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Cooking.SellIngredient (ConsoleSystem+Arg arg) [0x00363] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.Cooking.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00547] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

Failed to call hook 'SellIngredient' on plugin 'Cooking v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Cooking.SellIngredient (ConsoleSystem+Arg arg) [0x00363] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.Cooking.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00547] in <19aaec5ec2ce4c5a97abc2ffe808b97a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0  "

I put the ingredients in my inventory,  hit the sell button and the market screen closes, removes the item from my inventory, does not give the server rewards, and gives the error. 

 

Thank you in advance. 

 

 

Nevermind!!!!! OMG!!! Found my issue, I neglected to change both options to serverrewards in the config. Sorry in advance 🙂

 

Expand  

haha glad you fixed it.

imthenewguy

Posted

Changed Status from Pending to Not a Bug

1.6m

Downloads

Total number of downloads.

7.5k

Customers

Total customers served.

112.4k

Files Sold

Total number of files sold.

2.3m

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.