You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
After updating to 1.6.0 I can't change settings. It shows error popup on close or when trying to save settings.
Stacktrace:
System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.StreamWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Dispose()
at XCOM2Launcher.XCOM.IniFile.Save() in xcom2-launcher\Classes\XCOM\IniFile.cs:line 106
at XCOM2Launcher.XCOM.XcomEnvironment.SaveChanges(Settings settings, Boolean disableMods) in xcom2-launcher\Classes\XCOM\XComEnvironment.cs:line 220
at XCOM2Launcher.Forms.MainForm.Save(Boolean WotC) in xcom2-launcher\Forms\MainForm.cs:line 332
For some reason it tries to save some changes to the %userprofile%\Documents\My Games\XCOM2\XComGame\Config\ and doesn't have rights to do it. Saving and loading global settings from AppData works fine.
Active mods are written to a game configuration file on exit or when starting the game. As you already pointed out, this is a permission issue.
Make sure AML isn't blocked by antivirus or defender. You can also try to run AML as admin.
Moving this to discussions, as its not an AML issue.
Activity
RevZero commentedon May 4, 2025
Active mods are written to a game configuration file on exit or when starting the game. As you already pointed out, this is a permission issue.
Make sure AML isn't blocked by antivirus or defender. You can also try to run AML as admin.
Moving this to discussions, as its not an AML issue.