1. This is just an example but another person told me that one of 3 chests contain MP5:

    Code:
            "JunkSpawnList":
            {
                    "min": 1, "max": 3,
                    "oneofeach": false, "nodupes": false,
                    "packages":
                    {
                            "0": { "min": 1, "max": 1, "weight": 10, "object": "FoodList" },
                            "1": { "min": 20, "max": 30, "weight": 10, "object": "Cloth" },
                            "2": { "min": 1, "max": 1, "weight": 10, "object": "Flare" },
                            "3": { "min": 1, "max": 1, "weight": 5, "object": "ToolList" },
                            "4": { "min": 20, "max": 60, "weight": 10, "object": "Sulfur" },
                            "5": { "min": 20, "max": 50, "weight": 6, "object": "Gunpowder" },
                            "6": { "min": 20, "max": 50, "weight": 5, "object": "Wood" },
                            "7": { "min": 20, "max": 30, "weight": 6, "object": "Metal Fragments" },
                            "8": { "min": 2, "max": 5, "weight": 10, "object": "Paper" },
                            "9": { "min": 1, "max": 1, "weight": 2, "object": "ResearchKitList" },
                            "10": { "min": 1, "max": 1, "weight": 10, "object": "MetalBuildingList" },
                            "11": { "min": 1, "max":  1, "weight": 7, "object": "AmmoSpawnList" },
                            "12": { "min": 2, "max": 2, "weight": 7, "object": "RadSuitList" },
                            "13": { "min": 1, "max": 1, "weight": 1, "object": "BlueprintLootList" },
                            "14": { "min": 1, "max": 1, "weight": 1, "object": "MP5A4" }
                    }
            },
     
  2. If you give 5 packages a weight of 20, which means each item has a 20% chance to drop, is there a possibility to have no drop at all because of the % chance drop?
     
  3. No that is not true.

    Min: 1 to Max: 3

    this means that in the Boxes has a change to drop 1 or max 3 items in it!

    If they box decide to drop a MP5 it has a 1% change due to the Weight set to 1
    and al the weight together = 100![DOUBLEPOST=1390314662][/DOUBLEPOST]
    Just remove the Item and it wont drop!
     
  4. Mcello
    I know - the 3 boxes was an example that when I use the above code for junkboxes MP5 spawn rate is 33% :)
    That's the feedback from my players.
     
  5. I'm not quite done tweaking it to get the best balance, but atleast it works lol
     

    Attached Files:

  6. Code:
    ERROR: Lua error (lootspawnlists:): [string "C:\games\rust\alpha-oxide\256050\plugins\loot..."]:89: bad argument #1 to 'pairs' (table expected, got nil)
    ERROR:   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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 

    http://p.nixc.us/yoto.rb


    the first is the error in console, the link is the copy of my loot tables, which are modified versions of the official ones...

    not sure why this is throwing an error, i assumed "89: Bad Arguement" meant line 89.....but line 89 is a "}"
     
  7. As you can see here you allways need to check json on
    http://jsonlint.com/

    they show you where you messed up like i show now to you :) Json check.png
     
  8. nice, didnt know about this tool thank you!
     
  9. If you definitely don't have MP5 in any of those other sublists, and your loot list is actually being loaded (if the plugin isn't working then you will get the default lists..), then the actual dropchance of MP5A4 from Junk boxes will be about 2%. It's very easy to test that your plugin is working, just try to make everything (airdrop, junk box, zombie, etc) all drop only two things at equal weight, and then check them (boxes, zombies, supply signal etc) to make sure they're all taking effect. If that fails, then post the last 50 lines of your oxidelog.txt so you can get further assistance.

    For one thing, it makes it a lot easier to add and remove items from each list without having to recalculate all of the other items in the list every time you change one thing. it also means you can easily make some things drop less than 1% of the time, which is important for 'rare item' servers.

    While I agree that a simple tool whereby you could feed it a droplist, and it'd show a visual representation of drops out of 100 or 1000 would be handy, probability weighting seems to be the most granular and powerful way to represent comparative dropchances.
     
  10. I believe we should get a Topic going where people are willing to post their own Loot Configurations. :D
     
  11. We have a pretty hardcore server config... There are currently only 1 M4 and 3 MP5s on our server, about 20 C4 and 30 Grenades - spread pretty evenly amongst our 30+ regular players. No factory-grade guns are craftable, neither are C4/nades - keeps them rare ;) Basically the only weapon-related items you can research and craft which aren't on your list when you start, are Shotgun Shells and 556 Ammo.

    With this list, zombies have about a 0.3% chance of dropping a factory-grade gun, same chance for 1 C4 or 1-3 grenades, or a supply signal. We'll be resetting our server sometime soon, as our testing so far has indicated that we need to make metal doorways, weapon mods and kevlar parts uncraftable as well, to maintain a long-term balance (harder to make an unraidable base, or to keep stock of end-game items) - but those are tweaks elsewhere, and this droplist has proven pretty fantastic.

    Btw, since Paper no longer has an in-game use, we made it uncraftable and rare, and we use it as 'contestant entry' into our unique server events ;) You can probably just remove it if you want to use this list elsewhere.

    Feedback is welcome; I'm here to learn just like you guys :)

    - Aussie FairGame [RareC4&Guns] Loot List: http://pastebin.com/uuesL5Fq
     
  12. Same on my server, I restricted research and crafting of all military grade hardware (9mm, P250, shotgun, M4, kevlar, explosive charges, etc.) and also all metal parts. So far you can only find them and even though I've been looting a lot they are pretty rare.
     
  13. Maybe there should be a resource category for loot tables? @German Hoeffner
     
  14. Maybe a category for configurations? @Wulf @thomasfn
     
  15. Do you really think all MBPs should be restricted? I figured just enforcing scarcity of doorways would be enough to keep things sane ;)

    Or perhaps some things like metal pillars and windows can be craftable but not the rest (with windows they'll still need the other 100 frags for the bars to make it secure)... Hmm I'll have to think on it a bit. Thanks for the insight :)
     
  16. blueprints aren't listed as items on rust wiki .do i have to create a blueprint spawn list for make them spawn or it's generate automatically??
    (sorry for my english i'm french ;) )
     
  17. +1 I am all for this! :D
     
  18. Yeah, seeing that C4 is pretty rare (even though I unfortunately didn't have large groups to test it properly yet) I figured that with the current crafting costs everybody would have impenetrable metal fortresses within a week. If I put all my found metal parts together with a friend's stash we should almost be able to put together a cute 3x3x1 metal building. :p
     
  19. I'm up for this as well, but seeing that it's probably enough work for you guys to Q&A all the plugins already how would you propose to keep the config entries valid?