Sync game data and save files with Steam between Linux and Windows

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
pinnerup
Posts: 10
Joined: May 3rd, 2018, 8:22 am

Re: Sync game data and save files with Steam between Linux and Windows

Post by pinnerup »

Indeed, sadly this issue seems still to be there. I've just recently installed Wesnoth 1.17 via Steam on both my Linux desktop and my Mac laptop, and even with the appropriate options checked ("Keep games saves in the Steam Cloud for Battle for Wesnoth") the saves do not seem to sync. That is, on each computer I am unable to see the save games from the other computer, even if both say that they're synced with Steam Cloud.

Switching to 1.16.6 on both computers, I can make the Linux desktop sync saves to Steam Cloud, but the Mac won't sync saves.
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Sync game data and save files with Steam between Linux and Windows

Post by Pentarctagon »

There isn't anything we can do about 1.17 not syncing - the SteamWorks functionality for syncing only seems to be able to be setup to sync for a single branch, so that's currently setup to be 1.16.

macOS should work though. What the path to your saves on macOS?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
pinnerup
Posts: 10
Joined: May 3rd, 2018, 8:22 am

Re: Sync game data and save files with Steam between Linux and Windows

Post by pinnerup »

Pentarctagon wrote: December 30th, 2022, 2:25 am macOS should work though. What the path to your saves on macOS?
Sorry for the late reply; Christmas got in the way.

On my Macbook (running Wesnoth through Steam), the "Saved games" path is:

Code: Select all

/Users/pinnerup/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves
It seems the saves from there are not being put on the Steam Cloud. But doing some creative save file naming and command line searching I've managed to find some of the save files from my PC in this directory:

Code: Select all

/Users/pinnerup/Library/Application Support/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves/
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Sync game data and save files with Steam between Linux and Windows

Post by Pentarctagon »

The first /Users/pinnerup/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves is what it's expected to be for Wesnoth when it's sandboxed (since 1.14.6). Unsandboxed (1.14.5 and earlier) is expected to be /Users/pinnerup/Library/Application Support/Wesnoth_1.16/saves. So I'm not sure why for you it's putting saves in /Users/pinnerup/Library/Application Support/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves/.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
pinnerup
Posts: 10
Joined: May 3rd, 2018, 8:22 am

Re: Sync game data and save files with Steam between Linux and Windows

Post by pinnerup »

Yeah, that sounds weird indeed.

So it would seem that Wesnoth for Mac/Steam is saving its files in the intended place, but that Steam is synching files with another directory? Is this something hard-coded, or can I change either the save or synch directory manually, do you know?
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Sync game data and save files with Steam between Linux and Windows

Post by Pentarctagon »

Can you provide the build information? Instructions for that are listed in viewtopic.php?t=25660
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
pinnerup
Posts: 10
Joined: May 3rd, 2018, 8:22 am

Re: Sync game data and save files with Steam between Linux and Windows

Post by pinnerup »

Pentarctagon wrote: January 10th, 2023, 3:17 pm Can you provide the build information? Instructions for that are listed in viewtopic.php?t=25660
Certainly. The full report goes:
The Battle for Wesnoth version 1.16.6 x86_64
Running on Apple macOS 12.6.2 (21G320) x86_64
Distribution channel: Steam

Game paths
==========

Data dir: /Users/USER/Library/Application Support/Steam/steamapps/common/wesnoth/The Battle for Wesnoth.app/Contents/Resources
User config dir: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16
User data dir: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16
Saves dir: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves
Add-ons dir: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/data/add-ons
Cache dir: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/cache

Libraries
=========

Boost: 1.76
Lua: 5.4.2
Cairo: 1.16.0 (runtime 1.16.0)
Pango: 1.48.7 (runtime 1.48.7)
SDL: 2.0.14 (runtime 2.0.14)
SDL_image: 2.0.5 (runtime 2.0.5)
SDL_mixer: 2.0.4 (runtime 2.0.4)

Features
========

Lua console completion: yes
Cocoa notifications back end: yes

Current video settings
======================

SDL video drivers: [cocoa] dummy
Window size: 1440x900
Screen refresh rate: 60
Screen dots per inch: 128.000000x128.000000
Screen dpi scale factor: 1.333333x1.333333

Current audio settings
======================

SDL audio drivers: [coreaudio] disk
Number of channels: 2
Output rate: 44100 Hz
Sample format: signed 16 bit little-endian
Sample size: 1024 bytes

Installed add-ons
=================

Genesis: 0.2.12
Genesis_Resources: 0.0.9
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Sync game data and save files with Steam between Linux and Windows

Post by Pentarctagon »

Alright, I've updated the Steam cloud syncing for macOS to sync to ~Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves, so I think that should fix it.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
pinnerup
Posts: 10
Joined: May 3rd, 2018, 8:22 am

Re: Sync game data and save files with Steam between Linux and Windows

Post by pinnerup »

Thank you – that sounds awesome! Will the change propagate on its own, or should I do something to reset my installation?
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Sync game data and save files with Steam between Linux and Windows

Post by Pentarctagon »

It should propagate on its own, but I don't know how/when Steam determines to sync the data.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply