Achievements

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
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Achievements

#1 Post by Triority »

Does anyone have any examples for using Steam Achievements ? I presume where the functions require a name it's the achievement ID that should be used ?

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Achievements

#2 Post by Obscura »

Do you mean like

Code: Select all

$achievement.grant("plant_killer")
I just insert that after a character ends up killing a plant in the script.

And yes, I believe that's the achievement ID.

This has more info:

viewtopic.php?t=45850
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: Achievements

#3 Post by Triority »

Yes, I've got :

$ achievement.grant("CHAPTER1") (The API Name is "CHAPTER1", and it's all been published)
$ achievement.sync()
$ achievement.Sync() (just in case that helps as well)

and start off with

$ achievement.Sync()
$ achievement.register("CHAPTER1")
$ achievement.sync()

At the moment nothing comes up - I don't whether its because the program hasn't been released yet or not - it is run through & downloaded from Steam

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Achievements

#4 Post by Obscura »

Hmmm, I remember getting nothing as well when testing on Steam the first time around. I believe I followed the additional steps in the thread I linked to get them to show up, but unfortunately I can't remember the details since it's been a while. :/
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: Achievements

#5 Post by Triority »

Is a library file needed as well as integration with the Steam API ?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]