Rust-Kits

Moved

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

4.96216/5, 185 likes
  1. hi i can not load the kit admin he write always You don't have enough permissions to use this kit but i am on my server AuthLevel 1 (owner) but dont work
     
  2. Authlevel 1 is moderator, owner is actually authlevel 2.
     
  3. Oxide] 5:54 PM [Error] kits: A .NET exception occured in user-code
    at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
    at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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
     
  4. Is there a list of items names to be used with this plugin, currently? I tried "Cloth Pants" and other item names off the wiki which don't work when I spawn a kit, but the default revolver works fine...
     
  5. an error like that can't help me at all ... there are no informations for me useful :x
    you need to help me more, as in: when did that occur? does it spam? etc[DOUBLEPOST=1414357148][/DOUBLEPOST]
    open the craft list :p
     
  6. This is what I tried doing. I'm not too certain about it...
    Code:
    {
      "AuthLevel": 1,
      "Messages": {
      "NoPermissionKit": "You don't have enough permissions to use this kit",
      "CoolDown": "This kit is still in cooldown",
      "KitList": "Avaible Kits",
      "HelpMessage": "/kit - to get the list of kits",
      "NoKitAvaible": "You have no avaible kits",
      "ErrorKit": "This kit doesn't exist",
      "NoKitLeft": "You don't have any kits left for this kit"
      },
      "Kits": {
      "starter": {
      "wear": [
      {
      "name": "Cloth Gloves",
      "amount": 1
      },
      {
      "name": "Cloth Pants",
      "amount": 1
      },
      {
      "name": "Cloth Boots",
      "amount": 1
      }
      ],
      "description": "",
      "cooldown": 1000,
      "belt": [
      {
      "name": "Revolver",
      "amount": 1
      },
      {
      "name": "Large Medkit",
      "amount": 5
      }
      ],
      "main": [
      {
      "name": "Foundation",
      "amount": 1
      },
      {
      "name": "Pistol Bullet",
      "amount": 250
      }
      ]
      }
      }
    }
     
    Last edited by a moderator: Nov 27, 2014
  7. you config seems ok,
    do you have the latest oxide version?
    and when does it give u this error?
    can you do /kit starter ?
     
  8. Snapshot version v313

    EDIT: After looking at rcon it says "cloth pants" are not a valid item name?
     
    Last edited by a moderator: Oct 26, 2014
  9. told you to look in your crafting list XD
    cloth pants don't exist.
     
  10. Yea, I changed it to burlap but i have to wait to test. Hopefully it will work.
     
  11. Hey Reneb, thanks for your work on this plugin.
    I am having some issues updating the kit names. When I update the lua and saved it, it changed in the /kits list, but anything after that will not apply.

    Ie. Change the items given in a Kit, or change the kit name again - The save the lua, and restart server. This does not reflect the changes.

    Am I missing something?

    Cheers.
     
  12. The data loaded in the plugin itself only happens once and generates a file in the config folder, it's that config file (kits.json) that you need to modify.
     
  13. Good man! There's the file I need to mod!

    Thanks a bunch mate!
     
  14. Is there anywhere a list with correct Item names for use with this Plugin ?
     
  15. The plugin uses the in-game names for the items so you could basically just open up your inventory and check the items you can craft, all the item names listed there are valid items that can be used with the plugin.
     
  16. I need some Help :-(
    This is my json Config:

    Code:
    {
      "Kits": {
        "admin": {
          "belt": [
            {
              "amount": 1,
              "name": "Bolt Action Rifle"
            },
            {
              "amount": 5,
              "name": "Large Medkit"
            }
          ],
          "main": [
            {
              "amount": 1,
              "name": "Foundation"
            },
            {
              "amount": 50000,
              "name": "Wood"
            },
            {
              "amount": 50000,
              "name": "Metal Fragments"
            },
            {
              "amount": 5000,
              "name": "5.56 Rifle Cartridge"
            },
            {
              "amount": 1,
              "name": "Stone Hatchet"
            },
            {
              "amount": 1,
              "name": "Sleepingbag"
            }
          ],
          "admin": true,
          "wear": [
            {
              "amount": 1,
              "name": "Coffee Can Helmet"
            },
            {
              "amount": 1,
              "name": "Hazmat Jacket"
            },
            {
              "amount": 1,
              "name": "Hazmat Gloves"
            },
            {
              "amount": 1,
              "name": "Hazmat Pants"
            },
            {
              "amount": 1,
              "name": "Hazmat Boots"
            }
          ],
          "description": ""
        },
        "starter": {
          "main": [
            {
              "amount": 1,
              "name": "Foundation"
            },
            {
              "amount": 1,
              "name": "Sleepingbag"
            },
            {
              "amount": 1,
              "name": "Stone Hatchet"
            }
          ],
          "belt": [
            {
              "amount": 5,
              "name": "Large Medkit"
            }
          ],
          "cooldown": 3600,
          "wear": [
            {
              "amount": 1,
              "name": "Burlap Shirt"
            },
            {
              "amount": 1,
              "name": "Leather Gloves"
            },
            {
              "amount": 1,
              "name": "Burlap Pants"
            },
            {
              "amount": 1,
              "name": "Burlap Shoes"
            }
          ],
          "description": ""
        },
        "moderator": {
          "moderator": true,
          "belt": [
            {
              "amount": 1,
              "name": "Revolver"
            },
            {
              "amount": 5,
              "name": "Large Medkit"
            }
          ],
          "main": [
            {
              "amount": 1,
              "name": "Foundation"
            },
            {
              "amount": 250,
              "name": "Pistol Bullet"
            }
          ],
          "wear": [
            {
              "amount": 1,
              "name": "Hazmat Helmet"
            },
            {
              "amount": 1,
              "name": "Hazmat Jacket"
            },
            {
              "amount": 1,
              "name": "Hazmat Gloves"
            },
            {
              "amount": 1,
              "name": "Hazmat Pants"
            },
            {
              "amount": 1,
              "name": "Hazmat Boots"
            }
          ],
          "description": ""
        },
      "Messages": {
        "ErrorKit": "Dieses Kit existiert nicht",
        "NoKitLeft": "Du kannst keine weiteren Kits mehr anfordern",
        "CoolDown": "Du kannst dieses Kit erst spaeter wieder anfordern",
        "NoKitAvaible": "Im Moment sind keine Kits fuer Dich verfuegbar",
        "NoPermissionKit": "Du hast nicht die Berechtigung dieses Kit anzufordern",
        "KitList": "verfuegbare Kits"
      },
      "AuthLevel": 1
    }
    The JSON Test said :

    Parse error on line 162:
    ..."AuthLevel": 1 }
    ----------------------^
    Expecting '}', ',', ']'

    162 is the last line.
    I dont find the Error:
    Can somabody help , please ?
     
  17. In the description of this plugin there is à link to verify json format, use it, it Will Tell you where you fucked up ;)
     
  18. You didn't close Kits = {}, you've put messages & authlevel in there as well resulting in a missing } in the end. This one should work:
    Code:
    {
        "Kits": {
            "admin": {
                "belt": [
                    {
                        "amount": 1,
                        "name": "Bolt Action Rifle"
                    },
                    {
                        "amount": 5,
                        "name": "Large Medkit"
                    }
                ],
                "main": [
                    {
                        "amount": 1,
                        "name": "Foundation"
                    },
                    {
                        "amount": 50000,
                        "name": "Wood"
                    },
                    {
                        "amount": 50000,
                        "name": "Metal Fragments"
                    },
                    {
                        "amount": 5000,
                        "name": "5.56 Rifle Cartridge"
                    },
                    {
                        "amount": 1,
                        "name": "Stone Hatchet"
                    },
                    {
                        "amount": 1,
                        "name": "Sleepingbag"
                    }
                ],
                "admin": true,
                "wear": [
                    {
                        "amount": 1,
                        "name": "Coffee Can Helmet"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Jacket"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Gloves"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Pants"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Boots"
                    }
                ],
                "description": ""
            },
            "starter": {
                "main": [
                    {
                        "amount": 1,
                        "name": "Foundation"
                    },
                    {
                        "amount": 1,
                        "name": "Sleepingbag"
                    },
                    {
                        "amount": 1,
                        "name": "Stone Hatchet"
                    }
                ],
                "belt": [
                    {
                        "amount": 5,
                        "name": "Large Medkit"
                    }
                ],
                "cooldown": 3600,
                "wear": [
                    {
                        "amount": 1,
                        "name": "Burlap Shirt"
                    },
                    {
                        "amount": 1,
                        "name": "Leather Gloves"
                    },
                    {
                        "amount": 1,
                        "name": "Burlap Pants"
                    },
                    {
                        "amount": 1,
                        "name": "Burlap Shoes"
                    }
                ],
                "description": ""
            },
            "moderator": {
                "moderator": true,
                "belt": [
                    {
                        "amount": 1,
                        "name": "Revolver"
                    },
                    {
                        "amount": 5,
                        "name": "Large Medkit"
                    }
                ],
                "main": [
                    {
                        "amount": 1,
                        "name": "Foundation"
                    },
                    {
                        "amount": 250,
                        "name": "Pistol Bullet"
                    }
                ],
                "wear": [
                    {
                        "amount": 1,
                        "name": "Hazmat Helmet"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Jacket"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Gloves"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Pants"
                    },
                    {
                        "amount": 1,
                        "name": "Hazmat Boots"
                    }
                ],
                "description": ""
            }
        },
        "Messages": {
            "ErrorKit": "Dieses Kit existiert nicht",
            "NoKitLeft": "Du kannst keine weiteren Kits mehr anfordern",
            "CoolDown": "Du kannst dieses Kit erst spaeter wieder anfordern",
            "NoKitAvaible": "Im Moment sind keine Kits fuer Dich verfuegbar",
            "NoPermissionKit": "Du hast nicht die Berechtigung dieses Kit anzufordern",
            "KitList": "verfuegbare Kits"
        },
        "AuthLevel": 1
    }
     
  19. THX works fine :)