LaughingLeader / BG3ModManager

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

[Bug]: Trying to delete, unload or loading a mod fails with error #325

Open TyrasNistru opened 4 months ago

TyrasNistru commented 4 months ago

Operating System

Windows 11

BG3 Mod Manager Version

1.0.10.0

BG3 Game Version

Latest Steam Version

Bug Summary

Anytime I try to add or remove a mod to/from the loading order, or delete an unloaded mod, It gives an error, and asks if I want to open the log directory.

The log:

[MainWindow.xaml.cs:OnUIException(131)] An exception in the UI occurred.
System.NullReferenceException: Object reference not set to an instance of an object.
   at DivinityModManager.ViewModels.MainWindowViewModel.RemoveDeletedMods(HashSet`1 deletedMods, HashSet`1 deletedWorkshopMods, Boolean removeFromLoadOrder)
   at DivinityModManager.Views.MainViewControl.<OnActivated>b__14_81(Object o, FileDeletionCompleteEventArgs e)
   at DivinityModManager.ViewModels.DeleteFilesViewData.<>c__DisplayClass42_0.<Run>b__2()
   at System.Reactive.Concurrency.Scheduler.Invoke(Action action)
   at System.Reactive.Concurrency.DispatcherScheduler.<>c__DisplayClass12_0`1.<Schedule>b__0()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Also, the "Profile" and "Mod Order" Fields are blank. Screenshot 2024-05-13 194219

Already tried to reinstall both BG3ModManager and BG3, and the same keeps happening.

What can I do?

Links

No response