(Solved) Syncing Steam Achievements with Offline Play

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
sake-bento
Eileen-Class Veteran
Posts: 1909
Joined: Sat Jan 26, 2008 5:58 pm
Completed: http://sakevisual.com/games.html
Projects: Every Sunrise, Shinsei
Organization: sakevisual
Tumblr: sakevisual
Deviantart: sakevisual
itch: sakevisual
Contact:

(Solved) Syncing Steam Achievements with Offline Play

#1 Post by sake-bento »

Is there any way to check with the Steam server if an achievement has been acquired? Or an instant way to sync up achievements if the player has been playing offline (or if they bought direct, then got a Steam code)?

I'm having players who are getting achievements (e.g. "Ate a cupcake!") but because they're either offline or not on Steam, the achievement isn't being registered on their account. When they log in later, the persistent data in the game says the achievement's already been granted, so the information isn't sent to Steam. I've found I can force an achievement by clearing it, then re-granting it, but that seems like a short term solution. I was wondering if there was a way to sync up with the server. So if someone gets "ate a cupcake," from a direct purchase, THEN gets the Steam version, the "ate a cupcake" achievement will be automatically granted as soon as they open the game through Steam.

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: Syncing Steam Achievements with Offline Play

#2 Post by Samu-kun »

Pinging Tom with same request. Same problem had with Sunrider Academy.

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Syncing Steam Achievements with Offline Play

#3 Post by PyTom »

This has been added to the new 6.99.6 prerelease, due out shortly. The steam->local side of things should work, but the new code adds functions that let you sync local->steam.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
sake-bento
Eileen-Class Veteran
Posts: 1909
Joined: Sat Jan 26, 2008 5:58 pm
Completed: http://sakevisual.com/games.html
Projects: Every Sunrise, Shinsei
Organization: sakevisual
Tumblr: sakevisual
Deviantart: sakevisual
itch: sakevisual
Contact:

Re: Syncing Steam Achievements with Offline Play

#4 Post by sake-bento »

Sweet! Thank you.

User avatar
Vatina
Miko-Class Veteran
Posts: 862
Joined: Mon May 08, 2006 2:49 am
Completed: Blue Rose, AO: Broken Memories, My Eternal Rival, Dust
Projects: AO: Fallen Star
Organization: White Cat
IRC Nick: Vatina
Tumblr: vatinyan
Deviantart: Vatina
itch: whitecat
Contact:

Re: (Solved) Syncing Steam Achievements with Offline Play

#5 Post by Vatina »

Looks like one of my players has run into this problem too, so this fix is great - I'll go update the build right away.

Just in case, will the player have to do anything to make it sync, or will it work on its own?

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: (Solved) Syncing Steam Achievements with Offline Play

#6 Post by PyTom »

It's not automatic. The achievement.Sync action or achievement.sync function take care of this.

http://www.renpy.org/doc/html/achievement.html
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Vatina
Miko-Class Veteran
Posts: 862
Joined: Mon May 08, 2006 2:49 am
Completed: Blue Rose, AO: Broken Memories, My Eternal Rival, Dust
Projects: AO: Fallen Star
Organization: White Cat
IRC Nick: Vatina
Tumblr: vatinyan
Deviantart: Vatina
itch: whitecat
Contact:

Re: (Solved) Syncing Steam Achievements with Offline Play

#7 Post by Vatina »

Alright, thanks a lot :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]