TeamRizu / OutFox

The Bug Reporting Repository for OutFox LTS 0.4, Alpha V and Steam Early Access Builds
https://projectoutfox.com
Apache License 2.0
184 stars 3 forks source link

[FIXED][BUG] Alpha V always uses Save folder in program directory for settings files, which causes issues when that directory is read-only #727

Closed Maxwell-lt closed 3 months ago

Maxwell-lt commented 8 months ago

Is there an existing issue for this?

Operating System

Linux

CPU

No response

GPU

No response

Storage

No response

Game Version

5.0.0-042

Game Mode

dance

Theme

No response

Describe the problem

When the OutFox install directory is read-only, the game tries and fails to create settings files in its install directory. This leads to a number of issues, such as the default theme not working correctly and an inability to make changes in the settings screen.

If the default settings files from a working OutFox install are copied into the user's ~/.project-outfox/Save folder, the theme will no longer be broken, and it will be possible to switch themes, but there will still be issues. For example, when trying to change the timing windows from the song wheel settings menu in the Alpha V Dance theme, pressing up, down, or ESC to navigate away from that option after pressing left or right to change it will cause it to revert to the default. Many other settings will either apply only until the game is next launched, or will not apply at all.

This issue is not present on the latest Alpha 4 release (0.4.18).

Reproduction steps:

  1. Boot into some form of Linux distribution that is compatible with OutFox. A live USB environment works fine.
  2. Download Alpha V 042 from the GitHub releases page.
  3. Unpack the archive and set ownership to root.
    $ cd /opt
    $ sudo tar xvf ~/Downloads/OutFox-alpha-0.5.0-pre042-Linux-22.04-amd64-current-date-20231224.tar.gz
    $ sudo mv OutFox-alpha-0.5.0-pre042-Linux-22.04-amd64-current-date-20231224 OutFox
    $ sudo chown -R root:root OutFox
  4. Launch OutFox
    $ OutFox/OutFox

Describe what should happen

When the game is running in non-portable mode (no Portable.ini file present in the program directory), all settings files including Preferences.ini and OutFoxPrefs.ini should be stored in and read from the user directory ~/.project-outfox. The game should not attempt to create and use a Save folder inside the program directory.

Relevant Log output

Broken theme visible on the songwheel image

Scraticus commented 7 months ago

confrimed, we'll look into this one and get on fixing it

Scraticus commented 3 months ago

Fixed now in the pre-test builds, but can you grab one and test?

Would appreciate this being confirmed as resolved before we release.

Maxwell-lt commented 3 months ago

Confirmed working on 0.5.0-pre043-a13, thanks for the fix!