Error with Load button, ArgumentException: item with same key already added

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
BardoFlyhm
Posts: 1
Joined: Wed Feb 01, 2023 1:02 am

Error with Load button, ArgumentException: item with same key already added

Post by BardoFlyhm »

I'll attach my player log file. You'll see the error at the bottom from when I tried spamming the Load button.
Full issue: Every mod seems to be working correctly, aside from some UI related (?) error. I installed this collection https://next.nexusmods.com/daggerfallun ... ons/skct9b through Vortex. When some mods didn't work and I found it too messy to figure out, I installed a fresh daggerfall/gamefiles and installed each mod manually. Now each mod seems functional, no conflict messages from the in-game manager. However, saves can't be loaded, seemingly by any means, loading from the menu button, nor does quickload hotkey work.
I'll attach my save file (which is a fresh new test game with all the hopeful mods enabled) and the player log, hopefully this turns something up. Thanks to everyone involved in this game, the unity build and all the mods out there!
Also, if I'm missing something obvious, I'm sorry. I've been at this for a couple of days and I'm pretty exhausted by it.
Edit: the second save is a quicksave. Figured I may as well include it.
Attachments
BardoDFUSaves.7z
(372.95 KiB) Downloaded 90 times

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Error with Load button, ArgumentException: item with same key already added

Post by Jay_H »

Hello and welcome! :) Unfortunately, we can't offer much help when it comes to modded saves; this section is for unmodded Daggerfall. The usual approach is to restart the game with no mods on and see if the problem still happens, tben go re-enabling mods slowly until the problem happens again. Once you know what mod is causing it, you can contact the mod author about the problem.

User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Error with Load button, ArgumentException: item with same key already added

Post by pango »

BardoFlyhm wrote: Wed Feb 01, 2023 1:17 am Now each mod seems functional, no conflict messages from the in-game manager.
Doesn't seem to conclusive then, because they're several exceptions happening while mods are loading

Code: Select all

ModManager - started loading mod: Critical Hits 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Critical Hits 0.2] <b>Compilation Error CS1501</b>: No overload for method `InflictPoison' takes `3' arguments
	at line#236 column#35 "                    FormulaHelper.InflictPoison(target, weapon.poisonType, false);"
<b>Compilation Error </b>: 0(60,27): CriticalHits.CriticalHits.CalculateAttackDamage(DaggerfallWorkshop.Game.Entity.DaggerfallEntity, DaggerfallWorkshop.Game.Entity.DaggerfallEntity, bool, int, DaggerfallWorkshop.Game.Items.DaggerfallUnityItem)
	at line#0 column#0 

Code: Select all

ModManager - started loading mod: PhysicalCombatAndArmorOverhaul 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[PhysicalCombatAndArmorOverhaul 1.30] <b>Compilation Error CS246</b>: The type or namespace name `ShieldModule' could not be found. Are you missing an assembly reference?
	at line#25 column#7 "using ShieldModule;"
<b>Compilation Error </b>: Object reference not set to an instance of an object
	at line#0 column#0 

Code: Select all

ModManager - started loading mod: Realtime Reflections 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Realtime Reflections 2.3.2] <b>Compilation Error CS234</b>: The type or namespace name `PostProcessing' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
	at line#10 column#19 "using UnityEngine.PostProcessing;"
<b>Compilation Error </b>: Object reference not set to an instance of an object
at line#0 column#0

Code: Select all

 ModManager - started loading mod: Shield Module 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Shield Module 4.3] <b>Compilation Error CS1501</b>: No overload for method `WeaponDamage' takes `5' arguments
	at line#559 column#64 "                        if (GameManager.Instance.WeaponManager.WeaponDamage(weapon, false, hit.transform, hit.point, mainCamera.transform.forward))"
<b>Compilation Error </b>: 2(523,21): ShieldModule.AmbidexterityManager.AttackCast(DaggerfallWorkshop.Game.Items.DaggerfallUnityItem, UnityEngine.Vector3, out UnityEngine.GameObject)
at line#0 column#0

Code: Select all

