Page 1 of 1

[0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sat May 09, 2020 11:40 pm
by Magicono43
So on the mod settings screen, when you try and click the "Save and Close" button, the first time you click, a null object reference is being thrown, when you try and click after this "unresponsiveness" it works normally. Ralzar is likely correct that this is being thrown by what is supposed to pop up as the "Detecting Settings For Mods Not Installed" message box.

Here is the exception as shown by the Unity debug screen:

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
ModLoaderInterfaceWindow.CheckDependencies () (at Assets/Game/Addons/ModSupport/ModLoaderInterfaceWindow.cs:468)
ModLoaderInterfaceWindow.MoveNextStage () (at Assets/Game/Addons/ModSupport/ModLoaderInterfaceWindow.cs:523)
ModLoaderInterfaceWindow.Update () (at Assets/Game/Addons/ModSupport/ModLoaderInterfaceWindow.cs:306)
DaggerfallWorkshop.Game.DaggerfallUI.Update () (at Assets/Scripts/Game/DaggerfallUI.cs:363)

Re: [0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sun May 10, 2020 5:46 am
by Ralzar
Yeah, I'm getting it too. In the Live Build it just seems like nothing happens the first time you click "Save and Close" and then it works the second time.

I think Hazelnut was experiencing the same thing.

Edit: Not sure, but it seems to only happen if you DON'T have any old settings. So as long as you have settings for mods you no longer have installed, the popup forks fine. But if you ever click "YES", you'll start experiencing the bug.

Re: [0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sun May 10, 2020 11:20 am
by Hazelnut
Yep, I noticed this yesterday myself. Going to move this to bug reports for TheLacus (I assume) to deal with.

Re: [0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sun May 10, 2020 3:20 pm
by TheLacus
Thank you for the report.

Re: [0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sun May 10, 2020 7:56 pm
by TheLacus
Fixed. Sorry for this one, i missed a null check...

Re: [0.10.23] "Save and Close" Button on Mod Settings Screen Throwing Exception

Posted: Sun May 10, 2020 8:56 pm
by Magicono43
TheLacus wrote: Sun May 10, 2020 7:56 pm Fixed. Sorry for this one, i missed a null check...
Cool, thanks Lacus.