1. I don't understand exactly what the things like max, min or weight mean. I read the description on the plugin page but I still don't understand completely. Can someone help me? Thank you!
     
  2. Wulf

    Wulf Community Admin

    Merged with Loot Spawn Lists thread. In the future, please post plugin specific questions in its thread.
    Min and max are the lowest and highest numbers that are used for picking the quantity (random number between min and max) of each package or item to spawn in a drop. That's my understanding at least.
     
  3. Can someone create a .cfg file for me ? I only want to disable C4 / Explosive Charge on my Server.

    I create a file, but c4 can found in airdrops :(
     
  4. That question has been asked (and answered) a couple of times before, just work back a few pages and you're bound to find one.
     
  5. 2 Questions:

    1) How do I specify a "null" condition, AKA nothing drops?

    2) Why am I getting said "null" conditions despite not having it as a possible outcome?
     
  6. Use "nil" for the object if you want the box to be empty. The default loot_tables.txt has some nil values, I believe for the blue gun boxes.
     
  7. I am not using default, I am using my own list. Despite having no nil values, sometimes nothing drops (quite frequently actually)
     
  8. Can you post your table then? My hunch would be putting in wrong names so it can't generate the item. Like "m4" instead of "M4" or something to that effect.
     
  9. So it would be the result of a misnamed item? All I needed to know. Thanks!
     
  10. DoM

    DoM

    It could be the name spelling (its capitol sensitive) or you could have the min and max drops set to 0 and 1. Meaning the minimum drop is 0 which will make it so sometimes nothing drops.
     
  11. I'm not sure if anyone else has noticed this, but it seems like if I want to get 2 items to spawn in a package, I actually have to set the max to 3. I have been trying to figure out why having min 1 and max 2 never gave me two items, but the lists I set to max 3 will sometimes spawn 2 now.
     
  12. I am having trouble keeping specific items from being available as loot from the different sources. For instance, I still hear of people getting Kevlar BP's from zombie kills when that isn't even a loot option in my tables.

    What the heck am I doing wrong? Do I need to explicitly deny the items from being dropped or what?

    File name is not the same as when on the server, I know that it loads fine. All my weights add up to 10k giving me more fine control over the percent chance that they drop. Any input would be awesome.
     

    Attached Files:

  13. I'm getting this error:

    Code:
    ERROR: Lua error (lootspawnlists:): [string "C:\TCAFiles\Users\reu_ecker1289\483\save\oxid..."]: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 
     
  14. I have been finding that just because the weight is set to 0 does not actually mean the item cannot drop. It might have something to do with the fact that setting all weights to 0 is a way to make all items in a package drop, I am not really great at reading the lua code to see how it does its magic. The easy fix would be to remove packages 11 and 12 from your zombie loot list entirely.

    Also, 1 in 10,000 chance of research kit off zombies and the only other way to get them is airdrops? You, sir, are sinister!
     
  15. Managed to get mine working, my question or next question is going to be is there a good place with accurate item naming? Ive been using sources like playrust wiki: http://playrustwiki.com/wiki/List_of_Items. The other question is looks like next version will remove zombies dont suppose anyone will know till its done what those will be called for loot lists?
     
  16. What I found to be best was using the Rusty stand-alone admin tool. There is a dropdown menu there for giving items to players, and it had items that I did not find on other lists (such as M4 Blueprint and BoltActionRifle Blueprint). Also, it's a great tool for doing admin stuff without logging into the game or using browser rcon.
     
  17. i cant find it. please post a file without c4 . thank you
     
  18. Open up your loot table. hit ctrl+f and search for "Explosive Charge" Anywhere you find it, delete those lines of code and make sure to renumber the packages accordingly. To be extra sure, test the whole thing in JSONLint when you're done to make sure it's a valid JSON file. For example:

    Code:
    "SupplyDropB":{
        "packages":{
          "1":{
            "object":"556 Ammo",
            "min":250,
            "weight":0,
            "max":250
          },
          "2":{
            "object":"Shotgun Shells",
            "min":100,
            "weight":0,
            "max":100
          },
          "3":{
            "object":"F1 Grenade",
            "min":10,
            "weight":0,
            "max":10
          },
          "4":{
            "object":"Explosive Charge",
            "min":1,
            "weight":0,
            "max":1
          },
          "5":{
            "object":"Large Medkit",
            "min":5,
            "weight":0,
            "max":5
          },
          "0":{
            "object":"9mm Ammo",
            "min":250,
            "weight":0,
            "max":250
          }
        },
        "nodupes":false,
        "max":1,
        "oneofeach":true,
        "min":1
      },
    This supply drop will include 1 explosive charge.

    Code:
    "SupplyDropB":{
        "packages":{
          "1":{
            "object":"556 Ammo",
            "min":250,
            "weight":0,
            "max":250
          },
          "2":{
            "object":"Shotgun Shells",
            "min":100,
            "weight":0,
            "max":100
          },
          "3":{
            "object":"F1 Grenade",
            "min":10,
            "weight":0,
            "max":10
          },
          "4":{
            "object":"Large Medkit",
            "min":5,
            "weight":0,
            "max":5
          },
          "0":{
            "object":"9mm Ammo",
            "min":250,
            "weight":0,
            "max":250
          }
        },
        "nodupes":false,
        "max":1,
        "oneofeach":true,
        "min":1
      },
    This supply drop no longer has the explosive charge listed, and I renumbered package 5 to be package 4.
     
  19. Thanks Ill give that a try out.

    I noticed this morning when running around looting boxes that one of the times I tried looting the wooden crate it came up empty. Is that a possibility normally or would it mean something is likely misspelled in my loot lists? Im thinking its the latter which is why Im going through it checking.
     
  20. Either one of your objects is listed as "nil" or you have a misspelled or improperly capitalized name for the object, something like "wood wall" instead of "Wood Wall".