ModManager - started loading mod: Tanguy's multiplayer 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tanguy's multiplayer 0.1] <b>Compilation Error CS1525</b>: Unexpected symbol `}', expecting `('
	at line#54 column#12 "            };"
<b>Compilation Error </b>: Unexpected symbol `}', expecting `('
	at line#0 column#0 
Then at runtime

Code: Select all

	   ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at System.Reflection.Emit.AssemblyBuilder.GetTypes (System.Boolean exportedOnly) [0x0012d] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.Assembly.GetTypes () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at FullSerializer.Internal.fsTypeCache.TryIndirectTypeLookup (System.String typeName, System.Type& type) [0x00057] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.Internal.fsTypeCache.GetType (System.String name, System.String assemblyHint) [0x00045] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.Internal.fsTypeCache.GetType (System.String name) [0x00001] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00075] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00157] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x0004f] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00048] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00001] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize[T] (FullSerializer.fsData data, T& instance) [0x0000d] in <a107f38fe7324fcc823883355b44eb98>:0 
  at DaggerfallWorkshop.Utility.KeyedCollectionConverter`3[T,T1,T2].TryDeserialize (FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x0002a] in <173b5088bd2041d4b028be1f9578885c>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00027] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00038] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00161] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00157] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x0004f] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00048] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.Internal.fsReflectedConverter.TryDeserialize (FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x000ba] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00027] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00038] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00161] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00157] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x0004f] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00048] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00001] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize[T] (FullSerializer.fsData data, T& instance) [0x0000d] in <a107f38fe7324fcc823883355b44eb98>:0 
  at DaggerfallWorkshop.Utility.KeyedCollectionConverter`3[T,T1,T2].TryDeserialize (FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x0002a] in <173b5088bd2041d4b028be1f9578885c>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00027] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00038] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00161] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00157] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x0004f] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00048] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.Internal.fsReflectedConverter.TryDeserialize (FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x000ba] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00027] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00038] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00161] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x00157] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[FullSerializer.fsObjectProcessor]& processors) [0x0004f] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00048] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize (FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00001] in <a107f38fe7324fcc823883355b44eb98>:0 
  at FullSerializer.fsSerializer.TryDeserialize[T] (FullSerializer.fsData data, T& instance) [0x0000d] in <a107f38fe7324fcc823883355b44eb98>:0 
  at DaggerfallWorkshop.Game.Utility.ModSupport.ModSettings.ModSettingsData.TryDeserialize[T] (DaggerfallWorkshop.Game.Utility.ModSupport.Mod mod, System.String assetName, T& instance) [0x00019] in <173b5088bd2041d4b028be1f9578885c>:0 
  at DaggerfallWorkshop.Game.Utility.ModSupport.ModSettings.ModSettingsData.Make (DaggerfallWorkshop.Game.Utility.ModSupport.Mod mod) [0x0000f] in <173b5088bd2041d4b028be1f9578885c>:0 
  at DaggerfallWorkshop.Game.Utility.ModSupport.ModSettings.ModSettings..ctor (DaggerfallWorkshop.Game.Utility.ModSupport.Mod mod) [0x00030] in <173b5088bd2041d4b028be1f9578885c>:0 
  at DaggerfallWorkshop.Game.Utility.ModSupport.Mod.GetSettings () [0x00000] in <173b5088bd2041d4b028be1f9578885c>:0 
  at DarkerDungeons.DarkerDungeons.Awake () [0x00000] in <2c2bef90520c4415ba9176e70bb5b435>:0 
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
UnityEngine.GameObject:AddComponent()
DarkerDungeons.DarkerDungeons:Init(InitParams)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
DaggerfallWorkshop.Game.Utility.ModSupport.ModManager:InvokeModLoaders(StateTypes)
DaggerfallWorkshop.Game.Utility.ModSupport.ModManager:StateManager_OnStateChange(StateTypes)
DaggerfallWorkshop.Game.StateManager:TriggerStateChange(StateTypes)
DaggerfallWorkshop.Game.StateManager:ChangeState(StateTypes)
DaggerfallWorkshop.Game.StateManager:.ctor(StateTypes)
DaggerfallWorkshop.Game.GameManager:get_StateManager()
DaggerfallWorkshop.Game.Automap:Update()
 
(Filename: <eae584ce26bc40229c1b1aa476bfa589> Line: 0)
Also, since the recommended way to upgrade Daggerfall Unity is to install the new version under a new directory, putting classic game files under Daggerfall Unity install path is not a good idea

Code: Select all

DFTFU 1.9.1: Setting up content readers with arena2 path 'F:/DFU/DaggerfallUnity_Data/StreamingAssets\GameFiles\arena2'.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply