Jump to content

ArgumentException: item with same key exists: exclude

Closed 1.3.8 1.4.1

I keep getting this error posted below (include and exclude) and I've been trying for weeks to fix it. I currently have to manually remove the ngpve_zonemaps.json file each time my server restarts (as per this post https://codefling.com/files/sc/561-failed-to-call-hook-addorupdatemapping/) in order for NextGenPVE to work with DynamicPVP. I'm looking for a fix that I don't have to manually do each time my server restarts because I can't ALWAYS be there to fix it 😕. Is there maybe a way to prevent the file from being created at all or can I rename "include" and "exclude" in the code/json files somewhere? I tried searching the code and json files and replacing all uses of the terms "include" and "exclude" but it broke the program (maybe that was user error). I'm also open to a DynamicPVP alternative that works better. I know I can use ZoneManagerAutoZones, but that doesn't include Cargoship ,Helicrash, Airdrops, etc.

TruePVE has no GUI and was fundamentally broken so I really want to get NextGenPVE to work. Other server owners and I were experiencing issues that TruePVE randomly stops working properly despite all settings being set correctly and you have to completely reinstall the plugin to get it to work again so obviously NextGenPVE is the better solution. If I can just fix this one issue, everything will be smooth.

I've practically been trying to learn C# over this and I'm in over my head at this point lol Any help would be very much appreciated, and I will donate soon as a thanks for all the work towards NextGenPve when I get this all figured out. Especially for all your work on the purge. My friendly server 7 years ago was the first server to have a purge and it makes me so happy that plug-in developers and other server owners have truly brought the Purge and PVE servers in general to life in ways that never existed, so thank you! I'm proud to have a small impact in the community and very grateful to people like you who make it happen and do the most and hardest work.

Discord: Singularity#7759


 Failed to call hook 'AddOrUpdateMapping' on plugin 'NextGenPVE v1.3.7' (ArgumentException: An item with the same key has already been added. Key: exclude)
  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.NextGenPVE.AddOrUpdateMapping (System.String key, System.String rulesetname) [0x0010b] in <1d8aaddb567a404c917e00e11dc8c40b>:0 
  at Oxide.Plugins.NextGenPVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01c13] in <1d8aaddb567a404c917e00e11dc8c40b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0


Share this comment

Link to comment

yeah that is odd nobody's mentioned it because I know a lot of admins struggle to get Zones working at dynamic events. many servers I know seem to settle with PVP domes only at Static monument using ZoneManagerAutoZones and not at dynamic events, but some do get it working too. Maybe there's something simple I'm not catching 

Share this comment

Link to comment


Total number of downloads.



Total customers served.


Files Sold

Total number of files sold.


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.