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

#76 Post by PyTom » Wed May 06, 2015 4:24 pm

6.99.4 will have some diagnostics to help determine if steam support is detected properly.
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

#77 Post by crimsonnight » Wed May 06, 2015 4:28 pm

DeXP wrote:
crimsonnight wrote:PyTom has just sent me the zip file containing the files you mention, so I guess you'd need to PM him, although I've just tested it and achievements still aren't being picked up...
He just sent me this zip too. Achievements works correctly at least on Windows and Mac OS X.
Did you unzip it into the renpy directory, or the build directory?

*EDIT* I'm guessing it doesn't make a difference as if they're present in the renpy directory, they're also present in the build... I really can't figure this out T_T
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

#78 Post by KairuKyun » Thu May 07, 2015 11:15 am

Okay crimsonnight Pytom sent me the files i needed turns out i had the right idea the whole time but not the right files. When I get home ill test it and see if it works.
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

#79 Post by crimsonnight » Thu May 07, 2015 11:26 am

KairuKyun wrote:Okay crimsonnight Pytom sent me the files i needed turns out i had the right idea the whole time but not the right files. When I get home ill test it and see if it works.
Great! Looking forward to finally solving this puzzle lol
alwaysthesamebluesky.com

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

Re: Help integrating the Steam API

#80 Post by crimsonnight » Sun May 10, 2015 6:14 pm

Shiz has very kindly help me fix it! It's not using the latest ren'py functionality, but I can confirm it works:

1. Download the following file: https://shiz.me/junk/renpy/steam.py and place it in *name of your game*/game

2. Create a *name of your game*/game/libs directory and copy the following files from the LATEST steamworks SDK (found at https://partner.steamgames.com) to it:

redistributable_bin/steam_api.dll
redistributable_bin/osx32/libsteam_api.dylib
redistributable_bin/linux32/libsteam_api.so
redistributable_bin/linux64/libsteam_api.so renamed to: libsteam_api_64.so

3. Add the following to script.rpy:

Code: Select all

init python: 
    import steam 
    if steam.loaded: 
        steam.init() 
4. Finally, when you want to unlock something:

Code: Select all

$ steam.unlock_achievement('achievementname')
*EDIT* There's a problem with this method and Linux/Mac OS' - Shiz has edited this method slightly since this to fix this issue.
Last edited by crimsonnight on Thu May 14, 2015 7:06 pm, edited 1 time in total.
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

#81 Post by PyTom » Sun May 10, 2015 8:00 pm

I don't recommend those instructions, as it moves to an unofficial implementation, and not the supported one. 6.99.4 will include logging of errors initializing steam.
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
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

#82 Post by KairuKyun » Sun May 10, 2015 9:52 pm

Its tempting to take that route but if Pytom said no i might as well listen ;-;
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

#83 Post by PyTom » Sun May 10, 2015 10:23 pm

FYI, 6.99.4 is in prerelease, and I updated renpy-steam-libs to match. Now, on start, Ren'Py will log some steam-based information to log.txt.
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
Bryy
Veteran
Posts: 404
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Re: Help integrating the Steam API

#84 Post by Bryy » Sat Dec 12, 2015 1:39 am

So, I've done all the steps. Added the lib folder and steam_appid to my RPY folder.

But WHICH one?

The one in the Steam SDK? Content\AOT_Win? Or my base renpy folder on my desktop?

User avatar
Irich5
Regular
Posts: 89
Joined: Tue Apr 07, 2015 5:41 am
Completed: Treasure of a blizzard
Projects: Treasure of a blizzard, Forest Fortress
Organization: Flaming Firefly
Deviantart: irich5
Skype: irich555
Contact:

Re: Help integrating the Steam API

#85 Post by Irich5 » Mon Aug 01, 2016 12:01 am

I had a problem with the integration of steam.
You need to unzip the archive as said above.
But also be sure to click the publish button in steam.
Otherwise steamworks does not save the path to the executable file.
http://store.steampowered.com/app/508260/ - Treasure of a Blizzard on steam

https://www.patreon.com/Irich5 - patreon 18+ (hentai)

http://irich5.deviantart.com/ - my deviantart 12+

https://www.nutaku.net/games/download/t ... blizzard// Nutaku 18+ version Treasure of a Blizzard

Post Reply

Who is online

Users browsing this forum: Bing [Bot]