When the users try to use /kit with the GUI i get this message.
Code:[9/13/2015 7:51:35 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:36 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:38 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:40 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:42 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:54 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:56 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:56 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:51:59 PM] [Oxide] 7:51 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.) [9/13/2015 7:52:05 PM] [Oxide] 7:52 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.)
Rust-Kits
Moved
Total Downloads: 70,151 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
most likely you reloaded the plugin while someone was using the gui
-
The thing is, i could use it with no problem or error but all users could not and got the error. But i will try again.
-
-
-
I give it a try straight away.
-
it makes all my kits dissapear?
-
-
Still the same. Sorry
Code:[9/13/2015 8:28:17 PM] [Oxide] 8:28 PM [Debug] at Oxide.Plugins.Kits.GetData (.BasePlayer player, System.String kitname, System.String dataname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.CanSeeKit (.BasePlayer player, System.String kitname, Boolean fromNPC, System.String& reason) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.RefreshKitPanel (.BasePlayer player, System.String guiId, Int32 minKit) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.NewKitPanel (.BasePlayer player, System.String 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 (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
as i said earlier cyripton for this error. it's because you updated the plugin without shutting down the server
so for further people and you:
1) shutdown the server
2) ERASE ALL KITS Config & Data (Kits_List, Kits_Data, etc)
3) update the plugin with the new Kits.cs
4) restart the server -
Ok, now i got it. Will do that with next server restart. maybe post that in the plugin update post too. Then everybody will know.
-
Ignore this post, resolved.
[DOUBLEPOST=1442172028][/DOUBLEPOST]New problem.
Players don't get items when typing /kit (kitname)Last edited by a moderator: Sep 13, 2015 -
i need more info H3X
do you have errors? can you send here the errors that you get. -
What does this mean? (/kit give PLAYER/STEAMID kitname) Admin must give kits out?
-
no admins CAN give kits out.
-
I have not shut the server down to activate the kits plugin update yet. But I wanted to know if the players will still be able get their own kits?
-
everything is reset.
and ofc this plugin works like the previous one, just a better coded and more options. -
ok, great thanks Reneb.
-
Updated plugin. Cleared cfg and data files.
When I make a kit with a permission needed to receive it, users with the permission can't see the kit and all users that do the /kit command cause the console to output this error.
Code:[Oxide] 4:52 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 4:52 PM [Debug] at Oxide.Plugins.Kits.GetData (.BasePlayer player, System.String kitname, System.String dataname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.CanSeeKit (.BasePlayer player, System.String kitname, Boolean fromNPC, System.String& reason) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Code:{ "Kits": { "starter": { "name": "starter", "description": "Get some supplies when you first join the server", "max": "1", "cooldown": null, "authlevel": null, "hide": null, "npconly": null, "permission": null, "image": null, "items": [ { "itemid": "-1625468793", "bp": "False", "skinid": "0", "container": "main", "amount": "1" }, { "itemid": "-337261910", "bp": "False", "skinid": "0", "container": "main", "amount": "2" }, { "itemid": "-1043746011", "bp": "False", "skinid": "0", "container": "main", "amount": "2" }, { "itemid": "927253046", "bp": "False", "skinid": "0", "container": "main", "amount": "1" }, { "itemid": "927253046", "bp": "False", "skinid": "0", "container": "main", "amount": "1" }, { "itemid": "-307490664", "bp": "False", "skinid": "0", "container": "main", "amount": "1" } ] }, "dailyvip": { "name": "dailyvip", "description": "Daily supply signal for VIPs", "max": null, "cooldown": "72000", "authlevel": null, "hide": null, "npconly": null, "permission": "kit_vip", "image": null, "items": [ { "itemid": "-1625468793", "bp": "False", "skinid": "0", "container": "main", "amount": "1" } ] } } }
-
show me your Kits_Data plz in data folder