Jump to content

Incompatibility with CraftingController

Not a Bug 1.6.2

Mals
  • Moderator
Mals

Posted

If I comment out the OnItemCraft code in XPerience this error goes away.  Thoughts on how to resolve this?


 

(19:26:16) | Failed to call hook 'OnItemCraft' on plugin 'CraftingController v3.2.6' (NullReferenceException: Object reference not set to an instance of an object)

at Item.OnChanged () [0x0001d] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.MarkDirty () [0x00000] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.set_maxCondition (System.Single value) [0x00029] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.Initialize (ItemDefinition template) [0x00010] in <67151e0b423a4c77ac1a680c08548a62>:0

at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x00065] in <67151e0b423a4c77ac1a680c08548a62>:0

at Oxide.Plugins.CraftingController.InstantBulkCraft (BasePlayer player, ItemCraftTask task, ItemDefinition item, System.Collections.Generic.List`1[T] stacks, System.Int32 craftSkin, System.UInt64 skin) [0x0002d] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

at Oxide.Plugins.CraftingController.OnItemCraft (ItemCraftTask task, BasePlayer crafter) [0x00376] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0022a] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

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

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

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

 

MACHIN3

Posted

16 hours ago, Mals said:

If I comment out the OnItemCraft code in XPerience this error goes away.  Thoughts on how to resolve this?


 

(19:26:16) | Failed to call hook 'OnItemCraft' on plugin 'CraftingController v3.2.6' (NullReferenceException: Object reference not set to an instance of an object)

at Item.OnChanged () [0x0001d] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.MarkDirty () [0x00000] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.set_maxCondition (System.Single value) [0x00029] in <67151e0b423a4c77ac1a680c08548a62>:0

at Item.Initialize (ItemDefinition template) [0x00010] in <67151e0b423a4c77ac1a680c08548a62>:0

at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x00065] in <67151e0b423a4c77ac1a680c08548a62>:0

at Oxide.Plugins.CraftingController.InstantBulkCraft (BasePlayer player, ItemCraftTask task, ItemDefinition item, System.Collections.Generic.List`1[T] stacks, System.Int32 craftSkin, System.UInt64 skin) [0x0002d] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

at Oxide.Plugins.CraftingController.OnItemCraft (ItemCraftTask task, BasePlayer crafter) [0x00376] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0022a] in <5c4fda85e3674277a33eb2f42a0c61a2>:0

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

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

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

 

You would need to disable all stats and skills that effect crafting if you wish to have another plugin control crafting.

MACHIN3

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.