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

#31 Post by crimsonnight » Tue Apr 28, 2015 11:06 am

KairuKyun wrote: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.
It's the other way around, you extract your game to: sdk\tools\ContentBuilder\content also adding steam_appid.txt containing your app ID.
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

#32 Post by KairuKyun » Tue Apr 28, 2015 11:08 am

So you dont need the steam_appis.txt if you aren't adding achievements?
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

#33 Post by crimsonnight » Tue Apr 28, 2015 11:12 am

KairuKyun wrote:So you dont need the steam_appis.txt if you aren't adding achievements?
In the ren'py folder? I have it there just in case, but achievements aren't working for me!
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

#34 Post by KairuKyun » Tue Apr 28, 2015 11:15 am

And i'm guessing to include achievements you would put this in your script:

Code: Select all

$ achievement.grant(game_clear)
And in your steam works I am not sure what to do.
Sorry for all the questions, I just want to get this down.
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

#35 Post by KairuKyun » Tue Apr 28, 2015 11:16 am

This is very confusing huh. I have got my game to install properly, but looking into achievements i can't put my finger on it. Would we put game_clear somewhere in the steamworks?
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

#36 Post by crimsonnight » Tue Apr 28, 2015 11:17 am

KairuKyun wrote:And i'm guessing to include achievements you would put this in your script:

Code: Select all

$ achievement.grant(game_clear)
And in your steam works I am not sure what to do.
Sorry for all the questions, I just want to get this down.
That's what I believed to be the case, but isn't working for me - I'm hoping Tom will reply here with more information: http://lemmasoft.renai.us/forums/viewto ... 9&p=369274
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

#37 Post by KairuKyun » Tue Apr 28, 2015 11:19 am

Samer here, he redirected me here and it helped me get my game up. But now im working on achievements for my game and others.
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

#38 Post by KairuKyun » Tue Apr 28, 2015 11:21 am

Do you really need the achievement.register? Cant you just grant it, unless you have a progress one.
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

#39 Post by crimsonnight » Tue Apr 28, 2015 11:41 am

KairuKyun wrote:Do you really need the achievement.register? Cant you just grant it, unless you have a progress one.
Was just trying things to make sure I covered all bases!
alwaysthesamebluesky.com

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

#40 Post by PyTom » Tue Apr 28, 2015 5:59 pm

You only need achievement.register for progress, or if you want to use a different steam name. (And progress only works locally for the time being.)

You do want to quote the achievement name, so use:

Code: Select all

$ achievement.grant("game_clear")
To avoid errors.
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

#41 Post by crimsonnight » Wed Apr 29, 2015 7:44 am

PyTom wrote:You only need achievement.register for progress, or if you want to use a different steam name. (And progress only works locally for the time being.)

You do want to quote the achievement name, so use:

Code: Select all

$ achievement.grant("game_clear")
To avoid errors.
This method isn't working for me unfortunately. Have you had any luck KairuKyun?
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

#42 Post by KairuKyun » Wed Apr 29, 2015 9:48 am

I haven't tested this yet, I am trying to decrease the amount of lag in the game when in steam. And I'm waiting for my Artist to finish the pictures so I can test it with no errors.
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

#43 Post by crimsonnight » Wed Apr 29, 2015 9:51 am

KairuKyun wrote:I haven't tested this yet, I am trying to decrease the amount of lag in the game when in steam. And I'm waiting for my Artist to finish the pictures so I can test it with no errors.
Would you mind testing it now with temporary data?
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

#44 Post by KairuKyun » Wed Apr 29, 2015 9:57 am

Yeah, Sure ill get on that this afternoon.
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

#45 Post by crimsonnight » Wed Apr 29, 2015 10:23 am

Appreciated :)
alwaysthesamebluesky.com

Post Reply

Who is online

Users browsing this forum: Bing [Bot]