[Solved] Syncing Steam Achievements on a MAC. Help!

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.
Message
Author
User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

[Solved] Syncing Steam Achievements on a MAC. Help!

#1 Post by emz911 »

Hi all! This is a question for fellow Renpy developers who had success in Steam Achievements involving a Mac system.
So my game has been selling on Steam for quite some time, but my Mac players recently reported failure to sync their unlocked in-game achievements with Steam Achievements. This only happens with Mac users, the grant and sync works perfectly on Windows (not sure about Linux because nobody reported this for Linux yet).

I did some research in the forums and saw that some other developers also had this issue. From what I get, the problem is either due to building distribution through "Windows, Mac, and Linux for Markets" (which is the recommended choice for publishing on Steam) or due to the placement of the "lib" folder (haven't dug into this yet)?
If it is for the prior reason, my guess would be if I separately built these 3 packages, Mac achievements could sync properly, but I do not want to test those unfamiliar ways of distribution yet, because I might mess up and disappoint all my current players. So my question is, is there any way to solve the syncing issue between Mac and Steam Achievements without completely changing the way I package them? (I am still in doubt that building them separately would 100% work, if anyone have tried this before, please let me know!)

For your reference, here is my code for granting an achievement mid-game, works perfectly for Windows players:

$ persistent.example = True
$ achievement.grant("example")
init:
$ achievement.register("example")
$ achievement.sync()
$ achievement.sync()
$ renpy.save_persistent()

And I check for non-synced Steam achievements (this happens when players play offline) on game start:

if persistent.example == True and achievement.has("example") != True:
$ achievement.grant("example")
$ achievement.register("example")
$ achievement.sync()

FYI: I build distribution on a Mac system and I also have a Windows computer to work with, but I don't suppose the developer's system has anything to do with this?
Thank you all so much for your time!!
Last edited by emz911 on Mon May 10, 2021 8:09 pm, edited 3 times in total.

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#2 Post by emz911 »

Please ignore the codes' wrong indentation, I swear its correctly formatted in script. :|

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#3 Post by emz911 »

Bump bump! Do anyone's Mac trophies pop?

User avatar
Shocking Alberto
Regular
Posts: 35
Joined: Sun Mar 29, 2020 4:58 am
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#4 Post by Shocking Alberto »

Just came across your thread now but have you resolved your issue yet? I've been getting reports from users about similar problems where achievements don't unlock on a Mac. I wonder if this is a version issue or some change with Macs no longer using Intel chips?

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#5 Post by emz911 »

Shocking Alberto wrote: Mon Mar 29, 2021 3:58 pm Just came across your thread now but have you resolved your issue yet? I've been getting reports from users about similar problems where achievements don't unlock on a Mac. I wonder if this is a version issue or some change with Macs no longer using Intel chips?
Hi, I have not yet resolved the issue, unfortunately, but seeing more and more developers report the same issue recently, I also wonder if this is a Renpy or Mac version problem, since people have made Mac achievements work during earlier years. I’ve messaged Tom about this on Patreon but haven’t gotten a reply yet, I might try again via this forum. Will keep you updated if there’s any progress!

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 on a MAC. Help!

#6 Post by PyTom »

I'm tracking this as a bug at https://github.com/renpy/renpy/issues/2765
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
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#7 Post by emz911 »

PyTom wrote: Mon Apr 12, 2021 10:08 pm I'm tracking this as a bug at https://github.com/renpy/renpy/issues/2765
Thank you so much!! I will stay tuned! :mrgreen:

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 on a MAC. Help!

#8 Post by PyTom »

I just landed a pair of fixes for this.
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
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#9 Post by emz911 »

PyTom wrote: Mon Apr 26, 2021 8:58 pm I just landed a pair of fixes for this.
This is great!! Thank you again!
Last edited by emz911 on Sat May 08, 2021 11:58 pm, edited 1 time in total.

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#10 Post by emz911 »

Shocking Alberto wrote: Mon Mar 29, 2021 3:58 pm Just came across your thread now but have you resolved your issue yet? I've been getting reports from users about similar problems where achievements don't unlock on a Mac. I wonder if this is a version issue or some change with Macs no longer using Intel chips?
In case you haven’t seen, Tom has landed a pair of fixes for this! See previous posts!
Last edited by emz911 on Fri Apr 30, 2021 7:45 pm, edited 1 time in total.

User avatar
Shocking Alberto
Regular
Posts: 35
Joined: Sun Mar 29, 2020 4:58 am
Contact:

Re: Syncing Steam Achievements on a MAC. Help!

#11 Post by Shocking Alberto »

Whoaaaa! Super awesome. Time to update things and hope for the best.

User avatar
Shocking Alberto
Regular
Posts: 35
Joined: Sun Mar 29, 2020 4:58 am
Contact:

Re: [Solved] Syncing Steam Achievements on a MAC. Help!

#12 Post by Shocking Alberto »

Hmm, looks like achievements still isn't syncing for me. Just to make sure I'm not missing something, here's what I did based off information here:
https://github.com/renpy/renpy/issues/2765

First off, I updated to 7.4.4 and tested to make everything was working to begin with. Was originally working with 7.3.5.

Edited renpy-7.4.4-sdk\renpy\common\00achievement.rpy
Edited renpy-7.4.4-sdk\renpy\common\00build.rpy

Edited renpy-7.4.4-sdk\lib\python2.7\site.py

Added steam_appid.txt to the \"Game"\"Game.app"\Contents\MacOS folder

I'm going to guess that the last two is where things aren't working. In github, it says to modify runtime/site.py but I couldn't find a runtime folder to do that in and the only site.py file I could find was in the pythin2.7 folder. Same goes for steam_appid.txt placement as I wasn't sure where this should go.

I apologize in advance if this is really obvious and I'm not seeing what I did wrong but any guidance is most certainly appreciated. m(_ _)m

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 on a MAC. Help!

#13 Post by PyTom »

This should be fixed by 7.4.5.
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
Shocking Alberto
Regular
Posts: 35
Joined: Sun Mar 29, 2020 4:58 am
Contact:

Re: [Solved] Syncing Steam Achievements on a MAC. Help!

#14 Post by Shocking Alberto »

Fair enough. I'll wait on that update then. Appreciate you taking the time to work on this!

Honestly, I think this is probably a hard lesson for me about version control and moving up versions of Ren'py. These issues didn't happen until a major update I made (which also included updating from 6.99.14.3 to 7.3.5) so it is entirely possible that something went wrong in between. Oh well. /o\

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

Re: [Solved] Syncing Steam Achievements on a MAC. Help!

#15 Post by Syrale »

I'm using 7.4.6 and a player just reported the same thing. Doesn't seem to be fixed.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]