ArgumentException at ExportLootSpawnSolved
5d35f1495da0a.jpg FastBurst
Updated the documentation and the Data File contents for everyone to copy if for some reason, (not sure why since that section of the code hasn't changed in over a year or more) to fix that error some of you were experiencing. See Special Notes in the documentation.

Merged post

@LoneWolfAU - Yeah I just updated the documentation, Not sure why some of you - it's not creating the file like it should. It does for me no issues. But I added a special note for those who are experiencing that issue. That section of the code has not even changed in over a year or more. Again almost impossible for me to troubleshoot if I myself cannot reproduce the issue on over 45 servers that I own and run. And they are all setup entirely different on purpose for things just like this - again wasn't able to reproduce, but at least we figured out what it was and how to fix it.

Cheers mate, I appreciate it :) Love this plugin and was totally bummed out that I couldn't use it 

(17:04:03) | Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: GunRoll_Sub_Medium)
at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <fb001e01371b4adca20013e0ac763896>:0
at System.Collections.Generic.Dictionary2[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 <dacff43cfc70487aab819cb2a0c4c9ee>:0
at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <dacff43cfc70487aab819cb2a0c4c9ee>:0
at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <dacff43cfc70487aab819cb2a0c4c9ee>:0
at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <dacff43cfc70487aab819cb2a0c4c9ee>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0

we also use alpha loot and its not loading our alpha loot profile or the plugins custom loot table its loading the default vanilla loot.

@FastBurst

(17:13:55) | [AlphaLoot] Repopulating loot for 477 containers
(17:13:55) | Unloaded plugin AlphaLoot v3.1.3 by k1lly0u
(17:13:55) | [AlphaLoot] Loading Loot Table from default_loottable.json!
(17:13:55) | [AlphaLoot] Loading Heli Loot Table from default_heli_loottable.json!
(17:13:55) | [AlphaLoot] Loading Bradley Loot Table from default_bradley_loottable.json!
(17:13:56) | [AlphaLoot] Loaded 49 loot container definitions and 19 npc loot definitions
(17:13:56) | [AlphaLoot] Loaded 1 heli loot profiles
(17:13:56) | [AlphaLoot] Loaded 1 bradley loot profiles
(17:13:56) | [AlphaLoot] Repopulating loot for 477 containers
(17:13:56) | Calling 'OnServerInitialized' on 'AlphaLoot v3.1.3' took 228ms
(17:13:56) | Loaded plugin AlphaLoot v3.1.3 by k1lly0u

we did edit the default tables as well fyi to note we just saved them same name but the tables are configured

Randomly started getting the error 

(16:52:14) | 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 <0a43370c4df742bc842166bf1c22a392>:0 
  at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <0a43370c4df742bc842166bf1c22a392>:0 
  at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <0a43370c4df742bc842166bf1c22a392>:0 
  at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <0a43370c4df742bc842166bf1c22a392>:0 
  at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0​
Loaded plugin FancyDrop v2.9.2 by FastBurst
Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: GunRoll_Sub_Medium)
at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <fb001e01371b4adca20013e0ac763896>:0 17kb/s in, 66kb/s out
at System.Collections.Generic.Dictionary2[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 <79347c5eb6824d78af3e6616a4e36c1a>:0
at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <79347c5eb6824d78af3e6616a4e36c1a>:0
at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <79347c5eb6824d78af3e6616a4e36c1a>:0
at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <79347c5eb6824d78af3e6616a4e36c1a>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0
See documentation at the bottom regarding the special note.
Will doing that have any effect on people using alpha loot?
browney
Will doing that have any effect on people using alpha loot?
It shouldn't. I am unable to test to confirm as I do not own Alpha Loot.
(01:16:07) | Loaded plugin FancyDrop v2.9.2 by FastBurst
(01:16:07) | 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 <9842ade6f35b49b78417a1dcb16e9680>:0
at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <9842ade6f35b49b78417a1dcb16e9680>:0
at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <9842ade6f35b49b78417a1dcb16e9680>:0
at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <9842ade6f35b49b78417a1dcb16e9680>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0
I used a backup of the "FancyDrop" data folder and it worked no probs. If anyone needs a copy, let me know ill dropbox a link if thats allowed, or paste it back here. #Wulf  #Fastburst
5e3ceb77f2f3b.png switchy
I used a backup of the "FancyDrop" data folder and it worked no probs. If anyone needs a copy, let me know ill dropbox a link if thats allowed, or paste it back here. #Wulf  #Fastburst

It's also in the documentation at the bottom regarding special note with a copy there too

nvm lol

Hey,

I get the following error when I load plugin what should I do to fix it ?

https://prnt.sc/x8l5b2

Thanks,

See the documentation at the very bottom where it says Special Note: you will need to copy the contents provided and save them as a datafile to your data folder per the instructions.

Anyone know what this error below is?

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 <368a1e4af80d4c6383f2a1631c090376>:0
at Oxide.Plugins.FancyDrop.ExportLootSpawn (Oxide.Plugins.FancyDrop+ExportData expData, LootSpawn lootSpawn, System.Int32 level) [0x000ce] in <368a1e4af80d4c6383f2a1631c090376>:0
at Oxide.Plugins.FancyDrop.SetupLoot () [0x000a7] in <368a1e4af80d4c6383f2a1631c090376>:0
at Oxide.Plugins.FancyDrop.<OnServerInitialized>m__0 () [0x00000] in <368a1e4af80d4c6383f2a1631c090376>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0
Locked automatically