InvalidCastException at OnItemCraftSolved
Since enabling crafting I get this error message
(16:02:58) | Failed to call hook 'OnItemCraft' on plugin 'ZLevelsRemastered v2.9.6' (InvalidCastException: Specified cast is not valid.)
at Oxide.Plugins.ZLevelsRemastered.OnItemCraft (ItemCraftTask task, BasePlayer crafter) [0x00088] in <56095d5a6aa24929a9ad712e0edc3085>:0
at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00bb4] in <56095d5a6aa24929a9ad712e0edc3085>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <33f7c42a56934dae8ec04b11017dce31>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <33287985591c40d6983f0b8f0e915565>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <33287985591c40d6983f0b8f0e915565>:0

Did I miss something or is this a bug?

Did you change any settings in the plugin's config?
5e13a8d5b2bc5.jpg Wulf
Did you change any settings in the plugin's config?

Thanks for the rep[y, I looked at my config  and found the issue. It's all good now.

PercentFasterPerLevel should not have a decimal in it according to the default configuration; whole numbers only.
23:13 [Error] Failed to call hook 'OnItemCraft' on plugin 'ZLevelsRemastered v2.9.10' (InvalidCastException: Specified cast is not valid.)
  at Oxide.Plugins.ZLevelsRemastered.OnItemCraft (ItemCraftTask task, BasePlayer crafter) [0x00088] in <db093dd0ce63412b9f4b8c27191de872>:0
  at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00b98] in <db093dd0ce63412b9f4b8c27191de872>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0
5d6ebc395ad51.png tbird412
23:13 [Error] Failed to call hook 'OnItemCraft' on plugin 'ZLevelsRemastered v2.9.10' (InvalidCastException: Specified cast is not valid.)
  at Oxide.Plugins.ZLevelsRemastered.OnItemCraft (ItemCraftTask task, BasePlayer crafter) [0x00088] in <db093dd0ce63412b9f4b8c27191de872>:0
  at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00b98] in <db093dd0ce63412b9f4b8c27191de872>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0

Post a link to the config please.

