Achievements in Renpy Game (Steam)

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
zabuzaeldemonio
Regular
Posts: 34
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Achievements in Renpy Game (Steam)

#1 Post by zabuzaeldemonio » Thu Jan 11, 2018 10:51 am

Hi guys, I have a few doubts about how to implement the achievements of steam, I've been reading in several places and the only thing I've had clear is:
- Define achievements on the steam directs page
- And add this piece of code in the place of achievement

Code: Select all

$achievement.grant("Start")
init: 
        $achievement.register("Start")
        $achievement.sync()

$achievement.sync()
This is the log.txt

Code: Select all

Thu Jan 11 16:05:51 2018
Windows-8-6.2.9200
Ren'Py 6.99.13.2919
 

Bootstrap to the start of init.init took 0.06s
Early init took 0.00s
Loader init took 0.11s
Loading error handling took 0.02s
Loading script took 2.35s
Loading persistent took 0.01s
Importing _renpysteam: ImportError('No module named _renpysteam',)
Running init code took 0.30s
Loading analysis data took 0.02s
Analyze and compile ATL took 0.05s
Index archives took 0.00s
Dump and make backups. took 0.16s
Cleaning cache took 0.00s
Making clean stores took 0.00s
DPI scale factor: 1.000000
Creating interface object took 0.04s
Cleaning stores took 0.00s
Init translation took 0.00s
Build styles took 0.00s
Load screen analysis took 0.01s
Analyze screens took 0.00s
Save screen analysis took 0.00s
Prepare screens took 0.04s
Save pyanalysis. took 0.00s
Save bytecode. took 0.00s
However when starting the game, I can not get the achievement, also before starting the game steam detects that there is an achievement blocked, does anyone have any idea how to solve this? Thank you very much

User avatar
Ocelot
Miko-Class Veteran
Posts: 606
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Achievements in Renpy Game (Steam)

#2 Post by Ocelot » Thu Jan 11, 2018 12:33 pm

You have missed a crucial step:
Add StamAPI support lobrary to your RenPy distribution.

I know that you had to contact RenpyTom directly before, do not know if it is still true now:
A high-level achievement API, including support for Steam achievements. (Steam support will be made available on request to Steam developers.)
https://www.renpy.org/release/6.99
< < insert Rick Cook quote here > >

User avatar
zabuzaeldemonio
Regular
Posts: 34
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Achievements in Renpy Game (Steam)

#3 Post by zabuzaeldemonio » Thu Jan 11, 2018 1:07 pm

Thank you very much, I will try to contact RenpyTom.

User avatar
Ocelot
Miko-Class Veteran
Posts: 606
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Achievements in Renpy Game (Steam)

#4 Post by Ocelot » Thu Jan 11, 2018 1:15 pm

It is PyTom on forums :). I just had Patreon page open at that time :)
< < insert Rick Cook quote here > >

User avatar
zabuzaeldemonio
Regular
Posts: 34
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Achievements in Renpy Game (Steam)

#5 Post by zabuzaeldemonio » Thu Jan 11, 2018 2:24 pm

It seems that my version already had the file that you mention, any idea?

Post Reply

Who is online

Users browsing this forum: jacobjumper, LVUER