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.
-
storykween
- Regular
- Posts: 154
- Joined: Mon Sep 30, 2013 1:17 pm
- Completed: Serafina's Saga, Quantum Conscience, Echoes of the Fey, miraclr - Divine Dating Sim
- Organization: Woodsy Studio
- Location: St Louis
-
Contact:
#1
Post
by storykween » Fri Aug 14, 2015 7:52 pm
I'm getting complaints from Steam players that the achievements in my game "Quantum Conscience" -
http://store.steampowered.com/app/375770/ - aren't unlocking when they meet the conditions. Surely enough, I haven't been able to get them to work whenever I test them, either.
In the Ren'py game script, I first register an achievement with:
Code: Select all
$ achievement.register("Foe_Forever")
... then I grant the achievement with
Code: Select all
$ achievement.grant("Foe_Forever")
...but it never unlocks in Steam, even after playing through the appropriate conditions.
Here's a screenshot of the configuration in Steam:
Thanks for any help you can give me!
-
SundownKid
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
-
Contact:
#2
Post
by SundownKid » Fri Aug 14, 2015 9:26 pm
I don't believe you actually need the "register" part, you can just use "achievement.grant" and it will work fine.
My only other thought if that doesn't work is that maybe the underscore is messing it up? This is just speculation on my part but maybe "foeforever" might work instead?
Finally maybe if you changed the name of it at some point and you forgot to publish the changes?
-
PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
#3
Post
by PyTom » Fri Aug 14, 2015 9:36 pm
And lastly, look at log.txt to see if the steam support is loading at all.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
storykween
- Regular
- Posts: 154
- Joined: Mon Sep 30, 2013 1:17 pm
- Completed: Serafina's Saga, Quantum Conscience, Echoes of the Fey, miraclr - Divine Dating Sim
- Organization: Woodsy Studio
- Location: St Louis
-
Contact:
#4
Post
by storykween » Sat Aug 15, 2015 12:37 pm
Yes, after I run the game from Steam I see:
Code: Select all
Imported steam.
Initialized steam.
... in the log.txt. Also, I'm hearing from players that the other achievements are working; only this one is broken

The other achievements look just like this one and use underscores. I keep poring over my game code but it's correct, and I've published all changes through Steam. I will try resubmitting everything again, but if that still doesn't work I guess I'll remove the achievement.
Thanks!
-
PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
#5
Post
by PyTom » Sat Aug 15, 2015 5:50 pm
Hm... This one looks like it's tied to a progress stat. That's likely the problem - Ren'Py doesn't support those yet.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
Users browsing this forum: No registered users