BetterLoot

Moved

Total Downloads: 42,616 - First Release: Feb 26, 2015 - Last Update: Mar 20, 2018

4.95699/5, 93 likes
  1. Code:
    {
        "Barrel": {
            "barrelTypes": "loot-barrel|loot_barrel|loot_trash",
            "enableBarrels": true,
            "maxItemsPerBarrel": 6,
            "minItemsPerBarrel": 1,
            "randomAmountBarrels": true,
            "refreshBarrels": false
        },
        "Crate": {
            "crateTypes": "crate_normal|crate_tools",
            "enableCrates": true,
            "maxItemsPerCrate": 10,
            "minItemsPerCrate": 3,
            "randomAmountCrates": true,
            "refreshCrates": true
        },
        "Generic": {
            "dropWeaponsWithAmmo": true,
            "enableScrapSpawn": true,
            "enforceBlacklist": false,
            "listUpdatesOnLoaded": true,
            "listUpdatesOnRefresh": false,
            "pluginEnabled": true,
            "refreshMinutes": 15,
            "removeStackedContainers": true,
            "seperateLootTables": true
        },
        "HeliCrate": {
            "includeHeliCrate": false,
            "maxItemsPerHeliCrate": 5,
            "minItemsPerHeliCrate": 3,
            "randomAmountHeliCrate": true,
            "useCustomTableHeli": true
        },
        "Rarity": {
            "Override": {
                "autoturret": 4,
                "lmg.m249": 4,
                "targeting.computer": 3
            }
        },
        "SupplyDrop": {
            "includeSupplyDrop": false,
            "maxItemsPerSupplyDrop": 6,
            "minItemsPerSupplyDrop": 3,
            "randomAmountSupplyDrop": true,
            "useCustomTableSupply": true
        }
    }
    this on top u find in \oxide\config\BetterLoot.json and it looks good, but

    Code:
        "ItemListBarrels": {
            "scrap": 25,
            "lowgradefuel": 25,
            "crude.oil": 10,
            "metalpipe": 2,
            "metalblade": 2,
            "metalspring": 2,
            "can.beans": 5,
            "can.tuna": 5,
            "rope": 2,
            "techparts": 2    },
    this on top u find in \oxide\data\BetterLoot\LootTable.json and there u can config the loot table for your server
     
  2. Can someone help me with my loot tables its keep giving me errors in the console about it getting destroyed and i read how to fix it but it didnt work and also my loot is not spawning everything i want
     
  3. hi, as a little update to this, i realised i was working in the wrong file and corrected my mistake and started working in the loottable.json but still it doesn't work.
    [DOUBLEPOST=1510888412][/DOUBLEPOST]
    Here is the loottable config for the itemlistbarrels, all i did was add scrap (so far) and i set it to 25, yet if if i go to barrels i either get 1 scrap or 2 pieces of 1 scrap and that's it

    Code:
    {
      "ItemListBarrels": {
        "antiradpills": 5,
        "apple": 10,
        "black.raspberries": 10,
        "bleach": 5,
        "blueberries": 10,
        "can.beans": 10,
        "can.tuna": 10,
        "candycane": 10,
        "chocholate": 10,
        "ducttape": 5,
        "gears": 5,
        "glue": 5,
        "granolabar": 10,
        "clone.hemp": 10,
        "largemedkit": 5,
        "metalblade": 5,
        "metalpipe": 5,
        "fish.minnows": 10,
        "mushroom": 10,
        "propanetank": 5,
        "pumpkin": 10,
        "clone.pumpkin": 10,
        "riflebody": 5,
        "roadsigns": 5,
        "rope": 5,
        "scrap": 25,
        "semibody": 5,
        "sewingkit": 5,
        "sheetmetal": 5,
        "fish.troutsmall": 10,
        "smallwaterbottle": 10,
        "smgbody": 5,
        "metalspring": 5,
        "sticks": 5,
        "syringe.medical": 5,
        "tarp": 5,
        "techparts": 10
      },
     
  4. all items was you have in the loottable it can spawn inside the barrel, so sometimes scrap spawns inside with a random ammount to 25.
    the other full scrap spawn 1 or 2 etc works otherwise. this one you need ask fuji how it works :p i dont know
     
  5. Fuji, i altered and added the scrap to the loottable and set it to 25, but i would like it to specifically drop 25 scrap, or at least between 20 and 25
    but right now i have just hit over 50 barrels, nearly all of them contained scrap and the only value higher then one or 2 that i received was 15, how do i fix this?
    PS here is the loottable that i adapted

    Code:
    {
      "ItemListBarrels": {
        "antiradpills": 5,
        "apple": 10,
        "black.raspberries": 10,
        "bleach": 5,
        "blueberries": 10,
        "can.beans": 10,
        "can.tuna": 10,
        "candycane": 10,
        "chocholate": 10,
        "ducttape": 5,
        "gears": 5,
        "glue": 5,
        "granolabar": 10,
        "clone.hemp": 10,
        "largemedkit": 5,
        "metalblade": 5,
        "metalpipe": 5,
        "fish.minnows": 10,
        "mushroom": 10,
        "propanetank": 5,
        "pumpkin": 10,
        "clone.pumpkin": 10,
        "riflebody": 5,
        "roadsigns": 5,
        "rope": 5,
        "scrap": 25,
        "semibody": 5,
        "sewingkit": 5,
        "sheetmetal": 5,
        "fish.troutsmall": 10,
        "smallwaterbottle": 10,
        "smgbody": 5,
        "metalspring": 5,
        "sticks": 5,
        "syringe.medical": 5,
        "tarp": 5,
        "techparts": 10
      },
     
  6. Have you figured it out yet? i am looking into this too and it drives me nuts hehe

    my server doesnt spawn bp's
     
    Last edited by a moderator: Nov 17, 2017
  7. Hello.
    I have a rust server, but i have a huge problem...
    in items for barrels, i have ("blueprintbase": 1,) so you can loot blueprints. When i pickup a blueprint, no matter if it's in barrels og crates, its just blank.
    I have looked everywhere for a solution on the problem, but without luck.

    I really hope some of you lovley people can help me.

    If i can make so all players have all blueprints, then it's fin, but i dont know how.

    please help, thanks..
     
  8. I have allowed '"includeSupplyDrop": true,' - But it is not working? If i throw a supply signal it gives items i do not want it to give. And not as many items as i want.

    I am using FancyDrop as well, should i delete FancyDrop?

    Many thanks,

    Jake
     
  9. ok i need some help
    i run a private server for my friends, and barrels need to be Op compared to a 15x server. I cannot figure out how to do that. I want the barrles to be like dropping a lot of components, and a fair amount of them. But as of now my server just plain does not recieve rifle bodies, and only recieves very low amounts of scrap and other components.
     
  10. go here \oxide\data\BetterLoot\LootTable.json and change it to what you want
     
  11. same issue on my server very low drops on scrap any fix???
     
  12. I have two questions about this plugins work:

    First:
    If i set the Rarity like this for example for the hammer, is chance of getting a hammer extreme low in crates and barrels?
    Code:
      "Rarity": {
        "Override": {
          "hammer": 4,
        }
      },
    Second:
    How can i edit the lood of food crates?
    I added crate_normal_2_food to the crates but it doesn't affect thmen
     
  13. yes, rarity:
    • None = 0
    • Common = 1
    • Uncommon = 2
    • Rare = 3
    • VeryRare = 4
    i think u mean this little food boxes? this are trash-pile-1 or foodbox but if u add it then they can spawn weapons or building parts all things what u have in your loot table
     
  14. I was wondering if someone could help me with the rarity for this because I wanted to add satchels to my servers loot but i dont want to make it every crate so i was wondering if there was a way to fix that or change it so it becomes decently rare
     
  15. How would i add blueprints? I'm currently adding them like "blueprint.floor.ladder.hatch": 1, But it doesn't seem to drop. Currently my server drops BPs but they aren't even in the drop table and are very common items.
     
  16. Im having an issue with better loot noticed my server was restarting every 10 - 20 min so checked my logs and found this

    Failed to run a 0.10 timer in 'BetterLoot v2.13.1' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.Dictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
    To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
    Path 'AllItemsAvailable', line 3, position 24.)
    I googled it as im just learning and this went right over my head, it i read about it being wrapped in [] brackets so tried to replacing them with {} as most other json files are structured this way. it didnt work and i tried a few things i read on forums but still nothing.
    I tried but i need your help :p
     
  17. }

    (14:35:36) | System.NullReferenceException: Object reference not set to an instance of an object

    at SpawnPopulation.UpdateWeights (.SpawnDistribution distribution, Int32 targetCount) [0x00000] in <filename unknown>:0

    at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Int32 targetCount, Int32 numToFill, Int32 numToTry) [0x00000] in <filename unknown>:0

    at SpawnHandler.SpawnRepeating (.SpawnPopulation population, .SpawnDistribution distribution) [0x00000] in <filename unknown>:0

    at SpawnHandler+<SpawnTick>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
     
  18. Hey all. I cannot seem to get BetterLoot to correct supply drops. For some reason they continue spawning with various wood armor. I've removed wood armor from the drop loot table, reloaded the plugin, and even restarted. I'm using it with easydrop (which doesn't appear to override anything). Would someone point me in the right direction? Thanks! This is the supplydrop.json:

    Code:
    {
      "ItemList": {
        "rifle.ak": 1,
        "ammo.handmade.shell": 32,
        "ammo.pistol": 32,
        "ammo.pistol.fire": 32,
        "ammo.pistol.hv": 32,
        "ammo.rifle": 32,
        "ammo.rifle.explosive": 32,
        "ammo.rifle.incendiary": 32,
        "ammo.rifle.hv": 32,
        "ammo.shotgun": 32,
        "ammo.shotgun.slug": 32,
        "autoturret": 1,
        "tool.binoculars": 1,
        "rifle.bolt": 1,
        "cctv.camera": 1,
        "crossbow": 1,
        "explosive.satchel": 1,
        "explosive.timed": 1,
        "facialhair.style01": 1,
        "femalearmpithair.style01": 1,
        "femaleeyebrow.style01": 1,
        "femalepubichair.style01": 1,
        "female_hairstyle_01": 1,
        "female_hairstyle_03": 1,
        "flamethrower": 1,
        "flameturret": 5,
        "weapon.mod.flashlight": 1,
        "gloweyes": 1,
        "grenade.beancan": 1,
        "grenade.f1": 1,
        "male_hairstyle_01": 1,
        "female_hairstyle_02": 1,
        "bucket.helmet": 1,
        "coffeecan.helmet": 1,
        "deer.skull.mask": 1,
        "heavy.plate.helmet": 1,
        "hat.miner": 1,
        "riot.helmet": 1,
        "hat.wolf": 1,
        "hazmatsuit": 1,
        "weapon.mod.holosight": 1,
        "hoodie": 1,
        "bone.armor.suit": 1,
        "heavy.plate.jacket": 1,
        "jacket.snow": 1,
        "jacket": 1,
        "trap.landmine": 5,
        "weapon.mod.lasersight": 1,
        "longsword": 1,
        "rifle.lr300": 1,
        "pistol.m92": 1,
        "mace": 1,
        "male.facialhair.style02": 1,
        "male_hairstyle_02": 1,
        "malearmpithair.style01": 1,
        "maleeyebrow.style01": 1,
        "malepubichair.style01": 1,
        "male_hairstyle_03": 1,
        "metal.facemask": 1,
        "metal.plate.torso": 1,
        "smg.mp5": 1,
        "weapon.mod.muzzleboost": 1,
        "weapon.mod.muzzlebrake": 1,
        "pistol.nailgun": 1,
        "ammo.nailgun.nails": 32,
        "heavy.plate.pants": 1,
        "roadsign.kilt": 1,
        "pistol.eoka": 1,
        "pistol.revolver": 1,
        "pistol.semiauto": 1,
        "pistol.python": 1,
        "roadsign.jacket": 1,
        "salvaged.cleaver": 1,
        "salvaged.sword": 1,
        "santahat": 1,
        "weapon.mod.small.scope": 1,
        "rifle.semiauto": 1,
        "shotgun.double": 1,
        "shotgun.pump": 1,
        "shotgun.waterpipe": 1,
        "guntrap": 5,
        "weapon.mod.silencer": 1,
        "weapon.mod.simplesight": 1,
        "smg.2": 1,
        "spikes.floor": 5,
        "stone.pickaxe": 1,
        "stonehatchet": 1,
        "surveycharge": 1,
        "targeting.computer": 1,
        "smg.thompson": 1,
      }
    }
     
  19. In the the better loot config (Betterloot.json), scroll down to air drops and change "useCustomTableSupply": false" to "useCustomTableSupply": true
     
  20. Thank you for the information. I already have the useCustomTableSupply set to true. Here is my .json:
    Code:
    {
      "Barrel": {
        "barrelTypes": "loot-barrel|loot_barrel|loot_trash",
        "enableBarrels": true,
        "maxItemsPerBarrel": 3,
        "minItemsPerBarrel": 1,
        "randomAmountBarrels": true,
        "refreshBarrels": false
      },
      "Crate": {
        "crateTypes": "crate_normal|crate_tools",
        "enableCrates": true,
        "maxItemsPerCrate": 6,
        "minItemsPerCrate": 3,
        "randomAmountCrates": true,
        "refreshCrates": true
      },
      "Generic": {
        "dropWeaponsWithAmmo": true,
        "enableScrapSpawn": true,
        "enforceBlacklist": false,
        "listUpdatesOnLoaded": true,
        "listUpdatesOnRefresh": false,
        "pluginEnabled": true,
        "refreshMinutes": 30,
        "removeStackedContainers": true,
        "seperateLootTables": true
      },
      "HeliCrate": {
        "includeHeliCrate": false,
        "maxItemsPerHeliCrate": 4,
        "minItemsPerHeliCrate": 2,
        "randomAmountHeliCrate": true,
        "useCustomTableHeli": true
      },
      "Rarity": {
        "Override": {
          "autoturret": 4,
          "lmg.m249": 4,
          "targeting.computer": 3
        }
      },
      "SupplyDrop": {
        "includeSupplyDrop": false,
        "maxItemsPerSupplyDrop": 8,
        "minItemsPerSupplyDrop": 3,
        "randomAmountSupplyDrop": true,
        "useCustomTableSupply": true
      }
    }