Sync game data and save files with Steam between Linux and Windows
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Sync game data and save files with Steam between Linux and Windows
I recently installed Steam on Linux, and decided to install Wesnoth through it rather than the version packaged for my linux distro, so I could play the same game (i,e, save files, smae completed campaigns, same previously seen units, etc). whether using Linux or Windows.
However, opening wesnoth for steam in linux does not sync my wesnoth files from windows (yet, this seems to work automatically for other games).
The paths in Steam+Windows for wesnoth files are:
But in Steam+Linux:
My question is Shouldn't all paths in both OS be under the Steam directory? If not, How can I set them manually so I can use the same directories in both OS? What I want is to have the same game in both machines.
However, opening wesnoth for steam in linux does not sync my wesnoth files from windows (yet, this seems to work automatically for other games).
The paths in Steam+Windows for wesnoth files are:
Code: Select all
Battle for Wesnoth v1.14.15
Started on Sat Mar 13 11:50:50 2021
Data directory: C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.14
User data directory: C:\Users\USER\Documents\My Games\Wesnoth1.14
Cache directory: C:\Users\USER\Documents\My Games\Wesnoth1.14
Code: Select all
The Battle for Wesnoth version 1.14.15
Running on Manjaro Linux
Distribution channel: Steam
Game paths
==========
Data dir: /home/USER/.local/share/Steam/steamapps/common/wesnoth
User config dir: /home/USER/.config/wesnoth
User data dir: /home/USER/.local/share/wesnoth/1.14
Saves dir: /home/USER/.local/share/wesnoth/1.14/saves
Add-ons dir: /home/USER/.local/share/wesnoth/1.14/data/add-ons
Cache dir: /home/USER/.cache/wesnoth
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Sync game data and save files with Steam between Linux and Windows
For Steam, if you right click on Wesnoth and click Properties, under the General section there's an option "Keep games saves in the Steam Cloud for Battle for Wesnoth". If that's enabled and you're using the same account for both OSes, then Steam should keep them synced. Both OSes won't use the same Steam directory because the each have their own independent filesystem that the other doesn't look in or use.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Sync game data and save files with Steam between Linux and Windows
Thank you for your answer. It is indeed enabled in both machines, but doesn't work: i.e. no save files, no previously seen units, etc. Interestingly, this is happening only with Wesnoth: other games synced automatically.
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Sync game data and save files with Steam between Linux and Windows
For Steam, Wesnoth is configured to sync files (not folders) within the directories:
- Windows -
%USERPROFILE%/My Documents/My Games/Wesnoth1.14/saves
- Linux -
$XDG_DATA_HOME/wesnoth/1.14/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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Sync game data and save files with Steam between Linux and Windows
Thank you Pentarctagon, seems like my Windows paths are all pointing to the Wesnoth1.14 directory rather than the respective subdirectory. I do not how this happened, and more importantly, if there's a way to change it manually.
Is there a config file or something to manually set these paths?
Many thanks for your help
Is there a config file or something to manually set these paths?
Many thanks for your help
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Sync game data and save files with Steam between Linux and Windows
So it's pointing to
C:\Users\USER\Documents\My Games\Wesnoth1.14
instead of C:\Users\USER\Documents\My Games\Wesnoth1.14\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
take one down, patch it around
-2,147,483,648 little bugs in the code
- lhybrideur
- Posts: 379
- Joined: July 9th, 2019, 1:46 pm
Re: Sync game data and save files with Steam between Linux and Windows
I would say it comes from when you installed Wesnoth on Windows. There is an option to save the files in the Wesnoth folder inside Program Files (which is what you have, if I understand well) so that every account can access it, instead of inside Documents where only this user can access it. You might have checked it, or it might be checked by default
Re: Sync game data and save files with Steam between Linux and Windows
The option was removed in 1.13.2.lhybrideur wrote: ↑March 15th, 2021, 2:48 pm I would say it comes from when you installed Wesnoth on Windows. There is an option to save the files in the Wesnoth folder inside Program Files (which is what you have, if I understand well) so that every account can access it, instead of inside Documents where only this user can access it. You might have checked it, or it might be checked by default
Your paths on Windows don't seem incorrect to me. Then again, you didn't post the full report for it unlike the one on Linux.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Sync game data and save files with Steam between Linux and Windows
Hello there;
for linux,
/home/USER/.config/wesnoth
/home/USER/.local/share/wesnoth/1.14
/home/USER/.local/share/wesnoth/1.14/saves
/home/USER/.local/share/wesnoth/1.14/data/add-ons
/home/USER/.cache/wesnoth
Can I play the recording files on another linux distribution if I copy my folders?
(English is not my mother tongue, sorry)
for linux,
/home/USER/.config/wesnoth
/home/USER/.local/share/wesnoth/1.14
/home/USER/.local/share/wesnoth/1.14/saves
/home/USER/.local/share/wesnoth/1.14/data/add-ons
/home/USER/.cache/wesnoth
Can I play the recording files on another linux distribution if I copy my folders?
(English is not my mother tongue, sorry)
Re: Sync game data and save files with Steam between Linux and Windows
Yes.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Sync game data and save files with Steam between Linux and Windows
Was there ever a solution to this? I recently installed Wesnoth (1.16) through Steam on my Ubuntu 21.10, and it doesn't seem to sync anything to the Steam cloud, even though the option is enabled.
If I open Steam and go to Battle of Wesnoth and choose the Settings gear, under "STEAM CLOUD" it just says "0 bytes stored / 95.37 MB available", even though I've got plenty of save games. It's as if they won't sync to cloud, even though the "Keep games saves in the Steam Cloud" option is enabled.
If I open Steam and go to Battle of Wesnoth and choose the Settings gear, under "STEAM CLOUD" it just says "0 bytes stored / 95.37 MB available", even though I've got plenty of save games. It's as if they won't sync to cloud, even though the "Keep games saves in the Steam Cloud" option is enabled.
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Sync game data and save files with Steam between Linux and Windows
This should (hopefully) be fixed now. See #6303 for details.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Sync game data and save files with Steam between Linux and Windows
I'm not sure if this is the same bug or a similar one, but I'm finding that my save games are not syncing between Wesnoth on my Mac and Wesnoth on my Windows and Linux/Ubuntu (all installed through Steam). That is, the Linux and Windows versions seem to work together, but Wesnoth on my Mac has an entirely different set of save games.
Odd thing is that when I check the Wesnoth properties in Steam (on Mac), sync is enabled and it says "4.30 MB stored". And when I make new saves in Windows or Linux, the count updates on Mac. But save games on Mac do not affect the count. The issue seems to be that Wesnoth on Mac *is* syncing through Steam, but the game is using a different location for save games.
Specifically, I've found – after some fiddling around – that Wesnoth (on Mac via Steam) is using the following path for savegames:
But the save games from Windows/Linux/Steam Cloud are being synced to:
Is there any way to change this? To make Wesnoth (on Mac via Steam) use the latter path for save games?
Odd thing is that when I check the Wesnoth properties in Steam (on Mac), sync is enabled and it says "4.30 MB stored". And when I make new saves in Windows or Linux, the count updates on Mac. But save games on Mac do not affect the count. The issue seems to be that Wesnoth on Mac *is* syncing through Steam, but the game is using a different location for save games.
Specifically, I've found – after some fiddling around – that Wesnoth (on Mac via Steam) is using the following path for savegames:
/Users/pinnerup/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16/saves/
But the save games from Windows/Linux/Steam Cloud are being synced to:
/Users/pinnerup/Library/Application Support/Wesnoth_1.16/saves/
Is there any way to change this? To make Wesnoth (on Mac via Steam) use the latter path for save games?
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Sync game data and save files with Steam between Linux and Windows
This should be fixed now.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 1
- Joined: October 8th, 2022, 2:48 am
Re: Sync game data and save files with Steam between Linux and Windows
I encountered this issue recently and apparently it is still there. I am syncing between Windows and Mac. The saved files are on the Steam cloud but the Mac version somehow wouldn't download it. The user data on Mac is stored in
/Users/username/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.16