Rust-Kits
Moved
Total Downloads: 70,148 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
hey guys when i added a kit and i wanted to see gui it says :
Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.9' (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) [0x00000] in :0 at Oxide.Plugins.Kits.RefreshKitPanel (.BasePlayer player, UInt64 guiId, Int32 page) [0x00000] in :0 at Oxide.Plugins.Kits.NewKitPanel (.BasePlayer player, UInt64 guiId) [0x00000] in :0 at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in :0 at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
and i got a black windows without close ,
what should i do ? -
Kits
click above link -
can you help me for find ? lot's posts ... :| and differents erroresLast edited by a moderator: Mar 30, 2018
-
In rcon type
o.unload Kits
Then go to your data folder and delete kits_data.json file and make sure you only delete that file
Then in rcon type
o.reload Kits
If no more errors it's fixed but if you are still getting them you will need to upload two files to here in your data folder I will need kits.json file and in your config folder I will need kits.json file -
i deleted kits_data but i got crashed with that error and that black window again
Attached Files:
-
-
You are meant to remove the two samples from the config
so it looks likeCode:{ "NPC - GUI Kits": { "0": { "description": "Welcome on this server! Here is a list of free kits that you can get.<color=green>Enjoy your stay</color>", "kits": [ "kit1", "kit2", "starter" ] }, "1235439": { "description": "Welcome on this server! Here is a list of free kits that you can get.<color=green>Enjoy your stay</color>", "kits": [ "kit1", "kit2" ] }, "8753201223": { "description": "<color=red>VIPs Kits</color>", "kits": [ "kit1", "kit3" ] } }, "CopyPaste - Parameters": [ "deployables", "true", "inventories", "true" ], "Custom AutoKits": { "0": "KitName", "1": "KitName", "2": "KitName" }, "UI KeyBinding": "", "Kit - Logging": false, "Show All Kits": false, "Background - URL": "" }
You also have no items saved so start again unload the plugin upload the config I have uploaded here.Code:{ "NPC - GUI Kits": { "0": { "description": "Welcome on this server! Here is a list of free kits that you can get.<color=green>Enjoy your stay</color>", "kits": [ "Starter" ] }, "1235439": { "description": "Welcome on this server! Here is a list of free kits that you can get.<color=green>Enjoy your stay</color>", "kits": [ "kit1", "kit2" ] }, "8753201223": { "description": "<color=red>VIPs Kits</color>", "kits": [ "kit1", "kit3" ] } }, "CopyPaste - Parameters": [ "deployables", "true", "inventories", "true" ], "Custom AutoKits": { "0": "KitName", "1": "KitName", "2": "KitName" }, "UI KeyBinding": "", "Kit - Logging": false, "Show All Kits": false, "Background - URL": "" }
Then
Delete the two files from the data folder
Then reload plugin
Then do the following
Add the items you want in the kit when in game
Then
In game chat copy and paste each of these lines
/kit add "Starter"
/kit items description "Help to get started, usable twice at 1hour interval" cooldown 3600Attached Files:
-
-
Hello is there was to disable the GUI
i only want the /kit list -
watch the videos on the overview it explains what to do
-
thanks buddy
-
I seem to be having a similar issue... I attempted to unload plugin, delete data file, update config file with @Resistance 's attached file, then reload it and ran the exact chat commands to make a kit and am receiving a black blank kits overlay in game, and in console am seeing this error.
Not quite sure what's wrong.Attached Files:
-
-
Did you delete the kits_data.json file first or last if you can please upload all json files you have mins the kits_data.json one
-
Thanks for your Reply Resistance. So i deleted the Kits_data.json first.
Here are my current files. -
first unload plugin then upload the file below to your data folder then delete kits_data.json then reload plugin
Attached Files:
-
-
That worked! Thanks @Resistance you da man! I was deleting it after reloading before that was definitely my issue. Thanks!
-
Happy to help
-
@Kappasaurus You have memory leak in line:
First argument required only ItemDefinition.Code:item.contents.AddItem(BuildItem(mod, 1, 0).info, 1);
[DOUBLEPOST=1523057343][/DOUBLEPOST]Try change on:
Code:item.contents.AddItem(ItemManager.FindItemDefinition(mod), 1);
-
08:36 [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.9' (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 <filename unknown>:0
at Oxide.Plugins.Kits.CreateKitEntry (.BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.RefreshKitPanel (.BasePlayer player, UInt64 guiId, Int32 page) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.NewKitPanel (.BasePlayer player, UInt64 guiId) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
[DOUBLEPOST=1523063119][/DOUBLEPOST]08:36 [Error] Failed to call hook 'cmdUI_AddKit' on plugin 'Kits v3.2.9' (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 <filename unknown>:0
at Oxide.Plugins.Kits.CreateKitEntry (.BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.RefreshKitPanel (.BasePlayer player, UInt64 guiId, Int32 page) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.cmdUI_AddKit (.Arg arg) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
[DOUBLEPOST=1523063135][/DOUBLEPOST]please help -
Check all image urls
-
Yeah, I was going to rewrite it but I don't want to remove feature support. I meant to fix that a long time ago. Thanks for the reminder.

