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:
Post Reply
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: 4785
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: 4785
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: 4785
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: 206
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: 6783
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.
Add-ons server (campaignd) admin and maintainer
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14.x and 1.15.12+).
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: 6783
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.
Add-ons server (campaignd) admin and maintainer
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14.x and 1.15.12+).
Post Reply