Skip to content

Can't change settings after updating to 1.6 #416

Closed

Description

@ostrea

AML Version: 1.6.0 98ff420

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.

Works fine on 1.5.1 8222f08.

Activity

  1. RevZero commented on May 4, 2025

    @RevZero
    Member

    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.

  2. locked and limited conversation to collaborators on May 4, 2025
  3. converted this issue into a discussion #417 on May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ReviewVerify bug or check feasibility of a new feature.Type: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions