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
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

#46 Post by KairuKyun » Wed Apr 29, 2015 11:04 pm

I cant get it :(

Code: Select all


    mom 'Hide, honey.'
    $ achievement.grant("game_clear")
    h 'I don\'t even know for how long I have been staring outside this window..'

This is what i tried and in my steamworks it looks like this.
http://lemmasoft.renai.us/forums/downlo ... w&id=33753
Attachments
Screen Shot 04-29-15 at 08.04 PM.PNG
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

#47 Post by crimsonnight » Thu Apr 30, 2015 4:04 am

KairuKyun wrote:I cant get it :(

Code: Select all


    mom 'Hide, honey.'
    $ achievement.grant("game_clear")
    h 'I don\'t even know for how long I have been staring outside this window..'

This is what i tried and in my steamworks it looks like this.
http://lemmasoft.renai.us/forums/downlo ... w&id=33753
Thanks for trying. We need Tom's help :(
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

#48 Post by KairuKyun » Thu Apr 30, 2015 11:03 pm

Im getting close I feel it. I forgot about the steam_appid.txt :P
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

#49 Post by KairuKyun » Thu Apr 30, 2015 11:29 pm

Do I need it to turn into a .dll or do i need to make a lib folder?
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
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

#50 Post by jack_norton » Fri May 01, 2015 5:45 am

crimsonnight wrote: Thanks for trying. We need Tom's help :(
Tom has nothing to do with this. I updated 15 games on Steam and all achievements works. So the lib works, I don't know what you're doing wrong but must be something.
You're all using that app_id.txt trick, just publish it on Steam (as pre-release, so only you can download/play it from the client) and see if that works. That's how I did and worked.
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

#51 Post by crimsonnight » Fri May 01, 2015 5:51 am

jack_norton wrote:
crimsonnight wrote: Thanks for trying. We need Tom's help :(
Tom has nothing to do with this. I updated 15 games on Steam and all achievements works. So the lib works, I don't know what you're doing wrong but must be something.
You're all using that app_id.txt trick, just publish it on Steam (as pre-release, so only you can download/play it from the client) and see if that works. That's how I did and worked.
Literally just including our unique Steam app id in 'app_id.txt' and putting that file in both the renpy and the game's directories? I think we've both done that. Do we need to put any specific Steam api files in the root of the renpy directory? At the moment I have everything Steam related in the 'sdk' folder which I've placed in the root of the renpy directory. Thanks for helping! :)
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

#52 Post by jack_norton » Fri May 01, 2015 7:29 am

I didn't put any app_id.txt in the game directory. That's what I'm saying, maybe doing that is the problem. You should just remove it completely and publish on Steam, download it from Steam, and launch from Steam. Not Ren'Py.
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

#53 Post by crimsonnight » Fri May 01, 2015 7:43 am

jack_norton wrote:I didn't put any app_id.txt in the game directory. That's what I'm saying, maybe doing that is the problem. You should just remove it completely and publish on Steam, download it from Steam, and launch from Steam. Not Ren'Py.
Tried removing app_id.txt from the game directory, didn't make a difference :(
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

#54 Post by KairuKyun » Fri May 01, 2015 8:34 am

Okay, I have been able to launch the game perfectly from steam. I can get it up and everything without the app_id.txt. maybe your not publishing it right?
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

#55 Post by crimsonnight » Fri May 01, 2015 8:57 am

KairuKyun wrote:Okay, I have been able to launch the game perfectly from steam. I can get it up and everything without the app_id.txt. maybe your not publishing it right?
No problem running it on Steam, just with achievements. I know it can run without 'steam_appid.txt' but it's good practice to include it apparently - either way though, achievements aren't showing up for me - I'm guessing they're still not working for you either?
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

#56 Post by KairuKyun » Fri May 01, 2015 11:00 am

Not yet, but I will keep testing. If Jack got it than it means it is possible. I think I need to include a lib folder with some .dll? i dont know i have been looking at other games made with renpy that are on steam. I will keep testing.
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
ebi-hime
Veteran
Posts: 400
Joined: Sat Aug 24, 2013 8:18 pm
Completed: Asphyxia, Blackberry Honey, The Language of Love, etc
Tumblr: ebi-hime
itch: ebihime
Contact:

Re: Help integrating the Steam API

#57 Post by ebi-hime » Tue May 05, 2015 1:12 am

I'm having the same problem. I managed to get my game onto Steam just fine, after following the advice on this thread, but my achievements still won't unlock.
I'm thinking maybe I didn't include all the files I need to include to allow for achievements to unlock with ren'py? I'm not sure what the problem could be...
Oh, and I was also doing what everyone else was doing with the app_id.txt thing.
I have a lot of free & commercial VNs available on Steam and itchio.io if you want to check them out! ☆

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

#58 Post by KairuKyun » Tue May 05, 2015 11:10 am

After much research it seems we need a steamappi.dll somewhere in the game. I cant figure our what or where it should be though. I dont even know if that is right though.
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
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

#59 Post by PyTom » Tue May 05, 2015 11:18 am

It should be part of the files included in the zip I gave out.
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

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

#60 Post by jack_norton » Tue May 05, 2015 11:23 am

The name is steam_api.dll and is in the zip indeed, in path lib/windows-i686/. I suspect all those people here having problems didn't unzip the file correctly.
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: Bing [Bot]