Steam Achievements Issue (and Overlay)

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
Bertran
Regular
Posts: 33
Joined: Tue May 02, 2017 12:58 pm
Projects: Run, Kitty!
Deviantart: bertranway
Skype: bertranway
Contact:

Steam Achievements Issue (and Overlay)

#1 Post by Bertran »

Hello, guys!

I need a help. My game will be released in 5 days, and... achievements in game doesn't work at all.
I downloaded "lib" Steam support, also pasted steamapp_id.txt with game ID...

Try to run the game on Steam, and what we see...

Image

Here is achievement list.

Image

"lib" folder includes these.
Image

1. Overlay shows really buggy (top name is above the screen), and a bit laggy.
2. There is no any icons of achievements and closest achievements.
3. The script in game has command $ unlock_ach("KITTY_GOOD") for unlock achievement. I wonder that's why it doesn't work? How to get it worked than with this command?

I would be so happy if someone helped, because I don't know anyone who I can ask... Thank you.

UPD. Issue resolved. To everyone - please go to 'Preferences' in RenPy launcher (7.4.4 version or higher), press "Install Libraries" - Install Steam library. After this everything works fine.
Last edited by Bertran on Sun Nov 07, 2021 1:28 pm, edited 1 time in total.

User avatar
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: Steam Achievements Issue (and Overlay)

#2 Post by Syrale »

Hey there,

I'm not sure if $unlock_ach() is supported. Have you checked out this page yet?
https://www.renpy.org/doc/html/achievement.html
I got achievements to work in my game with those. Hope that helps!
ImageArtificial Selection (ongoing) |ImageDeep Sea Valentine | ImageRobot Daycare (NaNo19)
| ImageArtificial Fashionista (NaNo24)

My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+

User avatar
Bertran
Regular
Posts: 33
Joined: Tue May 02, 2017 12:58 pm
Projects: Run, Kitty!
Deviantart: bertranway
Skype: bertranway
Contact:

Re: Steam Achievements Issue (and Overlay)

#3 Post by Bertran »

Syrale wrote: Sun Nov 07, 2021 7:44 am Hey there,

I'm not sure if $unlock_ach() is supported. Have you checked out this page yet?
https://www.renpy.org/doc/html/achievement.html
I got achievements to work in my game with those. Hope that helps!
I'm not sure how I can paste such codes if I have always "labels" in game.
Can you please show examples how you paste it in code?

User avatar
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: Steam Achievements Issue (and Overlay)

#4 Post by Syrale »

Alright, so the full list of things you need to do is the following. Somewhere in your code, include:

Code: Select all

define config.steam_appid = 0000000
(Replace 0000000 with your actual app ID)
And also:

Code: Select all

init python:
    achievement.sync()
    achievement.register("KITTY_GOOD")
    achievement.register("KITTY_NORMAL")
(And so on, for all of your achievements)

Once those two things are set up, you can use $achievement.grant("KITTY_GOOD") at any point in your game.
ImageArtificial Selection (ongoing) |ImageDeep Sea Valentine | ImageRobot Daycare (NaNo19)
| ImageArtificial Fashionista (NaNo24)

My Developer Tools: Ren'Py Minimap/Location System | Ren'Py Word Counter+

User avatar
Bertran
Regular
Posts: 33
Joined: Tue May 02, 2017 12:58 pm
Projects: Run, Kitty!
Deviantart: bertranway
Skype: bertranway
Contact:

Re: Steam Achievements Issue (and Overlay)

#5 Post by Bertran »

Somewhere - I can also include it at the start of scenario.rpy?

And after this init and register all achievements?

User avatar
Bertran
Regular
Posts: 33
Joined: Tue May 02, 2017 12:58 pm
Projects: Run, Kitty!
Deviantart: bertranway
Skype: bertranway
Contact:

Re: Steam Achievements Issue (and Overlay)

#6 Post by Bertran »

Unfortunately, this doesn't work at all. Achievement still doesn't shown.
Overlay doesn't shown closest achievement icon.
And also there is nothing happens when I target the place in code for achievement.

I tried this

Code: Select all

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

    $achievement.sync()
And this also

Code: Select all

define config.steam_appid = 1630630
It doesn't help at all. I can't get anything. I have 7.4.4.1439 version of RenPy.

I dowloaded lib support from here - http://www.renpy.org/dl/steam/renpy-steam-libs.zip and followed this guide - viewtopic.php?f=51&t=50060, but it all doesn't help...

User avatar
Bertran
Regular
Posts: 33
Joined: Tue May 02, 2017 12:58 pm
Projects: Run, Kitty!
Deviantart: bertranway
Skype: bertranway
Contact:

Re: Steam Achievements Issue (and Overlay)

#7 Post by Bertran »

UPD. Incredible answer of this problem.

Please, go to preferences - install libraries - install Steam support.

It's IMPORTANT. You don't even need "lib" folder from site, or other guides anymore. YOU ONLY NEED TO DO THIS.

Oh my gosh... Thanks, all achivements works now perfectly!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Ocelot