Before posting an error always check above posts
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 ? -
click above link -
Last edited by a moderator: Mar 30, 2018
-
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 -
Attached Files:
-
-
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": [ "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": "" }
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 -
-
-
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:
-
-
-
Here are my current files. -
Attached Files:
-
-
-
-
@Kappasaurus You have memory leak in line:
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 -
-