{
  "CUI": {
    "Bounds": {
      "HeightLower": "0.02",
      "HeightUpper": "0.1225",
      "WidthLeft": "0.725",
      "WidthRight": "0.83"
    },
    "BoundsBackground": "0.1 0.1 0.1 0.1",
    "cuiEnabled": true,
    "FontColor": "0.74 0.76 0.78 1",
    "FontSizeBar": 11,
    "FontSizeLevel": 11,
    "FontSizePercent": 11,
    "TextShadowEnabled": true,
    "XpBarBackground": "0.2 0.2 0.2 0.2",
    "XpBarColors": {
      "A": "0 0.8 0 0.5",
      "C": "0.2 0.72 0.5 0.5",
      "M": "0.1 0.5 0.8 0.5",
      "S": "0.8 0.1 0 0.5",
      "WC": "0.8 0.4 0 0.5"
    }
  },
  "Functions": {
    "CollectibleEntitys": {
      "corn-collectable": true,
      "diesel_collectable": true,
      "halloween-bone-collectable": true,
      "halloween-metal-collectable": true,
      "halloween-stone-collectable": true,
      "halloween-sulfur-collectible": true,
      "halloween-wood-collectable": true,
      "hemp-collectable": true,
      "metal-collectable": true,
      "mushroom-cluster-5": true,
      "mushroom-cluster-6": true,
      "pumpkin-collectable": true,
      "stone-collectable": true,
      "sulfur-collectable": true,
      "wood-collectable": true
    },
    "enableCollectiblePickup": true,
    "enableCropGather": true,
    "enableDispenserGather": true
  },
  "Generic": {
    "enableLevelupBroadcast": false,
    "enablePermission": false,
    "excludeChainsawOnGather": false,
    "excludeJackhammerOnGather": false,
    "exludeWeaponsOnGather": false,
    "gameProtocol": 2164,
    "penaltyMinutes": 3,
    "penaltyOnDeath": true,
    "permissionName": "zlevelsremastered.use",
    "permissionNameXP": "zlevelsremastered.noxploss",
    "playerCuiDefaultEnabled": true,
    "playerPluginDefaultEnabled": true,
    "pluginPrefix": "<color=orange>ZLevels</color>:",
    "powerToolsMultiplier": true,
    "wipeDataOnNewSave": true
  },
  "NightBonus": {
    "broadcastEnabledBonus": false,
    "enableNightBonus": false,
    "logEnabledBonusConsole": false,
    "PointsPerHitAtNight": {
      "A": 6,
      "M": 4,
      "S": 6,
      "WC": 4
    },
    "ResourcePerLevelMultiplierAtNight": {
      "A": 1.01,
      "M": 1.01,
      "S": 1.01,
      "WC": 1.01
    }
  },
  "Settings": {
    "CraftingDetails": {
      "PercentFasterPerLevel": 0.5,
      "TimeSpent": 1,
      "XPPerTimeSpent": 1
    },
    "DefaultResourceMultiplier": {
      "A": 1,
      "M": 1,
      "S": 1,
      "WC": 1
    },
    "LevelCaps": {
      "A": 200,
      "C": 200,
      "M": 200,
      "S": 200,
      "WC": 200
    },
    "PercentLostOnDeath": {
      "A": 90,
      "C": 90,
      "M": 90,
      "S": 90,
      "WC": 90
    },
    "PointsPerHit": {
      "A": 3,
      "M": 2,
      "S": 3,
      "WC": 2
    },
    "PowerToolPerHit": {
      "M": 0.5,
      "WC": 0.5
    },
    "ResourcePerLevelMultiplier": {
      "A": 1.003,
      "M": 1.002,
      "S": 1.003,
      "WC": 1.002
    },
    "SkillColors": {
      "A": "#ADD8E6",
      "C": "#CCFF99",
      "M": "#DDDDDD",
      "S": "#FFDDDD",
      "WC": "#FFDDAA"
    }
  }
}
5d6ebc395ad51.png tbird412
{
  "CUI": {
    "Bounds": {
      "HeightLower": "0.02",
      "HeightUpper": "0.1225",
      "WidthLeft": "0.725",
      "WidthRight": "0.83"
    },
    "BoundsBackground": "0.1 0.1 0.1 0.1",
    "cuiEnabled": true,
    "FontColor": "0.74 0.76 0.78 1",
    "FontSizeBar": 11,
    "FontSizeLevel": 11,
    "FontSizePercent": 11,
    "TextShadowEnabled": true,
    "XpBarBackground": "0.2 0.2 0.2 0.2",
    "XpBarColors": {
      "A": "0 0.8 0 0.5",
      "C": "0.2 0.72 0.5 0.5",
      "M": "0.1 0.5 0.8 0.5",
      "S": "0.8 0.1 0 0.5",
      "WC": "0.8 0.4 0 0.5"
    }
  },
  "Functions": {
    "CollectibleEntitys": {
      "corn-collectable": true,
      "diesel_collectable": true,
      "halloween-bone-collectable": true,
      "halloween-metal-collectable": true,
      "halloween-stone-collectable": true,
      "halloween-sulfur-collectible": true,
      "halloween-wood-collectable": true,
      "hemp-collectable": true,
      "metal-collectable": true,
      "mushroom-cluster-5": true,
      "mushroom-cluster-6": true,
      "pumpkin-collectable": true,
      "stone-collectable": true,
      "sulfur-collectable": true,
      "wood-collectable": true
    },
    "enableCollectiblePickup": true,
    "enableCropGather": true,
    "enableDispenserGather": true
  },
  "Generic": {
    "enableLevelupBroadcast": false,
    "enablePermission": false,
    "excludeChainsawOnGather": false,
    "excludeJackhammerOnGather": false,
    "exludeWeaponsOnGather": false,
    "gameProtocol": 2164,
    "penaltyMinutes": 3,
    "penaltyOnDeath": true,
    "permissionName": "zlevelsremastered.use",
    "permissionNameXP": "zlevelsremastered.noxploss",
    "playerCuiDefaultEnabled": true,
    "playerPluginDefaultEnabled": true,
    "pluginPrefix": "<color=orange>ZLevels</color>:",
    "powerToolsMultiplier": true,
    "wipeDataOnNewSave": true
  },
  "NightBonus": {
    "broadcastEnabledBonus": false,
    "enableNightBonus": false,
    "logEnabledBonusConsole": false,
    "PointsPerHitAtNight": {
      "A": 6,
      "M": 4,
      "S": 6,
      "WC": 4
    },
    "ResourcePerLevelMultiplierAtNight": {
      "A": 1.01,
      "M": 1.01,
      "S": 1.01,
      "WC": 1.01
    }
  },
  "Settings": {
    "CraftingDetails": {
      "PercentFasterPerLevel": 0.5,
      "TimeSpent": 1,
      "XPPerTimeSpent": 1
    },
    "DefaultResourceMultiplier": {
      "A": 1,
      "M": 1,
      "S": 1,
      "WC": 1
    },
    "LevelCaps": {
      "A": 200,
      "C": 200,
      "M": 200,
      "S": 200,
      "WC": 200
    },
    "PercentLostOnDeath": {
      "A": 90,
      "C": 90,
      "M": 90,
      "S": 90,
      "WC": 90
    },
    "PointsPerHit": {
      "A": 3,
      "M": 2,
      "S": 3,
      "WC": 2
    },
    "PowerToolPerHit": {
      "M": 0.5,
      "WC": 0.5
    },
    "ResourcePerLevelMultiplier": {
      "A": 1.003,
      "M": 1.002,
      "S": 1.003,
      "WC": 1.002
    },
    "SkillColors": {
      "A": "#ADD8E6",
      "C": "#CCFF99",
      "M": "#DDDDDD",
      "S": "#FFDDDD",
      "WC": "#FFDDAA"
    }
  }
}
"Settings": {
    "CraftingDetails": {
      "PercentFasterPerLevel": 0.5, <-- This can't be a decimal. set to 1
      "TimeSpent": 1,
      "XPPerTimeSpent": 1
    },
thanks
Locked automatically