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
Ultrastar Play on Windows uses the AppData directory to store its config data (Settings.json etc.).
Expected behaviour
For some applications (mainly a portable USP installation on an external drive that should be usable on multiple computers), it would be useful to have the settings located close to the USP files. This would allow the settings to be persistent across computers, if the external drive is connected to other computers. It would also be necessary to allow relative paths for the SongDirs, so mounting the external drive (containing USP and songs) as a different Drive Letter doesn't break the SongDir settings.
Implementation hints
On Startup, USP should check if the USP directory (or its parent?) contains a settings dir as it would normally be found in AppData. If a settings dir is found, it should be used, and no directory in AppData should be created. Only if no local settings are found, the AppData folder should be used/created.
The SongDirs Setting should be able to use relative paths. Ideally, the paths specified should be interpreted as relative to the settings file (or its parent?), so the location from which USP is started doesn't affect the behaviour.
The text was updated successfully, but these errors were encountered:
If you put the program on a flash drive or portable device you will have issues setting this up.
Windows shortcuts can't use relative paths without a bit of a hack. So creating a shortcut to the exe with additional parameter --settingsPath will often fail.
Shell scripts like .bat and .ps1 will have issues if you run them from a different folder than the game exe is. They often also require being run with right click, sometimes with privlege escalation and have their own set of edge cases.
I think the best way to deal with this would be a check on launch for a "settings.json" in the same directory as the exe and if it exists use that.
Issue type: Feature request
Actual behaviour
Ultrastar Play on Windows uses the AppData directory to store its config data (Settings.json etc.).
Expected behaviour
For some applications (mainly a portable USP installation on an external drive that should be usable on multiple computers), it would be useful to have the settings located close to the USP files. This would allow the settings to be persistent across computers, if the external drive is connected to other computers. It would also be necessary to allow relative paths for the SongDirs, so mounting the external drive (containing USP and songs) as a different Drive Letter doesn't break the SongDir settings.
Implementation hints
On Startup, USP should check if the USP directory (or its parent?) contains a settings dir as it would normally be found in AppData. If a settings dir is found, it should be used, and no directory in AppData should be created. Only if no local settings are found, the AppData folder should be used/created.
The SongDirs Setting should be able to use relative paths. Ideally, the paths specified should be interpreted as relative to the settings file (or its parent?), so the location from which USP is started doesn't affect the behaviour.
The text was updated successfully, but these errors were encountered: