Getting error "An element with the same key already exists in the dictionary."

Started by kunyomi, December 30, 2016, 06:05:56 PM

Previous topic - Next topic

kunyomi

From the output log:

Exception registering Psychology.PsychologyPawn Hiroko in loaded object directory with unique load ID Thing_Human1494: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Exception registering RimWorld.Verb_MeleeAttack [excepted] in loaded object directory with unique load ID Verb_207332: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Exception registering RimWorld.Verb_MeleeAttack [excepted] in loaded object directory with unique load ID Verb_207333: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Exception registering RimWorld.Verb_BeatFire RimWorld.Verb_BeatFire(Beat fire) in loaded object directory with unique load ID Verb_304: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Exception registering RimWorld.Verb_Ignite RimWorld.Verb_Ignite(Ignite) in loaded object directory with unique load ID Verb_305: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Exception registering Verse.ThingWithComps MealFine70584 in loaded object directory with unique load ID Thing_MealFine70584: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,Verse.ILoadReferenceable].Add (System.String key, ILoadReferenceable value) [0x00000] in <filename unknown>:0
  at Verse.LoadedObjectDirectory.RegisterLoaded (ILoadReferenceable reffable) [0x00000] in <filename unknown>:0

This repeats about another 100 times, and it shows up when I try to load or save my file, causing a very big delay but it does finish saving/loading eventually.
That said...it's kind of annoying having to wait 5 minutes for an autosave to finish, so can anyone help me find out what is the issue here?

Edit: Added attachment

[attachment deleted by admin due to age]

Calahan

Can you please post your log file as an attachment. As there might be other pertinent information in the log besides the error you extracted from it.

milon

@OP, in case you're still having trouble, see the link in my signature regarding log files.  :)