After plugin update, kits aren't assignedFixed

I'm getting a few errors after updating to the latest version.

08:31 [Error] Failed to call hook 'CmdConsoleKitGui' on plugin 'Kits v3.3.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits.BuildWeapon (System.Int32 id, System.UInt64 skin, System.Collections.Generic.List`1[T] mods) [0x00009] in <ac98d6a9e491448aaa18df756ed87f29>:0 
  at Oxide.Plugins.Kits.GiveKit (BasePlayer player, System.String kitname) [0x00068] in <ac98d6a9e491448aaa18df756ed87f29>:0 
  at Oxide.Plugins.Kits.TryGiveKit (BasePlayer player, System.String kitname) [0x0001e] in <ac98d6a9e491448aaa18df756ed87f29>:0 
  at Oxide.Plugins.Kits.CmdConsoleKitGui (ConsoleSystem+Arg arg) [0x0004d] in <ac98d6a9e491448aaa18df756ed87f29>:0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00d93] in <ac98d6a9e491448aaa18df756ed87f29>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0 ​
Is this also related?

08:32 [Error] Exception while calling NextTick callback (FormatException: Input string was not in a correct format.)
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00013] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00008] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <437ba245d8404784b9fbab9b439ac908>:0 
  at Oxide.Plugins.SkinPerks.GetKill (System.String name) [0x00026] in <e6af3c65d896419c9ed5fe917c716928>:0 
  at Oxide.Plugins.SkinPerks+<OnItemAddedToContainer>c__AnonStorey1.<>m__0 () [0x000e4] in <e6af3c65d896419c9ed5fe917c716928>:0 
  at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <cf88a28c7fb44d36890d85a78331cc9d>:0 ​
  • If I type /kit kitname I don't get the kit
  • If I type /kit give bumfuzzler kitname I don't get the kit
  • If I use the graphical menu and click redeem I don't get the kit

Everything worked before I updated the plugin. The data file appears intact with all of the kits. I see them all in the graphical window. I verified I have both permissions. I've updated the config file and verified it's json. The plugin loads fine, no errors. 

Any help would be much appreciated.

Could you please post your data file + config file?
Obviously second error has nothing to do with kits. Yesterday was crazy and didn't read it fully.

Ok, this morning, for some odd reason, the graphical menu now redeems kits, but I'm unable to redeem a kit using the command via chat. Note the kit I am trying to redeem via the chat command does not exist in the graphical menu so I didn't test that.

When I use either:

/kit perk1
/kit give bumfuzzler perk1

I see the following error in the logs every time I try (I didn't notice this error yesterday and now I don't see the errors I posted yesterday)

09:02 [Error] Failed to call hook 'CmdChatKit' on plugin 'Kits v3.3.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits.BuildWeapon (System.Int32 id, System.UInt64 skin, System.Collections.Generic.List`1[T] mods) [0x00009] in <53e591eb794941f3a4379b34dfdd9476>:0 
  at Oxide.Plugins.Kits.GiveKit (BasePlayer player, System.String kitname) [0x00068] in <53e591eb794941f3a4379b34dfdd9476>:0 
  at Oxide.Plugins.Kits.TryGiveKit (BasePlayer player, System.String kitname) [0x0001e] in <53e591eb794941f3a4379b34dfdd9476>:0 
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x00428] in <53e591eb794941f3a4379b34dfdd9476>:0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e1a] in <53e591eb794941f3a4379b34dfdd9476>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0 ​

I've reset the config to defaults and I've removed all kits from my data file except for one (perk1)

{
  "Kits": {
    "perk1": {
      "name": "perk1",
      "description": null,
      "max": 0,
      "cooldown": 0.0,
      "authlevel": 2,
      "hide": false,
      "npconly": false,
      "permission": null,
      "image": null,
      "building": null,
      "items": [
        {
          "itemid": 146685185,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 146685185,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 146685185,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1716193401,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1716193401,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1716193401,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -2094080303,
          "container": "wear",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -2094080303,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -2094080303,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1009492144,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1009492144,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -1009492144,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 2033918259,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 2033918259,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 2033918259,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -930579334,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -930579334,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": -930579334,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 649603450,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 649603450,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 649603450,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 548699316,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 548699316,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        },
        {
          "itemid": 548699316,
          "container": "belt",
          "amount": 1,
          "skinid": 0,
          "weapon": true,
          "blueprintTarget": 0,
          "mods": []
        }
      ]
    }
  }
}​

This perk1 kit hasn't changed and works with the old version via the chat command without issue.

I confirm this, some old sets are not issued, an error appears in the console,

but if you copy the same items to the kit again, everything is fine - fix that, thx

pozitiv4ik

I confirm this, some old sets are not issued, an error appears in the console,

but if you copy the same items to the kit again, everything is fine - fix that, thx

All my kits are redeemable, some of which are over 4 years old, but if unredeemable re equipping is an excellent idea

Heyho, just pushed a update that will fix this even without re adding the kit items.
Confirmed. The update resolved my issue. Thank you.
Locked automatically