Help integrating the Steam API

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.
Message
Author
crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#16 Post by crimsonnight » Sat Apr 18, 2015 4:17 am

jack_norton wrote:Did you enable the new build in the default branch ?
Yep! It downloaded the full project, just get that error when trying to 'play' it.
alwaysthesamebluesky.com

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Help integrating the Steam API

#17 Post by jack_norton » Sat Apr 18, 2015 6:02 am

Uhm I have no clue then what might be wrong :|
follow me on Image Image Image
computer games

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#18 Post by crimsonnight » Thu Apr 23, 2015 4:42 am

PyTom wrote:Basically, you have to unzip the files, add a steam_appid.txt file to the directory with renpy.exe in it, and then use the new achievements API documented in the Ren'Py manual.
Hi managed to get the novel running correctly on Steam, the problem was with Steamworks. The achievements don't seem to be registering though, what am I missing from my code to get the achievement to register with Steam?:

Code: Select all

$ achievement.grant("Femme Fatale")
$ achievement.register("Femme Fatale")
Thanks
alwaysthesamebluesky.com

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Help integrating the Steam API

#19 Post by jack_norton » Thu Apr 23, 2015 5:15 am

I don't even use the register option. As long as the string is the same on Steam, is enough to use the first command.
For example if the achievement ID is "Achievement01" I just do:
$achievement.grant("Achievement01")
and done. I think maybe you're using the achievement NAME and not the ID (is the leftmost column on Steam).

By the way, what was that Steamwork error? I have some users who had that "invalid app config" problem too, but on my end all works fine!
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Help integrating the Steam API

#20 Post by PyTom » Thu Apr 23, 2015 11:57 am

If you do use register, you should use it in init code. But for simple achievements, it's not necessary.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#21 Post by crimsonnight » Fri Apr 24, 2015 7:36 pm

jack_norton wrote:I don't even use the register option. As long as the string is the same on Steam, is enough to use the first command.
For example if the achievement ID is "Achievement01" I just do:
$achievement.grant("Achievement01")
and done. I think maybe you're using the achievement NAME and not the ID (is the leftmost column on Steam).

By the way, what was that Steamwork error? I have some users who had that "invalid app config" problem too, but on my end all works fine!
Cheers guys, apologies for the delay, I had an issue getting an updated test on the server. I've attached what I have on both ends and according to what everyone's saying it should be correct no? I've also tried "1/0" instead of "FemmeFatale" but neither seem to be working.

Sorry, I never found out what the error was, I just effectively started from scratch, erasing and re-entering all my settings, then after publishing the error disappeared luckily. Maybe it's because I'm not a natural coder, but I do find Steamworks incredibility unintuitive.
Attachments
Capture.JPG
alwaysthesamebluesky.com

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Help integrating the Steam API

#22 Post by jack_norton » Sat Apr 25, 2015 2:24 am

First of all there seems to not be images on the achievement setup, so I don't think it can work already for that :)
Yes that other bug (invalid app config) was just a general Steam bug, other games have it too and nothing you can do about it (but usually goes away after a while).
follow me on Image Image Image
computer games

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#23 Post by crimsonnight » Sat Apr 25, 2015 7:27 am

jack_norton wrote:First of all there seems to not be images on the achievement setup, so I don't think it can work already for that :)
Yes that other bug (invalid app config) was just a general Steam bug, other games have it too and nothing you can do about it (but usually goes away after a while).
Just tried adding images, still not having any luck :(
alwaysthesamebluesky.com

User avatar
DeXP
Newbie
Posts: 10
Joined: Wed Nov 12, 2014 10:39 am
Completed: One Manga Day
Github: DeXP
Skype: DeXPeriX
Soundcloud: dexp-music
Contact:

Re: Help integrating the Steam API

#24 Post by DeXP » Sun Apr 26, 2015 9:06 am

I have extracted steam SDK to my RenPy's folder. So it is in: c:\gnu\RenPy\renpy-6.17.6-sdk\sdk\
I have putted steam_appid.txt to c:\gnu\RenPy\renpy-6.17.6-sdk\
I have updated RenPy to 6.99.2.403
Then I have build distribution of my game (for All Desktop Platforms).
And there is no steam_api.dll or libsteam_api.so in my 'lib' subfolders. Should I copy them by hands? Simply copy from downloaded SDK? I have copied libsteam_api, achievements doesn't works...
Last edited by DeXP on Mon Apr 27, 2015 3:09 am, edited 1 time in total.

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Help integrating the Steam API

#25 Post by KairuKyun » Sun Apr 26, 2015 8:43 pm

I would like to know how to start setting up my game for steam?
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#26 Post by crimsonnight » Mon Apr 27, 2015 6:15 am

DeXP wrote:I have extracted steam SDK to my RenPy's folder. So it is in: c:\gnu\RenPy\renpy-6.17.6-sdk\sdk\
I have putted steam_appid.txt to c:\gnu\RenPy\renpy-6.17.6-sdk\
I have updated RenPy to 6.99.2.403
Then I have build distribution of my game (for All Desktop Platforms).
And there is no steam_api.dll or libsteam_api.so in my 'lib' subfolders. Should I copy them by hands? Simply copy from downloaded SDK? I have copied libsteam_api, achievements doesn't works...
This really confused me too. As far as I'm aware, the ren'py building process is completely separate to the Steam one - build via ren'py as normal then tackle the Steam stuff, here's what I did:

Build distributions via ren'py as normal
Unzip and move all content to 'sdk\tools\ContentBuilder\content'
Added 'steam_appid.txt' to the same directory
Then followed the YouTube guide from around here: https://youtu.be/SoNH-v6aU9Q?t=4m22s (although I'd recommend watching the whole thing)

I really muddled my way through though (as is probably evident by this thread) so sorry if I'm not much help!

Anybody got any idea why my Steam achievements aren't working?
alwaysthesamebluesky.com

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Help integrating the Steam API

#27 Post by KairuKyun » Tue Apr 28, 2015 1:03 am

I have got my game on steam now, but i noticed the Shift+tab menu is a little laggy. I don't know if this is just my game. Anyone else having this problem?
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: Help integrating the Steam API

#28 Post by crimsonnight » Tue Apr 28, 2015 4:53 am

KairuKyun wrote:I have got my game on steam now, but i noticed the Shift+tab menu is a little laggy. I don't know if this is just my game. Anyone else having this problem?
No problems with that my end!
alwaysthesamebluesky.com

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Help integrating the Steam API

#29 Post by KairuKyun » Tue Apr 28, 2015 10:54 am

I guess I just need to optimize my game some more!!! Thanks for the reply.
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Help integrating the Steam API

#30 Post by KairuKyun » Tue Apr 28, 2015 11:03 am

So when you say extract the steam sdk to your game do you need to literally copy everything in the sdk zip? And then make a steam_appid.txt? I am very new to publishing games on steam.
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

Post Reply

Who is online

Users browsing this forum: Bing [Bot]