It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Thanks in advance,

My family plays Stardew Valley with GOG Galaxy on multiple computers. The GOG cloud saves the startup preferences in the %appdata% folder and syncs after exiting. This also saves the startup resolution, which is always messed up when the game is launched from a computer with a different resolution. This is a problem because a game starting on resolution 2560x1440 on a 1920x1080 monitor does not even show the menu to be able to change the resolution settings.

Any help is appreciated,
Thanks
This question / problem has been solved by mqstoutimage
Not a great solution but when playing on the 1440p computer you could switch to 1080 before quitting. Unfortunate that the save file in the cloud effects such things.
avatar
verlyn13: Any help is appreciated,
This is the problem with having Galaxy manage configuration settings and "sync" them. It works if all PC's being synced are the same, but causes nothing but problems when they are different (eg, different resolutions or different family members use different key-bindings, etc).

Stardew Valley stores resolution settings in a file called startup_preferences in the location %USERPROFILE%\AppData\Roaming\StardewValley. The game saves are stores in a \Saves sub-folder within this.

What you could do is just install the offline installer version (no Galaxy), disable all Galaxy syncing, etc, and have it save locally to above location (set each computer up with same settings and relevant resolution first), then use GameSave Manager to sync just the \Saves sub-folder but not the parent folder with the settings file, to a DropBox / Google Drive account (and then set it up on other PC's to sync it back). It's more work setting up, but it can be done.
Post edited October 19, 2021 by AB2012
avatar
AB2012: Stardew Valley stores resolution settings in a file called startup_preferences in the location %USERPROFILE%\AppData\Roaming\StardewValley. The game saves are stores in a \Saves sub-folder within this.
Would making that file read-only after setting the desired resolution work to stop galaxy syncing just that file?
avatar
lupineshadow: Would making that file read-only after setting the desired resolution work to stop galaxy syncing just that file?
I don't know as I don't use Galaxy but it's certainly worth a try as the simpler option.
avatar
AB2012: Stardew Valley stores resolution settings in a file called startup_preferences in the location %USERPROFILE%\AppData\Roaming\StardewValley. The game saves are stores in a \Saves sub-folder within this.
avatar
lupineshadow: Would making that file read-only after setting the desired resolution work to stop galaxy syncing just that file?
Thanks, I will try this and report back here.
avatar
StingingVelvet: Not a great solution but when playing on the 1440p computer you could switch to 1080 before quitting. Unfortunate that the save file in the cloud effects such things.
This is what I suggested but my kids are young forget every time.
avatar
verlyn13: Any help is appreciated,
avatar
AB2012: This is the problem with having Galaxy manage configuration settings and "sync" them. It works if all PC's being synced are the same, but causes nothing but problems when they are different (eg, different resolutions or different family members use different key-bindings, etc).

Stardew Valley stores resolution settings in a file called startup_preferences in the location %USERPROFILE%\AppData\Roaming\StardewValley. The game saves are stores in a \Saves sub-folder within this.

What you could do is just install the offline installer version (no Galaxy), disable all Galaxy syncing, etc, and have it save locally to above location (set each computer up with same settings and relevant resolution first), then use GameSave Manager to sync just the \Saves sub-folder but not the parent folder with the settings file, to a DropBox / Google Drive account (and then set it up on other PC's to sync it back). It's more work setting up, but it can be done.
Thanks, I thought of this also, and was going to be my last resort. Other than the resolution settings, the Galaxy cloud saves are easy and convenient.

I also wrote a .bat file that searches the startup_preferences file for the resolution settings and changes them appropriately, then launches Stardew Valley.exe. Then I configured Galaxy to start this .bat file as the game executable. I don't know why, but the game bugs out after choosing a character so I abandoned this strategy.

For what it's worth, the .bat startup file looks like this
[code]
powershell -Command "(gc %appdata%\StardewValley\startup_preferences) -replace '(?<=<fullscreenResolutionX>)(.*)(?=</fullscreenResolutionX>)', '2560' | Out-File -encoding ASCII %appdata%\StardewValley\startup_preferences"
powershell -Command "(gc %appdata%\StardewValley\startup_preferences) -replace '(?<=<fullscreenResolutionY>)(.*)(?=</fullscreenResolutionY>)', '1440' | Out-File -encoding ASCII %appdata%\StardewValley\startup_preferences"
powershell -Command "(gc %appdata%\StardewValley\startup_preferences) -replace '(?<=<preferredResolutionX>)(.*)(?=</preferredResolutionX>)', '2560' | Out-File -encoding ASCII %appdata%\StardewValley\startup_preferences"
powershell -Command "(gc %appdata%\StardewValley\startup_preferences) -replace '(?<=<preferredResolutionY>)(.*)(?=</preferredResolutionY>)', '1440' | Out-File -encoding ASCII %appdata%\StardewValley\startup_preferences"

start "" "C:\Program Files (x86)\GOG Galaxy\Games\Stardew Valley\Stardew Valley.exe"
[/code]
Post edited October 19, 2021 by verlyn13
If you're saavy enough to write batch scripts, you might be saavy enough to use one of the numerous "roll your own" cloud save solutions rather than Galaxy. That'll let it sync even if Galaxy isn't logged in, you can tell it what to sync and not, and may be faster (depending on how you set it, such as on a network share).

Here are a few (GameSave Manager, and some alts):
https://alternativeto.net/software/gamesave-manager/

(If people suggest others, please make sure to get them in alternativeto and not just post here!)
Post edited October 19, 2021 by mqstout
avatar
mqstout: If you're saavy enough to write batch scripts, you might be saavy enough to use one of the numerous "roll your own" cloud save solutions rather than Galaxy. That'll let it sync even if Galaxy isn't logged in, you can tell it what to sync and not, and may be faster (depending on how you set it, such as on a network share).

Here are a few (GameSave Manager, and some alts):
https://alternativeto.net/software/gamesave-manager/

(If people suggest others, please make sure to get them in alternativeto and not just post here!)
Thanks, this looks like an easy way to work around the saves of preference file.
avatar
AB2012: Stardew Valley stores resolution settings in a file called startup_preferences in the location %USERPROFILE%\AppData\Roaming\StardewValley. The game saves are stores in a \Saves sub-folder within this.
avatar
lupineshadow: Would making that file read-only after setting the desired resolution work to stop galaxy syncing just that file?
Just tried it, I can confirm that this works. Like any solution that preserves the entire startup_preferences file it won't update other settings in the file that might impact gameplay over time.