Error message when trying to add steam 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
parttimestorier
Veteran
Posts: 428
Joined: Thu Feb 09, 2017 10:29 pm
Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
Projects: Seeds of Dreams
itch: janetitor
Location: Canada
Contact:

Error message when trying to add steam achievements

#1 Post by parttimestorier » Wed Sep 23, 2020 7:09 pm

I'm trying to figure out how to add steam achievements to my game. The issue I'm having is in RenPy 6.99.14.3.3347.

I found this code when I searched google for information about adding steam achievements to RenPy, and I added it to my game and followed all its instructions. I'd like to export a build to test whether the achievements are working now, which I think they should. But if I try to launch the game through RenPy, I get an error message for a line from that code I added that says "AttributeError: function 'SteamUserStats' not found." I imagine that's an issue that might be fixed by just launching the game through steam - but if I try to click on "build distributions," it says, "Launching the project failed. Please ensure that your project launches normally before running this command." So I'm unable to make a build I can test through steam at all. Is there some kind of a workaround for that, or is there just something wrong with the code? Thanks!

Edit: In case anyone else happens to come across this thread in the future, I ended up successfully using achievements by following this tutorial instead of using the code I was asking about.
ImageImageImage

Post Reply

Who is online

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