Problems with steam integration (Failed to initialize steam)

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.
Post Reply
Message
Author
Alem
Regular
Posts: 38
Joined: Wed Mar 15, 2017 7:53 am
Contact:

Problems with steam integration (Failed to initialize steam)

#1 Post by Alem » Mon Jul 10, 2017 3:30 pm

Hello, I got stuck with the Steam integration. So far the overlay works fine, Steam tracks the in-game time but I can't activate any achievements.

First of all, I have a log error after starting the game:

Code: Select all

Bootstrap to the start of init.init took 0.07s
Early init took 0.02s
Loader init took 0.05s
Loading error handling took 0.05s
Loading script took 0.22s
Loading persistent took 0.03s
Imported steam.
Failed to initialize steam.
Running init code took 0.37s
After this, all seems fine to me, but the full log is in the attachment. I'm running the last Ren'py version (6.99.12.4.2187), the sdk says there is no newer version. Checked all the steam libraries and re-copied them into the lib folder.

The next probable screwup point is the app id. It lives in the steam_appid.txt file in the root Ren'py folder like E:/SDK/ and contains a single 6-digit string like this:

Code: Select all

XXXXXX
I couldn't check if this is the right way to define game's id, but the instructions were pretty clear - just create a .txt with the number. The string itself is the number I got from Steam, Steamworks > App Admin Game's name (ID) to be exact. Maybe it needs something extra to activate?

And the last potential trouble point is the achievement's granting process itself. I used the solution from another thread so it looks like this:

Code: Select all

    #here ends one of the paths and the final fade out begins

    $achievement.grant("ED1")
    init: 
        $achievement.register("ED1")
        $achievement.Sync()

    $achievement.Sync()

    scene black
    with fade
    
    window hide
    pause 0.1
    
    jump quit
Tried to use both human-readable names for achievements and their IDs (in the 1/0, 1/1 format) and it doesn't work for me. Uploaded fresh builds to steam and ran them from there and tried them locally. The game doesn't register unlocks at all. Any ideas?

Thank you!
Attachments
log.txt
(10.06 KiB) Downloaded 140 times

Alem
Regular
Posts: 38
Joined: Wed Mar 15, 2017 7:53 am
Contact:

Re: Problems with steam integration (Failed to initialize st

#2 Post by Alem » Tue Jul 11, 2017 1:06 pm

Okay, got achievements to work. The screw-up point was in Steam itself - I didn't publish the achievements after saving them in the achiev tab >< Don't forget to check the publish tab after updates.

User avatar
Xerofit51
Veteran
Posts: 374
Joined: Thu Jan 09, 2014 12:58 am
Completed: Freak-quency, Harvest-Moon spin off
Projects: Freak-quency
Deviantart: xerofit51
Location: Indonesia
Contact:

Re: Problems with steam integration (Failed to initialize steam)

#3 Post by Xerofit51 » Sat Aug 26, 2017 10:19 am

I have your exact log however my game can't seem to start via steam at all, just to make sure, you put the app_id in the game folder of your game, no?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], span4ev