Strange error when picking hempSolved
I am getting the below error everytime someone picks hemp, what should i do?
[Rust Rewards] playername ( removed ) got 2 for hemp
Failed to call hook 'OnGrowableGathered' on plugin 'ZLevelsRemastered v2.9.22' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0
at Oxide.Plugins.ZLevelsRemastered.GUIUpdateSkill (BasePlayer player, System.String skill) [0x0000c] in :0
at Oxide.Plugins.ZLevelsRemastered.levelHandler (BasePlayer player, Item item, System.String skill) [0x00364] in :0
at Oxide.Plugins.ZLevelsRemastered.OnGrowableGathered (GrowableEntity plant, Item item, BasePlayer player) [0x00081] in :0
at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a7c] in :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

there is no reason this should be an error. player profiles are created when they join the server

do you have bots/npcs that pick hemp?

no, its players, also happens with any crop. i think it has something do to with me having the aquire set to -1 to disable it, that is when it started. could maybe have something to do with the code saying if its disabled, to treat then as skinning, but that is also disabled.
"LevelCaps": {
"A": -1,
"C": -1,
"M": 20,
"S": -1,
"WC": 20
},

maybe i also need to disable them in the CollectibleEntitys section?

phatblinkie

no, its players, also happens with any crop. i think it has something do to with me having the aquire set to -1 to disable it, that is when it started. could maybe have something to do with the code saying if its disabled, to treat then as skinning, but that is also disabled.
"LevelCaps": {
"A": -1,
"C": -1,
"M": 20,
"S": -1,
"WC": 20
},

maybe i also need to disable them in the CollectibleEntitys section?

as a matter of interest why are you running Zlevels when you have disabled most of its functions ? , you might as well not have it at all ?

post your config

The reason why its disabled is due to the farmers making crazy amounts of material with crop farms. The skinning is not needed as it is mostly used for fat to make fuel, but i have a custom furnace mod that they can spend rp with, and make the lgf output higher, so not needed really, and getting 400 cloth per hemp on a 5k seed farm, wrecks things, when they trade in bandit etc. so i wanted the crops and skinning to be normal, but rocks and wood to be elevated.

{
  "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": {
      "berry-black-collectable": true,
      "berry-blue-collectable": true,
      "berry-green-collectable": true,
      "berry-red-collectable": true,
      "berry-white-collectable": true,
      "berry-yellow-collectable": true,
      "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,
      "potato-collectable": true,
      "pumpkin-collectable": true,
      "stone-collectable": true,
      "sulfur-collectable": true,
      "wood-collectable": true
    },
    "enableCollectiblePickup": true,
    "enableCropGather": true,
    "enableDispenserGather": true
  },
  "Generic": {
    "enableLevelupBroadcast": false,
    "enablePermission": true,
    "excludeChainsawOnGather": false,
    "excludeJackhammerOnGather": false,
    "exludeWeaponsOnGather": false,
    "gameProtocol": 2283,
    "penaltyMinutes": 10,
    "penaltyOnDeath": true,
    "permissionName": "zlevelsremastered.use",
    "permissionNameXP": "zlevelsremastered.noxploss",
    "playerCuiDefaultEnabled": true,
    "playerPluginDefaultEnabled": true,
    "pluginPrefix": "<color=orange>ZLevels</color>: ",
    "steamIDIcon": 0,
    "wipeDataOnNewSave": true
  },
  "NightBonus": {
    "broadcastEnabledBonus": false,
    "enableNightBonus": false,
    "logEnabledBonusConsole": false,
    "PointsPerHitAtNight": {
      "A": 10,
      "M": 10,
      "S": 10,
      "WC": 10
    },
    "ResourcePerLevelMultiplierAtNight": {
      "A": 2,
      "M": 1.5,
      "S": 2,
      "WC": 2
    }
  },
  "Settings": {
    "CraftingDetails": {
      "PercentFasterPerLevel": 10,
      "TimeSpent": 1,
      "XPPerTimeSpent": 30
    },
    "DefaultResourceMultiplier": {
      "A": 1,
      "M": 1,
      "S": 1,
      "WC": 1
    },
    "LevelCaps": {
      "A": -1,
      "C": -1,
      "M": 20,
      "S": -1,
      "WC": 20
    },
    "PercentLostOnDeath": {
      "A": 20,
      "C": 20,
      "M": 20,
      "S": 20,
      "WC": 20
    },
    "PointsPerHit": {
      "A": 2,
      "M": 2,
      "S": 2,
      "WC": 2
    },
    "ResourcePerLevelMultiplier": {
      "A": 1.1,
      "M": 1.1,
      "S": 1.1,
      "WC": 1.1
    },
    "SkillColors": {
      "A": "#ADD8E6",
      "C": "#CCFF99",
      "M": "#DDDDDD",
      "S": "#FFDDDD",
      "WC": "#FFDDAA"
    }
  }
}

just a follow up, apparently the fix was to disable the picking of the crops
"CollectibleEntitys": {
"berry-black-collectable": false,
"berry-blue-collectable": false,
"berry-green-collectable": false,
"berry-red-collectable": false,
"berry-white-collectable": false,
"berry-yellow-collectable": false,
"corn-collectable": false,
"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": false,
"metal-collectable": true,
"mushroom-cluster-5": false,
"mushroom-cluster-6": false,
"potato-collectable": false,
"pumpkin-collectable": false,
"stone-collectable": true,
"sulfur-collectable": true,
"wood-collectable": true
},

Locked automatically