LaughingLeader / BG3ModManager

A mod manager for Baldur's Gate 3.
MIT License
1.23k stars 190 forks source link

[Bug]: Mod Manager claims all mods are gone after refresh #63

Closed ZiotecH closed 1 year ago

ZiotecH commented 1 year ago

Operating System

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22621 N/A Build 22621

BG3 Mod Manager Version

1.0.9.4

BG3 Game Version

4.1.1.3648072

Bug Summary

Upon refresh and/or restarting the application all mods are missing and any attempt to import them again results in an error claiming an item with the same key already exists.

Attempting to load a save causes a crash.

Image(s)

image

Links

No response

LaughingLeader commented 1 year ago

It looks like you tried to import a zip?

Can you enable the log and restart the program? Settings -> Preferences -> Advanced -> Enable Mod Manager Logs. Then attach the log that appears in the _Logs folder, next to the mod manager exe. Also check that your Mods folder actually has paks in it (the first shortcut in the Shortcuts section at the top).

ZiotecH commented 1 year ago

Log

[MainWindowViewModel.cs:ImportOrderZipFileAsync(3236)] Error extracting package: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at DivinityModManager.ViewModels.MainWindowViewModel.<ImportGenericArchiveAsync>d__428.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DivinityModManager.ViewModels.MainWindowViewModel.<ImportOrderZipFileAsync>d__429.MoveNext()
[MainWindow.xaml.cs:AlertBar_Show(428)] Error extracting archive (check the log): An item with the same key has already been added.
[MainWindowViewModel.cs:OnMainProgressComplete(2954)] Main progress is complete.

Additional notes

All .pak files are still located in [...]\AppData\Local\Larian Studios\Baldur's Gate 3\Mods.

modsettings.lsx now only contains GustavDev, though that is very likely due to user error.

No mods show up in the manager, at all.

Images

image image

LaughingLeader commented 1 year ago

The snippet of a log you posted doesn't really explain why your mod lists would be completely empty, but it's possible you have duplicate mods with the same UUID, so try moving your paks out of the folder, and leave 1 in, to see if it gets detected.

ZiotecH commented 1 year ago

At the time of writing that was the only entry into the log apart from saving settings.json.

Removing mods does not change the behaviour of the application, it's still empty.

I noticed the settings contained incorrect formatting for the paths ("/" instead of "\"), however since Windows generally allows for unix-style paths I doubt that affects anything. Having changed the paths to use backslashes does indeed not fix the issue, so unlikely the cause of the issue.

Log

[MainWindow.xaml.cs:AlertBar_Show(428)] Saved settings to 'C:\Programs\BG3MM\Data\settings.json'.
[MainWindowViewModel.cs:ImportOrderZipFileAsync(3236)] Error extracting package: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at DivinityModManager.ViewModels.MainWindowViewModel.<ImportGenericArchiveAsync>d__428.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DivinityModManager.ViewModels.MainWindowViewModel.<ImportOrderZipFileAsync>d__429.MoveNext()
[MainWindow.xaml.cs:AlertBar_Show(428)] Error extracting archive (check the log): An item with the same key has already been added.
[MainWindowViewModel.cs:OnMainProgressComplete(2954)] Main progress is complete.
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order 'New1'.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:.ctor(4907)] Successfully loaded order New1.
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order 'Current'.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:.ctor(4907)] Successfully loaded order Current.
[MainWindowViewModel.cs:ImportOrderFromFile(3700)] Loading order from 'C:\Programs\BG3MM\Orders\New1.json'.
[MainWindowViewModel.cs:ImportOrderFromFile(3704)] Imported mod order:
ImprovedUI
    BetterMap
    5eSpells
    5eSpellsOriginalOther
    5E_Tweaks
    BagsBagsBags
    BetterHotbar419
    Complete Spell Rebalance
    Scorching Ray and Magic Missile Revert
    Valkrana's Spellbook
    featsextra
    Animate Dead++
    Permanent Undead
    Animate Dead++ Permanent+Corpses Addon
    Warcaster
    NoInspCap
    noRestFindFamiliar
    Eldritch Adept Feat
    FireSurfaceBoost
    True Initiative
    Wildform_Rituals
    Resurrect Anyone
    Ritual Misty Step
    ShortRestTweaks
    MetamagicExtended
    InvisibilityExtended
    NPCs Dont Flee From Summons
    EyesOfTheBeholder
    AbberationEyes
    DruidWildShapeOverhaul
    NoConcentrationDarkness
    NoConcentrationDetectThoughts
    NoConcentrationFog
    Horns of Faerûn
    Tav's Hairpack
    Dice Set Expansion
    JohnZyxx's Galaxy Dice Set
    JohnZyxx's Astral Sea Dice
    Aetherial Sea
