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:

Help integrating the Steam API

#1 Post by crimsonnight » Wed Apr 01, 2015 10:16 am

Hi all,

My novel's been Greenlit, so I now need to integrate the Steam API but am finding it a little overwhelming. According to these instructions, what's the minimum I need to do to prepare my game for distribution on Steam?: https://partner.steamgames.com/document ... ng_started
Is it complicated to add achievements?
Is it ok to include any extra files/code in non-Steam builds of the game?

Thanks!
alwaysthesamebluesky.com

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Help integrating the Steam API

#2 Post by SundownKid » Wed Apr 01, 2015 6:07 pm

You can message Pytom and he will send you the instructions for adding achievements. But it's mainly similar to changing a variable in the game, except you are just turning the achievement on, or adding an amount to it. As for the achievements themselves, you make those within Steam.

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

Re: Help integrating the Steam API

#3 Post by crimsonnight » Fri Apr 03, 2015 7:54 am

Been trying to catch him on IRC - any advice regarding my other queries?
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

#4 Post by jack_norton » Fri Apr 03, 2015 9:33 am

Unfortunately I don't have time now but I made a short guide worth checking:
http://lemmasoft.renai.us/forums/viewto ... 51&t=29362
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

#5 Post by crimsonnight » Fri Apr 03, 2015 12:19 pm

jack_norton wrote:Unfortunately I don't have time now but I made a short guide worth checking:
http://lemmasoft.renai.us/forums/viewto ... 51&t=29362
Hi, thanks Jack, I have seen that, but it's integrating the API that I'm mainly struggling with. Are you able to help?
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

#6 Post by PyTom » Fri Apr 03, 2015 6:42 pm

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

#7 Post by crimsonnight » Sat Apr 04, 2015 5:14 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.
Ok, thanks Tom, so literally just extract the files to the core Ren'Py directory and build the distributions as usual? Just the standard achievements outlined here: http://www.renpy.org/doc/html/achievement.html will work with Steam?
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

#8 Post by PyTom » Sat Apr 04, 2015 3:10 pm

Yes, the standard API should automatically enable steam if present. (You'll see the steam overlay pop up.)
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

#9 Post by crimsonnight » Tue Apr 14, 2015 4:48 am

PyTom wrote:Yes, the standard API should automatically enable steam if present. (You'll see the steam overlay pop up.)
Hi Tom, sorry for the delay, was waiting to receive my appID. I've extracted the sdk zip to the root of my Ren'Py folder and added the steam_appid.txt (containing my ID) to the same folder, but I'm not seeing the Steam overlay present in the built distribution. I've tried both the 'sdk' folder and its child folders in the root directory but neither seem to be enabling the SteamUI - what am I doing wrong? Thanks
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

#10 Post by PyTom » Tue Apr 14, 2015 11:29 pm

Depending on the platform, you may need to have steam running, or even launch the game from the steam launcher. You'll also need to copy the appid file into the built distribution.
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

#11 Post by crimsonnight » Fri Apr 17, 2015 2:19 pm

PyTom wrote:Depending on the platform, you may need to have steam running, or even launch the game from the steam launcher. You'll also need to copy the appid file into the built distribution.
Hi Tom,

I've uploaded my novel to Steam (using the following guide: https://youtu.be/SoNH-v6aU9Q) but when trying to run it from my Steam library I get the following error: 'Failed to start game (invalid app config)'. Do you know what I could be doing wrong? I've attached a screengrab of the folder I'm uploading to Steam which just contains the standard Ren'Py project output with the extra 'steam_appid.txt' file. Thanks.
Attachments
Capture.JPG
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

#12 Post by PyTom » Fri Apr 17, 2015 2:24 pm

I don't know, offhand. Perhaps one of the other steam users can help.
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

#13 Post by jack_norton » Fri Apr 17, 2015 2:38 pm

Seems a problem of setup on Steam panel to me. Did you configure the launch options there ?
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

#14 Post by crimsonnight » Fri Apr 17, 2015 5:00 pm

jack_norton wrote:Seems a problem of setup on Steam panel to me. Did you configure the launch options there ?
Under Installation -> Configuration? I have indeed, according to your guide (screengrab attached).

I've grabbed the code from the build/upload process - there was an error, but as the whole project seems to have uploaded I'm guessing it's not the issue?

Code: Select all

[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Logging in user 'grantwilde' to Steam Public...httpclient.cpp (3706) : Assertion
 Failed: (uint32)m_pHTTPRequestCache->m_listCacheFileLRU.Count() == (uint32)m_pH
TTPRequestCache->m_mapCacheFiles.Count()
Logged in OK
Waiting for license info...OK
[2015-04-17 18:46:33]: Building depot 363411...


Building file mapping...httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTT
PRequestCache->m_listCacheFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapC
acheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()

Scanning contenthttpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequest
Cache->m_listCacheFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFile
s.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
..httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listC
acheFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
httpclient.cpp (3706) : Assertion Failed: (uint32)m_pHTTPRequestCache->m_listCac
heFileLRU.Count() == (uint32)m_pHTTPRequestCache->m_mapCacheFiles.Count()
........................................................................
Uploading content.........................
[2015-04-17 19:07:37]: Successfully finished appID 363410 build (BuildID 593520)
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

#15 Post by jack_norton » Sat Apr 18, 2015 2:34 am

Did you enable the new build in the default branch ?
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: Bing [Bot]