Support for new hooks

It appears the new hooks OnCargoSignaled is causing issues with the drops. No loot appears in the supply drop when its called in. 

I will investigate and check it out.

Apologies, I listed the hook incorrectly. Its OnCargoPlaneSignaled. And Thank you for the prompt response!!!

Merged post

Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: GunRoll_Sub_Medium)

at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <fb001e01371b4adca20013e0ac763896>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000c1] in <818967ed3ecf41d3a59735f33856f0ae>:0

at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <818967ed3ecf41d3a59735f33856f0ae>:0

at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <818967ed3ecf41d3a59735f33856f0ae>:0

at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <818967ed3ecf41d3a59735f33856f0ae>:0

at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

This is the error that was given.



Merged post

Please disregard this post.

I have no clue how this happened, but the Data file containing the loot tables got wiped. It appears that was the issue the whole time. I have no idea how that happened. I know for a fact it was not touched on wipe. 

In the documents, under special notes. You can copy and paste that into the data file

Hi,

I have also just installed this plugin on a fresh install and its giving the same error, what exactly needs copy pasting into the data file?

XtnQUlP8G6gXMIx.jpg moonman52

Hi,

I have also just installed this plugin on a fresh install and its giving the same error, what exactly needs copy pasting into the data file?

See the special notes area in the description.

Hi,

i updated the data file but i just get nothing in  the airdrops and i'm using betterloot how can i fix this?

RustyNutz20

Hi,

i updated the data file but i just get nothing in  the airdrops and i'm using betterloot how can i fix this?

Just tested with 12 supply signals , got between (config'ed) 2-4 pods with 8-18 items in each one , always have a small problem with massdrops with a few "light" containers with smaller loot amount but otherwise all ok. I use Betterloot with airdrop enabled .
Betterloot example

"assets/prefabs/misc/supply drop/supply_drop.prefab": {
      "Enabled": true,
      "ItemList": {
        "ammo.grenadelauncher.buckshot": {
          "Max": 20,
          "Min": 5
        },
        "ammo.grenadelauncher.he": {
          "Max": 20,
          "Min": 5
        },
        "ammo.grenadelauncher.smoke": {
          "Max": 20,
          "Min": 5
        },
        "ammo.pistol": {
          "Max": 15,
          "Min": 15
        },
        "ammo.rifle": {
          "Max": 120,
          "Min": 50
        },
        "ammo.rifle.explosive": {
          "Max": 80,
          "Min": 8
        },
        "ammo.rifle.hv": {
          "Max": 100,
          "Min": 50
        },
        "ammo.rifle.incendiary": {
          "Max": 80,
          "Min": 20
        },
        "ammo.rocket.basic": {
          "Max": 4,
          "Min": 2
        },
        "ammo.rocket.fire": {
          "Max": 4,
          "Min": 2
        },
        "ammo.rocket.hv": {
          "Max": 4,
          "Min": 2
        },
        "ammo.rocket.sam": {
          "Max": 4,
          "Min": 2
        },
        "ammo.rocket.smoke": {
          "Max": 4,
          "Min": 2
        },
        "ammo.shotgun": {
          "Max": 16,
          "Min": 6
        },
        "ammo.shotgun.fire": {
          "Max": 18,
          "Min": 4
        },
        "ammo.shotgun.slug": {
          "Max": 14,
          "Min": 4
        },
        "autoturret": {
          "Max": 1,
          "Min": 1
        },
        "computerstation": {
          "Max": 1,
          "Min": 1
        },
        "crossbow": {
          "Max": 1,
          "Min": 1
        },
        "diving.fins": {
          "Max": 1,
          "Min": 1
        },
        "diving.mask": {
          "Max": 1,
          "Min": 1
        },
        "electric.generator.small": {
          "Max": 1,
          "Min": 1
        },
        "explosive.timed": {
          "Max": 1,
          "Min": 1
        },
        "flamethrower": {
          "Max": 1,
          "Min": 1
        },
        "flameturret": {
          "Max": 1,
          "Min": 1
        },
        "hazmatsuit_scientist": {
          "Max": 1,
          "Min": 1
        },
        "Jackhammer": {
          "Max": 1,
          "Min": 1
        },
        "keycard_blue": {
          "Max": 1,
          "Min": 1
        },
        "keycard_red": {
          "Max": 1,
          "Min": 1
        },
        "lmg.m249": {
          "Max": 1,
          "Min": 1
        },
        "multiplegrenadelauncher": {
          "Max": 1,
          "Min": 1
        },
        "pistol.m92": {
          "Max": 1,
          "Min": 1
        },
        "pistol.nailgun": {
          "Max": 1,
          "Min": 1
        },
        "pistol.revolver": {
          "Max": 1,
          "Min": 1
        },
        "rifle.ak": {
          "Max": 1,
          "Min": 1
        },
        "rifle.bolt": {
          "Max": 1,
          "Min": 1
        },
        "rifle.l96": {
          "Max": 1,
          "Min": 1
        },
        "rifle.lr300": {
          "Max": 1,
          "Min": 1
        },
        "rifle.semiauto": {
          "Max": 1,
          "Min": 1
        },
        "salvaged.cleaver": {
          "Max": 1,
          "Min": 1
        },
        "shotgun.double": {
          "Max": 1,
          "Min": 1
        },
        "smg.2": {
          "Max": 1,
          "Min": 1
        },
        "smg.mp5": {
          "Max": 1,
          "Min": 1
        },
        "supply.signal": {
          "Max": 1,
          "Min": 1
        },
        "tactical.gloves": {
          "Max": 1,
          "Min": 1
        },
        "targeting.computer": {
          "Max": 1,
          "Min": 1
        },
        "techparts": {
          "Max": 20,
          "Min": 5
        },
        "trap.landmine": {
          "Max": 3,
          "Min": 3
        },
        "weapon.mod.8x.scope": {
          "Max": 1,
          "Min": 1
        },
        "weapon.mod.flashlight": {
          "Max": 1,
          "Min": 1
        },
        "weapon.mod.silencer": {
          "Max": 1,
          "Min": 1
        },
        "weapon.mod.simplesight": {
          "Max": 1,
          "Min": 1
        },
        "wood.armor.jacket": {
          "Max": 1,
          "Min": 1
        }
      },
      "ItemsMax": 18,
      "ItemsMin": 12,
      "MaxBPs": 3,
      "Scrap": 20
    },



Fancydrop supply signal config example

 },
      "supplysignal": {
        "additionalheight": 0,
        "crateAirResistance": 1.0,
        "cratesGap": 15,
        "despawnMinutes": 30,
        "fireSignalRocket": false,
        "includeStaticItemList": false,
        "includeStaticItemListName": "supplysignal",
        "includeStaticItemListOnly": false,
        "itemDivider": 2,
        "maxCrates": 4,
        "maxItems": 18,
        "minCrates": 2,
        "minItems": 8,
        "planeSpeed": 75,
        "useCustomLootTable": false
      }



*you unloaded the data file before editing ? and then saved and reloaded it ?