Error message when trying to add steam achievements
Posted: 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.
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.