1. console gave no errors.

    i will reinstall the plugin and give a feedback later with screenshots
     
  2. Works perfect for me! Big thanks for this one. The only thing i miss is to be able to change how often the airdrop should come. Ex every 20 min.

    But yeah, its really good as it is now too!:)
     
  3. does this plugin only work for airdrops with supply signal or also with the regular random drops? it seems that it doesn't work for the random drops because there are somehow other items! any help? TIA
     
  4. It works for any airdrop since the plugin is used when the supply drop is created.
     
  5. well i have a strange problem, i installed the plugin and replaced the json with this file
    Code:
    {
      "drop_config": {
        "limit_airdrops": false,
        "limit_count": 3
      },
      "loot_list": {
        "capacity": 9,
        "fill_capacity": true,
        "list": [
          {
            "name": "resource",
            "count": 9,
            "blueprint": false,
            "items_list": [
              {
                "name": "cloth",
                "chance": 40,
                "min_amount": 100,
                "max_amount": 500
              },
              {
                "name": "fat_animal",
                "chance": 35,
                "min_amount": 100,
                "max_amount": 500
              },
              {
                "name": "gunpowder",
                "chance": 30,
                "min_amount": 100,
                "max_amount": 500
              },
              {
                "name": "metal_fragments",
                "chance": 15,
                "min_amount": 100,
                "max_amount": 300
              },
              {
                "name": "wood",
                "chance": 35,
                "min_amount": 200,
                "max_amount": 1000
              },
              {
                "name": "lowgradefuel",
                "chance": 30,
                "min_amount": 100,
                "max_amount": 300
              },
              {
                "name": "stones",
                "chance": 30,
                "min_amount": 500,
                "max_amount": 3000
              },
              {
                "name": "largemedkit",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 2
              },
              {
                "name": "sulfur_ore",
                "chance": 30,
                "min_amount": 200,
                "max_amount": 1000
              },
              {
                "name": "box_wooden_large",
                "chance": 10,
                "min_amount": 1,
                "max_amount": 1
              },
              {
                "name": "hazmat_helmet",
                "chance": 15,
                "min_amount": 1,
                "max_amount": 2
              },
              {
                "name": "syringe_medical",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 2
              },
              {
                "name": "jacket_snow",
                "chance": 10,
                "min_amount": 1,
                "max_amount": 1
              },
              {
                "name": "longsleeve_tshirt_blue",
                "chance": 10,
                "min_amount": 1,
                "max_amount": 1
              }
              {
                "name": "wolfmeat_cooked",
                "chance": 20,
                "min_amount": 15,
                "max_amount": 50
              }        ]
          }
        ]
      }
    }
    but i always get some weapons (always the same)... what did i wrong?
     
  6. There is a error in your config file:

    Code:
    },
              {
                "name": "longsleeve_tshirt_blue",
                "chance": 10,
                "min_amount": 1,
                "max_amount": 1
              },
              {
                "name": "wolfmeat_cooked",
                "chance": 20,
                "min_amount": 15,
                "max_amount": 50
              }
    This causes the file not to be loaded and it uses the default config.
     
  7. oh ups! yep now it works! ty!
     
  8. Does anyone else notice empty crates ? its often 1 out of 3 but not 100% reproducible
     
  9. Yep, here's a loot table I've been messing with and we experience an average of 3-4 empty crates per every 10 Supply Signals. We are running BetterLoot in parallel with this however I don't think that's the cause this needs to be investigated, until then I have to disable it.

    Here's my config:

    Code:
    {
      "drop_config": {
        "limit_airdrops": false,
        "limit_count": 3
      },
      "loot_list": {
        "capacity": 5,
        "fill_capacity": true,
        "list": [
          {
            "name": "Weapons",
            "count": 1,
            "blueprint": false,
            "items_list": [
              {
                "name": "salvaged_sword",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "machete",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "pistol_semiauto",
                "chance": 35,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "rifle_ak",
                "chance": 50,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "rifle_bolt",
                "chance": 45,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "rocket_launcher",
                "chance": 25,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "shotgun_pump",
                "chance": 34,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "smg_thompson",
                "chance": 38,
                "min_amount": 1,
                "max_amount": 1
              },
              {
                "name": "smg_2",
                "chance": 39,
                "min_amount": 1,
                "max_amount": 1
              }
            ]
          },
         {
            "name": "Ammo",
            "count": 1,
            "blueprint": false,
            "items_list": [
              {
                "name": "ammo_pistol_fire",
                "chance": 30,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_pistol_hv",
                "chance": 35,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_pistol",
                "chance": 40,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_rifle_explosive",
                "chance": 31,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_rifle_incendiary",
                "chance": 36,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_rifle_hv",
                "chance": 46,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_rifle",
                "chance": 50,
                "min_amount": 80,
                "max_amount": 250
              },
             {
                "name": "ammo_rocket_basic",
                "chance": 29,
                "min_amount": 1,
                "max_amount": 3
              },
             {
                "name": "ammo_rocket_fire",
                "chance": 26,
                "min_amount": 1,
                "max_amount": 3
              },
             {
                "name": "ammo_rocket_hv",
                "chance": 23,
                "min_amount": 1,
                "max_amount": 3
              },
             {
                "name": "ammo_shotgun",
                "chance": 39,
                "min_amount": 80,
                "max_amount": 250
              },
              {
                "name": "ammo_shotgun_slug",
                "chance": 34,
                "min_amount": 80,
                "max_amount": 250
              }
            ]
          },
         {
            "name": "Explosives",
            "count": 1,
            "blueprint": false,
            "items_list": [
             {
                "name": "eplosive.timed",
                "chance": 15,
                "min_amount": 2,
                "max_amount": 5
              },
             {
                "name": "grenade.f1",
                "chance": 30,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "explosives",
                "chance": 15,
                "min_amount": 1,
                "max_amount": 50
              }
            ]
          },
         {
            "name": "Medical Supplies",
            "count": 1,
            "blueprint": false,
            "items_list": [
             {
                "name": "largemedkit",
                "chance": 24,
                "min_amount": 1,
                "max_amount": 5
              },
              {
                "name": "syringe_medical",
                "chance": 23,
                "min_amount": 1,
                "max_amount": 5
              }
            ]
          },
         {
            "name": "Clothes/Armor",
            "count": 1,
            "blueprint": false,
            "items_list": [
             {
                "name": "metal_facemask",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 1
              },
             {
                "name": "metal_plate_torso",
                "chance": 20,
                "min_amount": 1,
                "max_amount": 1
              },
            ]
          },
          {
            "name": "Special",
            "count": 1,
            "blueprint": false,
            "items_list": [
              {
                "name": "supply_signal",
                "chance": 25,
                "min_amount": 1,
                "max_amount": 1
              }
            ]
          }
        ]
      }
    }
    
     
  10. I'll see what i can do to fix this, even tho it never happened to me.
     
  11. Are you using BetterLoot? Maybe try my config that I posted and see if it happens to you?
     
  12. I'm using BetterLoot, but i don't use this plugin ( i only wrote it because someone requested ), yet when i tested it before releasing it was working without any bugs or errors. I'll try with that config file and see what happens.
     
  13. I had a item short name spelled wrong, so whenever the Supply Drop would try to "find" that item it would return a blank crate I got it all fixed now, it was just user error. Great plugin, works wonders! :D
     
  14. Thanks Evano, saved me hours of debugging :p
     
  15. Yeah hehe, I figured it would. I didn't want you chasing down invisible problems.

    Brinks, maybe post your config and I'll see why you're getting empty crates, I had some issues with my config.
     
  16. I have also noticed now that sometimes it will be empty. Have been looking thru my whole config but don't see any problems. Works around 90% of the time but then it a few times ends up with a empty airdrop.
     
  17. Post your config, you can never be too sure. My problem was over looked be me and my staff several times.
     
  18. WolfsDarker updated SupplyDropController with a new update entry:

    Fix for empty crates!

     
  19. Calytic

    Calytic Community Admin Community Mod

    WolfsDarker, I've been tooling around with your plugin. It is very nice btw.

    I changed 2 things about it and eliminated most of the disappearing items.

    Firstly, when I create the item, I create only 1.

    Then I check that the loot.max_amount is less than or equal to the definition.stackable. If it is greater, I change the loot.max_amount to definition.stackable.

    Also I check to see if the item that was created is not null, if it is I skip it and try again.

    Here, is the code:

    Code:
    count = loot_config.fill_capacity ? type.count : rand.Next(0, type.count);
                        for (int i = 0; i < count; i++)
                        {
                            while (!added)
                            {
                                loot = type.items_list[rand.Next(0, type.items_list.Count)];
                                if (loot.chance > 0 && rand.Next(1, 100) <= loot.chance)
                                {
                                    item = ItemManager.CreateByName(loot.name, 1);                                if (item is Item)
                                    {
                                        if (loot.max_amount > item.info.stackable)
                                        {
                                            loot.max_amount = item.info.stackable;
                                        }                                    item.amount = rand.Next(loot.min_amount, loot.max_amount);
                                        item.isBlueprint = Convert.ToBoolean(type.blueprint);
                                        items.Add(item);
                                        added = true;
                                    }
                                }
                            }
                            if (items.Count == loot_config.capacity)
                            {
                                break;
                            }
                            added = false;
                        }
    
    I haven't had a chance to look at your update, I'll check it out when I get home.
     
  20. That looks nice, I'll check my plugin for possible improvements, thanks.