[SOLVED] Help with cross-platform Steam Cloud Saves

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Syrale
Regular
Posts: 101
Joined: Sun Oct 25, 2015 10:28 am
Completed: Robot Daycare, Deep Sea Valentine, Locke(d)
Projects: Artificial Selection, Artificial Fashionista, rei_carnation
Github: kigyo
itch: kigyo
Discord: kigyodev
Contact:

[SOLVED] Help with cross-platform Steam Cloud Saves

#1 Post by Syrale »

So I'm trying to add Cloud Saves to my games on Steam.
I managed to get it working between two Windows computers, but the transfer does not work between Windows and Linux/SteamOS. (All other combinations probably also don't work - I wasn't able to test them.)

For Windows, I wrote:
Root: WinAppDataRoaming
Subdirectory: Renpy/Game-Name

Mac:
Root: MacHome
Subdirectory: /Library/RenPy/Game-Name

Linux / SteamOS:
Root: LinuxHome
Subdirectory: .renpy/Game-Name

For the Root Overrides:
Original Root: WinAppDataRoaming
OS: Linux + SteamOS
New Root: LinuxHome
Add/Replace Path: .renpy/Game-Name
Replace Path: YES

...
(The same pattern for the other combinations.)

Where did I mess up? Could someone who got it working tell me what they wrote for the Root Paths and Root Overrides?
Last edited by Syrale on Sat Oct 29, 2022 5:24 am, edited 1 time in total.
ImageArtificial Selection (ongoing) |ImageDeep Sea Valentine | ImageRobot Daycare (NaNo19)
| ImageArtificial Fashionista (NaNo24)

My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Help with cross-platform Steam Cloud Saves

#2 Post by Zetsubou »

For Windows and Linux you can just use a single Root Path without any Root Overrides.

Root: App Install Directory
Subdirectory: game/saves/
Pattern: *
OS: All
Recursive: No
Cross-Platform: Yes

I haven't tried this on MacOS though. That might require a Root Override.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
Syrale
Regular
Posts: 101
Joined: Sun Oct 25, 2015 10:28 am
Completed: Robot Daycare, Deep Sea Valentine, Locke(d)
Projects: Artificial Selection, Artificial Fashionista, rei_carnation
Github: kigyo
itch: kigyo
Discord: kigyodev
Contact:

Re: Help with cross-platform Steam Cloud Saves

#3 Post by Syrale »

Wow, that was a lot simpler than what I had, and works like a charm. Thanks!
ImageArtificial Selection (ongoing) |ImageDeep Sea Valentine | ImageRobot Daycare (NaNo19)
| ImageArtificial Fashionista (NaNo24)

My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: [SOLVED] Help with cross-platform Steam Cloud Saves

#4 Post by Zetsubou »

I'm in the middle of testing a new game and it turns out that a root override is indeed needed for macOS.
So in addition to the "root path" I mentioned above, it's also necessary to add a "root override" with the following:

Original Root: App Install Directory
OS: macOS
New Root: Mac Home
Add/Replace Path: Library/Renpy/MyGame-number
Replace Path: Yes

Note that the replace path isn't just the game name. It's also the number that's automatically generated when you created the project.
This value is set by default in your options.rpy file. The variable name is "config.save_directory".
So for instance, in my options.rpy file I have

Code: Select all

define config.save_directory = "AnAdventurersGallantry-1658965532"
So my replace path is: Library/Renpy/AnAdventurersGallantry-1658965532

With those two things added, the root path from my previous post and the root override above, your cloud saves should work across macOS, Linux and Windows.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: [SOLVED] Help with cross-platform Steam Cloud Saves

#5 Post by Kinmoku »

I just want to say thanks for this thread because I've been struggling to get Steam Cloud saves working across Mac!

I'm unsure how to test this, though. I currently have a bunch of saves on my Mac and another bunch on my Steam Deck... Cloud is enabled on both devices and says it's up to date, but I can't see any option to use the other device's saves.

I never use Steam Cloud, so perhaps I am doing something wrong...

Post Reply

Who is online

Users browsing this forum: Google [Bot], Houseofmine, Ocelot, Sirifys-Al