Help integrating the Steam API
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.
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.
- 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
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(When was the last time you backed up your game?)
"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
Did you unzip it into the renpy directory, or the build directory?DeXP wrote:He just sent me this zip too. Achievements works correctly at least on Windows and Mac OS X.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...
*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
- 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
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
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
Great! Looking forward to finally solving this puzzle lolKairuKyun 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.
alwaysthesamebluesky.com
-
crimsonnight
- Veteran
- Posts: 298
- Joined: Fri Apr 20, 2012 4:44 am
- Contact:
Re: Help integrating the Steam API
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:
4. Finally, when you want to unlock something:
*EDIT* There's a problem with this method and Linux/Mac OS' - Shiz has edited this method slightly since this to fix this issue.
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() Code: Select all
$ steam.unlock_achievement('achievementname')
Last edited by crimsonnight on Thu May 14, 2015 7:06 pm, edited 1 time in total.
alwaysthesamebluesky.com
- 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
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- 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
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
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
- 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
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- 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
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?
But WHICH one?
The one in the Steam SDK? Content\AOT_Win? Or my base renpy folder on my desktop?
- 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
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.
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
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
Who is online
Users browsing this forum: Bing [Bot]