[Solved] Syncing Steam Achievements on a MAC. Help!
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.
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.
[Solved] Syncing Steam Achievements on a MAC. Help!
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!!
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.
Re: Syncing Steam Achievements on a MAC. Help!
Please ignore the codes' wrong indentation, I swear its correctly formatted in script.
Re: Syncing Steam Achievements on a MAC. Help!
Bump bump! Do anyone's Mac trophies pop?
- Shocking Alberto
- Regular
- Posts: 35
- Joined: Sun Mar 29, 2020 4:58 am
- Contact:
Re: Syncing Steam Achievements on a MAC. Help!
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?
Re: Syncing Steam Achievements on a MAC. Help!
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!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?
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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!
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Syncing Steam Achievements on a MAC. Help!
Thank you so much!! I will stay tuned!PyTom wrote: ↑Mon Apr 12, 2021 10:08 pm I'm tracking this as a bug at https://github.com/renpy/renpy/issues/2765
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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!
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Syncing Steam Achievements on a MAC. Help!
This is great!! Thank you again!
Last edited by emz911 on Sat May 08, 2021 11:58 pm, edited 1 time in total.
Re: Syncing Steam Achievements on a MAC. Help!
In case you haven’t seen, Tom has landed a pair of fixes for this! See previous posts!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?
Last edited by emz911 on Fri Apr 30, 2021 7:45 pm, edited 1 time in total.
- Shocking Alberto
- Regular
- Posts: 35
- Joined: Sun Mar 29, 2020 4:58 am
- Contact:
Re: Syncing Steam Achievements on a MAC. Help!
Whoaaaa! Super awesome. Time to update things and hope for the best.
- Shocking Alberto
- Regular
- Posts: 35
- Joined: Sun Mar 29, 2020 4:58 am
- Contact:
Re: [Solved] Syncing Steam Achievements on a MAC. Help!
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
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
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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!
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- Shocking Alberto
- Regular
- Posts: 35
- Joined: Sun Mar 29, 2020 4:58 am
- Contact:
Re: [Solved] Syncing Steam Achievements on a MAC. Help!
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\
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\
- 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: [Solved] Syncing Steam Achievements on a MAC. Help!
I'm using 7.4.6 and a player just reported the same thing. Doesn't seem to be fixed.
Artificial Selection (ongoing) |Deep Sea Valentine | Robot Daycare (NaNo19)
| Artificial Fashionista (NaNo24)
My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+
My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+
Who is online
Users browsing this forum: KarenThomas