NullReferenceException at GiveItemError

When trying to use, it gives such an error, the plugin is updated to version 2.1.1, permission is issued. Instant crafting does not occur.
A few days ago everything worked perfectly.

Failed to call hook 'OnItemCraft' on plugin 'InstantCraft v2.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Item.OnChanged () [0x0001d] in <b84ea4ae29b94c96ad1661e51d1c0cb4>:0 
  at Item.MarkDirty () [0x00000] in <b84ea4ae29b94c96ad1661e51d1c0cb4>:0 
  at Item.set_maxCondition (System.Single value) [0x00029] in <b84ea4ae29b94c96ad1661e51d1c0cb4>:0 
  at Item.Initialize (ItemDefinition template) [0x00010] in <b84ea4ae29b94c96ad1661e51d1c0cb4>:0 
  at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x0005c] in <b84ea4ae29b94c96ad1661e51d1c0cb4>:0 
  at Oxide.Plugins.InstantCraft.GiveItem (BasePlayer player, ItemCraftTask task, ItemDefinition def, System.Collections.Generic.List`1[T] stacks, System.Int32 taskSkinID) [0x00057] in <58bfe63153cd45dc8242ac1e1018067e>:0 
  at Oxide.Plugins.InstantCraft.OnCraft (ItemCraftTask task) [0x000fc] in <58bfe63153cd45dc8242ac1e1018067e>:0 
  at Oxide.Plugins.InstantCraft.OnItemCraft (ItemCraftTask item) [0x00000] in <58bfe63153cd45dc8242ac1e1018067e>:0 
  at Oxide.Plugins.InstantCraft.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00126] in <58bfe63153cd45dc8242ac1e1018067e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

 

What item you are trying to craft? What is your config?

I have tried many different items.

Just tried these three items:

{
  "Check for free place": false,
  "Normal Speed": [
    "hammer",
    "put item shortname here"
  ],
  "Blacklist": [
    "rock",
    "put item shortname here"
  ],
  "Split crafted stacks": false
}
5d57860176ad5.jpg CCAT

I have tried many different items.

Just tried these three items:

{
  "Check for free place": false,
  "Normal Speed": [
    "hammer",
    "put item shortname here"
  ],
  "Blacklist": [
    "rock",
    "put item shortname here"
  ],
  "Split crafted stacks": false
}

I tested and it worked fine for me. looks as you have any plugins that changes crafting or affects it somehow

Thanks for the quick response. I will check my server and write the result.

Merged post

Rebooted the server and it worked. Most likely there was a conflict of plugins. Excuse for troubling.

this is what I get when I craft anything

Failed to call hook 'OnItemCraft' on plugin 'InstantCraft v2.1.3' (NullReferenceException: Object reference not set to an instance of an object)
at Item.OnChanged () [0x0001d] in <dad742a49d6744978287b5e7ff2f06f8>:0
at Item.MarkDirty () [0x00000] in <dad742a49d6744978287b5e7ff2f06f8>:0
at Item.set_maxCondition (System.Single value) [0x00029] in <dad742a49d6744978287b5e7ff2f06f8>:0
at Item.Initialize (ItemDefinition template) [0x00010] in <dad742a49d6744978287b5e7ff2f06f8>:0
at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x00065] in <dad742a49d6744978287b5e7ff2f06f8>:0
at Oxide.Plugins.InstantCraft.GiveItem (BasePlayer player, ItemCraftTask task, ItemDefinition def, System.Collections.Generic.List`1[T] stacks, System.Int32 taskSkinID) [0x00057] in <929778acbc6a497299958f1dabf13b1d>:0
at Oxide.Plugins.InstantCraft.OnCraft (ItemCraftTask task) [0x00109] in <929778acbc6a497299958f1dabf13b1d>:0
at Oxide.Plugins.InstantCraft.OnItemCraft (ItemCraftTask item) [0x00000] in <929778acbc6a497299958f1dabf13b1d>:0
at Oxide.Plugins.InstantCraft.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00126] in <929778acbc6a497299958f1dabf13b1d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
1. What is your config
2. Its for all items or something specific?
It's for everything and I'm not getting instant craft on any item, ive done the permissions it says I have permission but everything still is normal craft speed and I get this message on every item.
rustynail3110
It's for everything and I'm not getting instant craft on any item, ive done the permissions it says I have permission but everything still is normal craft speed and I get this message on every item.

