Jump to content

The given key was not present in the dictionary

Pending 2.1.3

00:30 [Info] Unloaded plugin BotSpawn v2.1.2 by Steenamaroo
00:30 [Info] Loaded plugin BotSpawn v2.1.3 by Steenamaroo
00:31 [Error] Failed to run a 0.01 timer in 'BotSpawn v2.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.BotSpawn.CanRespawn (System.String name, System.Int32 amount, System.Boolean second) [0x00000] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>c__AnonStorey0.<>m__0 () [0x0018c] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
00:31 [Error] Failed to run a 0.01 timer in 'BotSpawn v2.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.BotSpawn.CanRespawn (System.String name, System.Int32 amount, System.Boolean second) [0x00000] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>c__AnonStorey0.<>m__0 () [0x0018c] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
00:31 [Error] Failed to run a 0.01 timer in 'BotSpawn v2.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.BotSpawn.CanRespawn (System.String name, System.Int32 amount, System.Boolean second) [0x00000] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>c__AnonStorey0.<>m__0 () [0x0018c] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
00:31 [Error] Failed to run a 0.01 timer in 'BotSpawn v2.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.BotSpawn.CanRespawn (System.String name, System.Int32 amount, System.Boolean second) [0x00000] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>c__AnonStorey0.<>m__0 () [0x0018c] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
00:32 [Error] Failed to call hook 'OnPlayerDeath' on plugin 'BotSpawn v2.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.BotSpawn.CanRespawn (System.String name, System.Int32 amount, System.Boolean second) [0x00000] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn.OnEntityKill (NPCPlayerApex npc, HitInfo info) [0x00421] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn.OnPlayerDeath (BasePlayer player, HitInfo info) [0x00048] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0095c] in <0194e8f98cde43ac84a9819424cb4ab4>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

 

Edited by MON@H

Share this comment


Link to comment

I'm getting a similar error with 2.1.4

Failed to run a 1.00 timer in 'BotSpawn v2.1.4' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0

at Oxide.Plugins.BotSpawn.AddProfile (System.String name, Oxide.Plugins.BotSpawn+ConfigProfile monument, UnityEngine.Vector3 pos) [0x001a7] in <e4ff697bef80413dbe12b7a661ab50d5>:0

at Oxide.Plugins.BotSpawn.CheckMonuments (System.Boolean add) [0x0017b] in <e4ff697bef80413dbe12b7a661ab50d5>:0

at Oxide.Plugins.BotSpawn.SetupProfiles () [0x00000] in <e4ff697bef80413dbe12b7a661ab50d5>:0

at Oxide.Plugins.BotSpawn.<OnServerInitialized>m__0 () [0x001be] in <e4ff697bef80413dbe12b7a661ab50d5>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

 

Edited by Sasquire

Share this comment


Link to comment

Found the issue for me (putting it here in case others get the same fault).

I had added some new profiles which didn't have the necessary 'parent_monument'. Without this, I got the above error. So this was completely my fault.
In all fairness, my custom profile config is over a 1MB in size at times (and my kits config is over 56MB) so I'm really stressing these mods to the limit 😛

Appreciate your work Steenamroo.

Share this comment


Link to comment

Hi,

Thanks for the info.
No, Parent_Monument isn't (shouldn't be...) required - This is a bug that I'll fix.

Got a few small things to fix so I'll most likely update some time today.

Share this comment


Link to comment

Think I've figured it out. If you removed the ParentMonument record so it just equals "" and then remove it's MigrationData, you'll get this error. So again, my fault. I'm using my own program to create the configs daily, and slipped up in situations where on a new map, certain monuments no longer appear. And it was was trying to add the old monuments but as they no longer exist, was leaving their parentmonument and migrationdata empty. And then BAM, that error appears.

You should have a noedit not or something for the migration data 😉

*holds head in shame*

Share this comment


Link to comment

Ah, yeah. Don't remove MigrationData.
I think the title of it literally says "DoNotEdit", no? 😛

Setting Parent_Monument to "" should have no adverse effects, though, other than existing custom spawn points being automatically removed.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.