[MainWindowViewModel.cs:BuildModOrderList(1773)] Profile order: ImprovedUI;BetterMap;5eSpells;5eSpellsOriginalOther;5E_Tweaks;BagsBagsBags;BetterHotbar419;Complete Spell Rebalance;Scorching Ray and Magic Missile Revert;Valkrana's Spellbook;featsextra;Animate Dead++;Permanent Undead;Animate Dead++ Permanent+Corpses Addon;Warcaster;NoInspCap;noRestFindFamiliar;Eldritch Adept Feat;FireSurfaceBoost;True Initiative;Wildform_Rituals;Resurrect Anyone;Ritual Misty Step;ShortRestTweaks;MetamagicExtended;InvisibilityExtended;NPCs Dont Flee From Summons;EyesOfTheBeholder;AbberationEyes;DruidWildShapeOverhaul;NoConcentrationDarkness;NoConcentrationDetectThoughts;NoConcentrationFog;Horns of Faerûn;Tav's Hairpack;Dice Set Expansion;JohnZyxx's Galaxy Dice Set;JohnZyxx's Astral Sea Dice;Aetherial Sea
[MainWindowViewModel.cs:BuildModOrderList(1788)] Setting next order index to [2/2].
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order ''.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order ''.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:.ctor(4907)] Successfully loaded order .
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order 'New1'.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:.ctor(4907)] Successfully loaded order New1.
[MainWindowViewModel.cs:RefreshAsync(2319)] Refreshing data asynchronously...
[MainWindowViewModel.cs:LoadModsAsync(1609)] GameDataPath is 'C:/SteamLibrary/steamapps/common/Baldurs Gate 3/Data'.
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(DiceSet_01) UUID(e842840a-2449-588c-b0c4-22122cfce31b) Author() Version(36028797018963968)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(DiceSet_02) UUID(b176a0ac-d79f-ed9d-5a87-5c2c80874e10) Author() Version(36028797018963968)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(DiceSet_03) UUID(e0a4d990-7b9b-8fa9-d7c6-04017c6cf5b1) Author() Version(36028797018963968)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(GustavDev) UUID(28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8) Author() Version(144116047072960618)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(Gustav) UUID(991c9c7a-fb80-40cb-8f0d-b92d4e80e9b1) Author() Version(36029301681017806)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(Shared) UUID(ed539163-bb70-431b-96a7-f5b2eda5376b) Author() Version(36029297386049870)
[DivinityModDataLoader.cs:LoadModFromModInfo(2027)] Added base mod: Name(SharedDev) UUID(3d0c5ff8-c95d-c907-ff3e-34b204f1c630) Author() Version(36028797022605430)
[DivinityModDataLoader.cs:LoadBuiltinModsAsync(2067)] Took 0.00 seconds(s) to load builtin mods.
[MainWindowViewModel.cs:LoadModsAsync(1618)] Loading mod projects from 'C:/SteamLibrary/steamapps/common/Baldurs Gate 3/Data\Mods'.
[DivinityModDataLoader.cs:LoadEditorProjectsAsync(391)] Took 0.00 seconds(s) to load editor mods.
[MainWindowViewModel.cs:LoadModsAsync(1648)] Loading mods from 'C:\Users\[redacted]\AppData\Local\Larian Studios\Baldur's Gate 3\Mods'.
[MainWindowViewModel.cs:RunTask(1589)] Error awaiting task:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at DivinityModManager.Util.DivinityModDataLoader.<LoadModPackageDataAsync>d__33.MoveNext() in G:\Projects\VisualStudio\BG3ModManager\DivinityModManagerCore\Util\DivinityModDataLoader.cs:line 634
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DivinityModManager.ViewModels.MainWindowViewModel.<RunTask>d__395`1.MoveNext()
[MainWindowViewModel.cs:LoadModsAsync(1661)] Loaded '10' mods.
[MainWindowViewModel.cs:LoadProfilesAsync(1701)] Loading profiles from 'C:\Users\[redacted]\AppData\Local\Larian Studios\Baldur's Gate 3\PlayerProfiles'.
[MainWindowViewModel.cs:LoadProfilesAsync(1704)] Loaded '1' profiles.
[MainWindowViewModel.cs:LoadProfilesAsync(1707)] Public | 9187f992-cae9-aa4c-c8d7-3dd96bc69fc2
[DivinityModDataLoader.cs:GetSelectedProfileUUIDAsync(1234)] Loading playerprofiles at 'C:\Users\[redacted]\AppData\Local\Larian Studios\Baldur's Gate 3\PlayerProfiles\playerprofiles8.lsf'
[DivinityModDataLoader.cs:GetSelectedProfileUUIDAsync(1242)] ActiveProfile | '9187f992-cae9-aa4c-c8d7-3dd96bc69fc2'
[MainWindowViewModel.cs:LoadExternalLoadOrdersAsync(2532)] Attempting to load saved load orders from 'C:\Programs\BG3MM\Orders'.
[MainWindowViewModel.cs:RefreshAsync(2371)] 1 saved load orders found.
[MainWindowViewModel.cs:LoadAppConfig(4475)] Loading resources from 'C:\Programs\BG3MM\Resources'
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(GustavDev) UUID(28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(Gustav) UUID(991c9c7a-fb80-40cb-8f0d-b92d4e80e9b1)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(GustavDev) UUID(28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(Shared) UUID(ed539163-bb70-431b-96a7-f5b2eda5376b)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(SharedDev) UUID(3d0c5ff8-c95d-c907-ff3e-34b204f1c630)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(FW3) UUID(e5c9077e-1fca-4f24-b55d-464f512c98a8)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(Engine) UUID(9dff4c3b-fda7-43de-a763-ce1383039999)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(Game) UUID(Game)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(DiceSet_01) UUID(e842840a-2449-588c-b0c4-22122cfce31b)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(DiceSet_02) UUID(b176a0ac-d79f-ed9d-5a87-5c2c80874e10)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(DiceSet_03) UUID(e0a4d990-7b9b-8fa9-d7c6-04017c6cf5b1)
[MainWindowViewModel.cs:BuildModOrderList(1757)] UUID 28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8 is missing from the profile's active mod list.
[MainWindowViewModel.cs:BuildModOrderList(1773)] Profile order: 
[MainWindowViewModel.cs:BuildModOrderList(1788)] Setting next order index to [1/1].
[MainWindowViewModel.cs:LoadModOrder(1998)] Loading mod order 'New1'.
[MainWindowViewModel.cs:LoadModOrder(2071)] Missing mods: ImprovedUI;1. BetterMap;2. 5eSpells;3. 5eSpellsOriginalOther;4. 5E_Tweaks;5. BagsBagsBags;6. BetterHotbar419;7. Complete Spell Rebalance;8. Scorching Ray and Magic Missile Revert;9. Valkrana's Spellbook;10. featsextra;11. Animate Dead++;12. Permanent Undead;13. Animate Dead++ Permanent+Corpses Addon;14. Warcaster;15. NoInspCap;16. noRestFindFamiliar;17. Eldritch Adept Feat;18. FireSurfaceBoost;19. True Initiative;20. Wildform_Rituals;21. Resurrect Anyone;22. Ritual Misty Step;23. ShortRestTweaks;24. MetamagicExtended;25. InvisibilityExtended;26. NPCs Dont Flee From Summons;27. EyesOfTheBeholder;28. AbberationEyes;29. DruidWildShapeOverhaul;30. NoConcentrationDarkness;31. NoConcentrationDetectThoughts;32. NoConcentrationFog;33. Horns of Faerûn;34. Tav's Hairpack;35. Dice Set Expansion;36. JohnZyxx's Galaxy Dice Set;37. JohnZyxx's Astral Sea Dice;38. Aetherial Sea
[MainWindowViewModel.cs:RefreshAsync(2459)] Setting selected adventure mod.
[MainWindowViewModel.cs:RefreshAsync(2485)] Finalizing refresh operation.
[MainWindowViewModel.cs:OnMainProgressComplete(2954)] Main progress is complete.
[MainWindowViewModel.cs:RefreshAsync(2494)] Loading extender settings.
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(633)] Checking for latest DWrite.dll release at 'https://github.com/Norbyte/bg3se'.
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(660)] Script Extender latest release url found: https://github.com/Norbyte/bg3se/releases/download/updater-v1/BG3SE-Updater-wConsole-v1.zip
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(690)] Loaded extender settings from 'C:\SteamLibrary\steamapps\common\Baldurs Gate 3\bin\ScriptExtenderSettings.json'.
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(701)] Looking for Script Extender at 'C:\SteamLibrary\steamapps\common\Baldurs Gate 3\bin\DWrite.dll'.
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(704)] Checking DWrite.dll for Script Extender ASCII bytes.
[MainWindowViewModel.cs:LoadExtenderSettingsAsync(711)] Found the Extender at 'C:\SteamLibrary\steamapps\common\Baldurs Gate 3\bin\DWrite.dll'.

Image(s)

image

JelloGoose commented 1 year ago

Mine is also having this exact problem and I have no idea why.

LaughingLeader commented 1 year ago

The issue is here:

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at DivinityModManager.Util.DivinityModDataLoader.<LoadModPackageDataAsync>d__33.MoveNext() in G:\Projects\VisualStudio\BG3ModManager\DivinityModManagerCore\Util\DivinityModDataLoader.cs:line 634
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DivinityModManager.ViewModels.MainWindowViewModel.<RunTask>d__395`1.MoveNext()

You're getting an error when it's loading mods, which then prevents it from continuing. It looks like you edited Resources/IgnoredMods.json? The issue is duplicate mod entries:

var builtinMods = DivinityApp.IgnoredMods.ToDictionary(x => x.Folder, x => x);

We can see that in the log here:

[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(GustavDev) UUID(28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(Gustav) UUID(991c9c7a-fb80-40cb-8f0d-b92d4e80e9b1)
[MainWindowViewModel.cs:LoadAppConfig(4582)] Ignored mod added: Name(GustavDev) UUID(28ac9ce2-2aba-8cda-b3b5-6e922f71b6b8)

2 entries for GustavDev.

LaughingLeader commented 1 year ago

I've added some safeguards to prevent duplicate IgnoredMods being an issue. In the meantime, this can be fixed by editing the file as well to remove the duplicate GustavDev.

ZiotecH commented 1 year ago

Can confirm that is indeed the issue. Removing the duplicate entry restores expected behaviour.

Image(s)

image