What is your config

{
"Check for free place": true,
"Normal Speed": [
"hammer",
"put item shortname here"
],
"Blacklist": [
"rock",
"put item shortname here"
],
"Split crafted stacks": false
}
Hi Everyone, i get these Error Message when a Player trys to craft something when instantcraft is enable.
Failed to call hook 'OnItemCraft' on plugin 'InstantCraft v2.1.5' (NullReferenceException: Object reference not set to an instance of an object) at Item.OnChanged () [0x0001d] in <53c4d5057795493a8d1464ef0e1ccfe0>:0 at Item.MarkDirty () [0x00000] in <53c4d5057795493a8d1464ef0e1ccfe0>:0 at Item.set_maxCondition (System.Single value) [0x00029] in <53c4d5057795493a8d1464ef0e1ccfe0>:0 at Item.Initialize (ItemDefinition template) [0x00010] in <53c4d5057795493a8d1464ef0e1ccfe0>:0 at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x00065] in <53c4d5057795493a8d1464ef0e1ccfe0>:0 at Oxide.Plugins.InstantCraft.GiveItem (BasePlayer player, ItemCraftTask task, ItemDefinition def, System.Collections.Generic.List`1[T] stacks, System.Int32 taskSkinID) [0x00057] in <1dc05954fa5d4bb8846caed9f67dc633>:0 at Oxide.Plugins.InstantCraft.OnCraft (ItemCraftTask task) [0x0011b] in <1dc05954fa5d4bb8846caed9f67dc633>:0 at Oxide.Plugins.InstantCraft.OnItemCraft (ItemCraftTask item) [0x00000] in <1dc05954fa5d4bb8846caed9f67dc633>:0 at Oxide.Plugins.InstantCraft.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00126] in <1dc05954fa5d4bb8846caed9f67dc633>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
Something specific you are crafting?

Tested these items:

medical-syringe worked fine the first time (instantly), then it didn't work.

Merged post

I found why the error occurs, I will describe it a little later.

Merged post

The error is caused by the plugin "ZLevelsRemastered".

Bug fix: restart the plugin "ZLevelsRemastered" after starting the server (o.reload ZLevelsRemastered)
Failed to call hook 'OnItemCraft' on plugin 'InstantCraft v2.1.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Item.OnChanged () [0x0001d] in <54079df9b4ba4e0a9ed7127849f02023>:0
  at Item.MarkDirty () [0x00000] in <54079df9b4ba4e0a9ed7127849f02023>:0
  at Item.set_maxCondition (System.Single value) [0x00029] in <54079df9b4ba4e0a9ed7127849f02023>:0
  at Item.Initialize (ItemDefinition template) [0x00010] in <54079df9b4ba4e0a9ed7127849f02023>:0
  at ItemManager.Create (ItemDefinition template, System.Int32 iAmount, System.UInt64 skin) [0x00065] in <54079df9b4ba4e0a9ed7127849f02023>:0
  at Oxide.Plugins.InstantCraft.GiveItem (BasePlayer player, ItemCraftTask task, ItemDefinition def, System.Collections.Generic.List`1[T] stacks, System.Int32 taskSkinID) [0x00057] in <5a801051f5d7436cac99839f1c38d275>:0
  at Oxide.Plugins.InstantCraft.OnCraft (ItemCraftTask task) [0x0011b] in <5a801051f5d7436cac99839f1c38d275>:0
  at Oxide.Plugins.InstantCraft.OnItemCraft (ItemCraftTask item) [0x00000] in <5a801051f5d7436cac99839f1c38d275>:0
  at Oxide.Plugins.InstantCraft.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00126] in <5a801051f5d7436cac99839f1c38d275>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Happend since today



Merged post

Our server died out and i do notice after 1 year trying to get crafting on on zlevels as he said above this accurs