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:
nicmont
Posts: 3
Joined: January 16th, 2021, 1:03 am

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

Post by nicmont »

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:

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

But in Steam+Linux:

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

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.
User avatar
Pentarctagon
Project Manager
Posts: 5496
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 »

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
nicmont
Posts: 3
Joined: January 16th, 2021, 1:03 am

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

Post by nicmont »

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.
User avatar
Pentarctagon
Project Manager
Posts: 5496
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 »

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
Perhaps one or both of those aren't going where they're expected to?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
nicmont
Posts: 3
Joined: January 16th, 2021, 1:03 am

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

Post by nicmont »

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
User avatar
Pentarctagon
Project Manager
Posts: 5496
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 »

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
User avatar
lhybrideur
Posts: 355
Joined: July 9th, 2019, 1:46 pm

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

Post by lhybrideur »

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
User avatar
Iris
Site Administrator
Posts: 6796
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

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

Post by Iris »

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
The option was removed in 1.13.2.
nicmont wrote: March 15th, 2021, 12:24 am Thank you Pentarctagon, seems like my Windows paths are all pointing to the Wesnoth1.14 directory rather than the respective subdirectory.
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.
kuzgun
Posts: 1
Joined: May 18th, 2021, 9:17 am

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

Post by kuzgun »

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)
User avatar
Iris
Site Administrator
Posts: 6796
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

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

Post by Iris »

kuzgun wrote: May 18th, 2021, 9:33 am Can I play the recording files on another linux distribution if I copy my folders?
Yes.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
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 »

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.
User avatar
Pentarctagon
Project Manager
Posts: 5496
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 »

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
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 »

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:
/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?
User avatar
Pentarctagon
Project Manager
Posts: 5496
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 »

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
kpsimonlin
Posts: 1
Joined: October 8th, 2022, 2:48 am

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

Post by kpsimonlin »

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
Post Reply