NullReferenceException at UI.LoadImageError
If I set a background the Kits menu does not open in-game and this error appears in console.
This issue is only happening on the latest version, the last version the background image worked fine.
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+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in :0 
  at Oxide.Plugins.Kits.BackgroundPanel (BasePlayer player) [0x0007c] in :0 
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x0001b] in :0 
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in :0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e1a] 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 ​
george1908
If I set a background the Kits menu does not open in-game and this error appears in console.
This issue is only happening on the latest version, the last version the background image worked fine.
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+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in :0 
  at Oxide.Plugins.Kits.BackgroundPanel (BasePlayer player) [0x0007c] in :0 
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x0001b] in :0 
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in :0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e1a] 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 ​
Could you PM me your data/config file please so i can try to reproduce the issue?
Just wiped the entire plugin and config and data, and added the update in, still have this error. When i attempt to add the kit to the kit UI it goes blank and freezes. I have to reload the plugin for it to show up.
17:17 [Error] Failed to call hook 'cmdUI_AddKit' on plugin 'Kits v3.3.0' (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 <3f371654151a4be8be0a2a8e569643fd>: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 <3f371654151a4be8be0a2a8e569643fd>:0 at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <3f371654151a4be8be0a2a8e569643fd>:0 at Oxide.Plugins.Kits.cmdUI_AddKit (ConsoleSystem+Arg arg) [0x0016f] in <3f371654151a4be8be0a2a8e569643fd>:0 at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01122] in <3f371654151a4be8be0a2a8e569643fd>: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
ceyoung75
Just wiped the entire plugin and config and data, and added the update in, still have this error. When i attempt to add the kit to the kit UI it goes blank and freezes. I have to reload the plugin for it to show up.

Please send me your config/data file.

Ive tried to reproduce it, this is a fresh install https://hoppel.co/Le7w7wS8cR.mp4

Hey.
I follow instruction.
Create house, look at foundation and do /copy starterhouse
Then to ensure i look somewhere else and do /paste starterhouse - BAM, a house.
Then create kit (/kit add house-of-rock).
Then /kit building starterhouse
then /kit cooldown 85000 description "Enjoy your new house"
Then i went to /kit, when i clicked on the kit i just made in "add section", i get the error down below.
i reload plugin, and its in /kit list, when i redeem - it says "Kit redeemet", but i dont get any house...
I then tried to remove and readd - no error, but it still doesnt work?
What am i doing wrong? ><

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 <4579ae9511c546c9b4d9d3b24964d371>: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 <4579ae9511c546c9b4d9d3b24964d371>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <4579ae9511c546c9b4d9d3b24964d371>:0
  at Oxide.Plugins.Kits.cmdUI_AddKit (ConsoleSystem+Arg arg) [0x0016f] in <4579ae9511c546c9b4d9d3b24964d371>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01164] in <4579ae9511c546c9b4d9d3b24964d371>: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​
Yes, I also tried last week with the Copy Paste plugin to add a base to kits, it also gave error. Again, it gives error when you add any normal kit now also.

https://imgur.com/3mNGblp

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 <66e7513916514e54a945ee6e5183a521>: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 <66e7513916514e54a945ee6e5183a521>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in <66e7513916514e54a945ee6e5183a521>:0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <66e7513916514e54a945ee6e5183a521>:0
  at Oxide.Plugins.Kits.CmdChatKit https://imgur.com/3mNGblp(BasePlayer player, System.String command, System.String[] args) [0x0001a] in <66e7513916514e54a945ee6e5183a521>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] in <66e7513916514e54a945ee6e5183a521>: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
i have this since the update i chaged nothing in my config please update ?^^
hey is something wrong with the update ? after i updated the plugin its not showing my kits

ah here the error

( the other post from other ppl here was because of wrong configs but i didnt changed my config just updated the plugin )

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+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <24d45f99911d4391b62cbc9a72793457>: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 <24d45f99911d4391b62cbc9a72793457>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <24d45f99911d4391b62cbc9a72793457>:0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <24d45f99911d4391b62cbc9a72793457>:0
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <24d45f99911d4391b62cbc9a72793457>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <24d45f99911d4391b62cbc9a72793457>: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

Merged post

hello developer ? :D i rly need this plugin
Hey everyone. For a test, I believe all of you are using Image Library?
If so, unload it. Then go to your oxide\data\Image Library folder and delete all of the files. (There should be 3)
Afterwards, reload Image Library and wait for it to redownload all the Skins and image files again. Now try it.

I have noticed since, this is the reason for these errors. After a wipe, Image Library data files should be removed to RENEW the library. It also has to create a new API key for it, so, if your old files are there, it causes a warning in the console after you load thhe server for the first time. Let us know if your problem still exists. Thank you all.

Is the msg people get when they type /kit on my server. Please help

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 :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 :0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001db] in :0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in :0
  at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in :0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] 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
| 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 <a8e2e8fa7ce84e8b8ab96acf41d0dafc>:0
at Oxide.Plugins.Kits.BackgroundPanel (BasePlayer player) [0x0007c] in <a8e2e8fa7ce84e8b8ab96acf41d0dafc>:0
at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x0001b] in <a8e2e8fa7ce84e8b8ab96acf41d0dafc>:0
at Oxide.Plugins.Kits.CmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <a8e2e8fa7ce84e8b8ab96acf41d0dafc>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e2a] in <a8e2e8fa7ce84e8b8ab96acf41d0dafc>: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

Fixed issue, moved from dedicated to host and couldn't find image