NullReferenceException at UI.LoadImageError

Only one server is getting this error out of three. All have the same mods Tried updating image librarey same problem. /kit causes error to spam and freeze kit ui on players.

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.95' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Kits.GetKitData (System.UInt64 userID, System.String kitname) [0x00000] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.Kits.CanSeeKit (BasePlayer player, System.String kitname, System.Boolean fromNPC, System.String& reason) [0x000d2] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x000f0] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <5c4b38a3dcc84032a711233eb2cd9c21>:0
at Oxide.Plugins.CSharpPlugin.I


Merged post

Fixed the Problem, the data said ok with jason file editor But deleting the last entry fixed the problem.
Failed to call hook 'CmdChatKit' on plugin 'Kits v3.3.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] in <933b67ee0b0b49f69847b1b7f322c026>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>: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
you trying to save the new items?

With the new update im getting the following error.

Failed to call hook 'CmdChatKit' on plugin 'Kits v3.3.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] in <242239ad1446486688f89888f35cce57>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Thanks

Failed to call hook 'CmdChatKit' on plugin 'Kits v3.3.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] in <2c030b05acf74ef9a4896be560c63976>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>: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

every time I add a kit into the main UI it freezes my screen and I have to reload the plugin and all icons disappear

Failed to call hook 'cmdUI_AddKit' on plugin 'Kits v3.3.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <cc22d3da19f2461e9ad8fc0ace25178f>:0
at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in <cc22d3da19f2461e9ad8fc0ace25178f>:0
at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <cc22d3da19f2461e9ad8fc0ace25178f>:0
at Oxide.Plugins.Kits.cmdUI_AddKit (ConsoleSystem+Arg arg) [0x0016f] in <cc22d3da19f2461e9ad8fc0ace25178f>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01164] in <cc22d3da19f2461e9ad8fc0ace25178f>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

 

Getting the exact same errors as above when adding/updating kits. Especially adding them to the GUI. Also have times where it will corrupt the data file. We ever going to get a update?

just reload the plugin when u see that error 

Hey guys, OK, so I have noticed why this error does occur.

Regarding Image Library, it will only happen if you DID NOT delete the Image Library files after a map wipe.

Please DELETE ALL THE FILES from the oxide/data/Image Library folder, and remember to get your API key.
These are KEY ESSENTIALS to make plugins work. The library used the ID to download images.

Sofar, I have never had any issues since when I posted the bug report.

Merged post

As for the building part of spawning a starter base in kits, did not get that to work, so I just created a Resources kit for players to build their base.