NullReferenceException at UI.LoadImageError
Swifty

For some reason every time someone does /kit we get stuck with just the gray opacity background and stuck on the menu with this error in the console..

(21:56:33) | Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <7a78b302333942b2aa6761ffeaae3ebc>: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 <7a78b302333942b2aa6761ffeaae3ebc>:0 
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <7a78b302333942b2aa6761ffeaae3ebc>:0 
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <7a78b302333942b2aa6761ffeaae3ebc>:0 
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <7a78b302333942b2aa6761ffeaae3ebc>:0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <7a78b302333942b2aa6761ffeaae3ebc>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​

And this is what it looks like when people /kit

http://prntscr.com/kqqemy Link in case you can't view Picture

XTREMRUST
I also have the error when I want to add a kit in the window in game.

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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) [0x001de] 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) [0x0102a] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
draindoc98
Can only presume this is being worked on? Players are going through withdrawls.....lol.
Explorer
Same error when adding Kits, then just blank GUI.
Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.92' (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 <6932b7a7ed1b49afb0f2319ad0cf4a5e>: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 <6932b7a7ed1b49afb0f2319ad0cf4a5e>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <6932b7a7ed1b49afb0f2319ad0cf4a5e>:0

at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <6932b7a7ed1b49afb0f2319ad0cf4a5e>:0

at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <6932b7a7ed1b49afb0f2319ad0cf4a5e>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <6932b7a7ed1b49afb0f2319ad0cf4a5e>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
MorningBOBO
the same error 

(23:16:03) | Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <a6dafa4ecfb84bd9861b248589eff737>: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 <a6dafa4ecfb84bd9861b248589eff737>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <a6dafa4ecfb84bd9861b248589eff737>:0

at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <a6dafa4ecfb84bd9861b248589eff737>:0

at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <a6dafa4ecfb84bd9861b248589eff737>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <a6dafa4ecfb84bd9861b248589eff737>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

tomhud

i do /kit add Build (all fine)
/kit items max 10 cooldown 3600 description "Build Kit Every Hour"
It says in chat it has been added so i type /kit to add it to the menu
Here is where the issue is - all i get is a screen with no buttons on so i have to quit the game and rejoin

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <5ba8559421b8426eba2fbb66f44533da>: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 <5ba8559421b8426eba2fbb66f44533da>:0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <5ba8559421b8426eba2fbb66f44533da>:0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <5ba8559421b8426eba2fbb66f44533da>:0
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <5ba8559421b8426eba2fbb66f44533da>:0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <5ba8559421b8426eba2fbb66f44533da>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0


Merged post

if i switch to not using the GUI and have the kits show up in chat instead i dont get no errors at all.
Seems something is wrong showing the buttons i think.
Killerwombat
this is what i get when i add a kit

(18:27:50) | Failed to call hook 'cmdUI_AddKit' on plugin 'Kits v3.2.93' (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 <a3c345791ae74a74b7b5a3069dbdffce>: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 <a3c345791ae74a74b7b5a3069dbdffce>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <a3c345791ae74a74b7b5a3069dbdffce>:0

at Oxide.Plugins.Kits.cmdUI_AddKit (ConsoleSystem+Arg arg) [0x0016f] in <a3c345791ae74a74b7b5a3069dbdffce>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <a3c345791ae74a74b7b5a3069dbdffce>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

RustvilleUSA
Major crash error when typing /kit

Locks up the screen and player has to disconnect and reconnect.



Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <6a8433fba50f4ad092d4bf36e6a98ead>: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 <6a8433fba50f4ad092d4bf36e6a98ead>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <6a8433fba50f4ad092d4bf36e6a98ead>:0

at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <6a8433fba50f4ad092d4bf36e6a98ead>:0

at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <6a8433fba50f4ad092d4bf36e6a98ead>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <6a8433fba50f4ad092d4bf36e6a98ead>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

tomhud
remove the last kit u added - if that doesnt work edit the config
RustvilleUSA
Edit what part of the config? I have like 20 kits we've been running for months now. Everything worked fine till this past Facepunch update. I couldn't even begin to tell you the last kit I added as it was almost a year ago. LOL

BTW i GREATLY appreicate the help my dude.

Merged post

Deleted and rebuilt my json and get this in RCON

(10:31:36) | Kits was compiled successfully in 1953ms

(10:31:36) | Loaded plugin Kits v3.2.93 by Reneb

(10:31:37) | Image failed to download! Error: HTTP/1.1 404 Not Found - Image Name: starter_668 - Image URL: https://oxidemod.org/data/resource_icons/0/668.jpg?1492567374

trolex
In response to Swifty ():
For some reason every time someone does /kit we get stuck with just the gray opacity background and...
did you fix? i have the same problem!
RustPlayerR
In response to trolex ():
did you fix? i have the same problem!
Try /kit image "http://xxxxxx.png" to set up an image that the server can access. I successfully fixed the problem with this method.
From Google Translate, sorry that my English is not good.
diaolingtyp
kits not showing but only a black backgroud.

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x00103] in <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <9139ff2b88a342d083cdcd6ed94dd217>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

 
diaolingtyp
In response to RustPlayerR ():
Try /kit image "http://xxxxxx.png" to set up an image that the server can access. I successfully fix...
Its working! Thankyou !!!!!
Pur3x

(15:13:15) | Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (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 <fff10a353f394433b2b4209e5acbdbf8>: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 <fff10a353f394433b2b4209e5acbdbf8>:0

at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <fff10a353f394433b2b4209e5acbdbf8>:0

at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <fff10a353f394433b2b4209e5acbdbf8>:0

at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <fff10a353f394433b2b4209e5acbdbf8>:0

at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <fff10a353f394433b2b4209e5acbdbf8>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0