Rust-Kits

Moved

Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018

4.96216/5, 185 likes
  1. Thank you)) very helpful) removed the configuration file and restart the plugin. And it worked
     
  2. Anyone help me??
    Getting this error when clicking next page:
    (11:19:09) | Failed to call hook 'cmdConsoleKitShow' on plugin 'Kits v3.2.3' (OverflowException: Resulting timespan is too big.)
     
  3. How can I use - /kit resetdata => reset player data from RCON? Because can't be online in that moment(
     
  4. I can't seem to redeem kit. I set permission as kits.admin. I granted the permission successfully. I read all kinds of posts. Most refer to auto kit stuff, but I don't need auto. GUI only has add kit and close buttons. All kits show up in GUI when I use "add kit " button but when I add admin kit the GUI goes blank with no close button and I have to unload the plugin. All the other kits add but don't show up on gui.

    This is the error when I type /kit admin to redeem without gui:

    02:55 [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.3' (NullReferenceException: Object reference not set to an instance of an object)
    02:55 [Stacktrace] at Oxide.Plugins.Kits.GetKitData (UInt64 userID, System.String kitname) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.CanRedeemKit (.BasePlayer player, System.String kitname, Boolean skipAuth) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.TryGiveKit (.BasePlayer player, System.String kitname) [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 (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

    Also the kits_data.json is always empty.
    Here is my kits.json from the config folder and the data folder:

    If I set show all kits to true it also gets a blank GUI with no close button.
    Been on this for 8 hours and can't figure it out.
    I tried to hide none of the kits and still fails.
    I'm wondering if one of the kits has an obsolete item like bone armor, so I did find a couple of kits that had 6 wear items with only the npc wearing 4 items.

    Does anyone know the old item ID for bone armor pants and bone armor jacket? I'd like to do a search for the ID so I dont have to recreate all the kits again.

    **EDIT** It's not an obsolete item. I just tried a new kits.json and added only one new kit. with the admin kit only as seen in the file I uploaded. Typing /kit admin still generates the error. Similar error when I try to access the kit through an NPC. All the NPC's get their kits when they respawn. I just cant get any of the kits.
     

    Attached Files:

    Last edited by a moderator: Mar 3, 2017
  5. New update is AMAZING.Very practical to use for newcomers now, they no longer need anything more than "/kit" into chat.
     
  6. Hello

    I have installed the KITS plugin to be able to dress my NPCs.
    And I would like the GUI and commands / kit not working for a player who is not an administrator.
     
  7. Can you explain to me how you got the gui working?
     
  8. Just loaded the updated version of plugin.As soon as I press /kit into chat, GUI opens up and lets me add created kits to the front page where they can be redeemed, where cooldown can be checked, etc.No extra effort, everything is still the same.
     
  9. Did you do a clean install? (Deleted all files including config, data etc.) I updated it with deleting only the plugin and whenever I use kit the normal text pops up.
     
  10. Uhm yeah I did.I tried updating .cs only and kits did not work at all.Then I removed .cs, .json and /data .json, basically reinstalled the entire plugin and it worked.It takes a minute to reinstall and re-create your kits I believe.
     
  11. Sounds like a corrupt data file. Unload kits, rename or delete the data files, reload kits. If the issue doesn't happen anymore then it is something in your data files. From there use a json validator or start fresh.
     
  12. When i add the kit with wood in my inv and do evrything like /kit add wood then the settings but when i redeem the kit it doesn't give me any item of the kit.
     
  13. You need to have the wood in your inventory, then.

    ex:
    /kit add wood
    /kit items max 10 cooldown 3600 description "Every hour kit, max usage: 10"

    then try redeeming it /kit wood, it should work.
     
    Last edited by a moderator: Mar 3, 2017
  14. I would like the GUI and commands / kit not working for a player who is not an administrator.
     
  15. Admin kit does not need a permission as it has auth level 2 and if you want the GUI you need to set it up in the config that you have not done
     

    Attached Files:

  16. Make all your kits require auth2. Done
     
  17. You forgot the last step:

    /kit items - this copies whatever you stored in inventory into kit data.He probably skipped this and it makes perfect sense why he redeemed nothing.
    This is a must for every kit.
     
  18. I had it set up in config but had to remove it because it caused the error. I did fix the problem today. The kits_data.json was completely empty. It needed to at least have {} in the file. I had to delete the file on server shut down. I guess unloading and reloading the plugin wasn't enough, It kept replacing the file without the {}.
     
  19. When i write the command /add kit Starter, it says you don't have access to this command.