question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.

See original GitHub issue

Hi, I’m running Unity 5,3,1f Personal.

My first game was recently Greenlit http://steamcommunity.com/sharedfiles/filedetails/?id=542685634 so this is my first time getting a game onto Steam.

I imported the SteamWorks.NET Unity component as per the instructions here https://steamworks.github.io/installation/

steam_api.dll did not appear in the root, but the steam_appid.txt did and I edited it, making it my own appid. While poking around I found steam_api.dll under Assets/Plugins/x86.

So not 100% sure that the import went correctly.

When I have steam running and launch the game in Unity UI I get this error. Same if I run a stand alone build.

[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information. UnityEngine.Debug:LogError(Object, Object) SteamManager:Awake() (at Assets/Scripts/Steamwork.NET/SteamManager.cs:97)

Is this normal? Is it because I am not launching it from Steam?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:50 (6 by maintainers)

github_iconTop GitHub Comments

24reactions
thestonefoxcommented, May 17, 2016

I’ve resolved the issue, I’ll post in case someone else hits the same problem.

The issue is because my app ID is for an unpublished app and my steamworks account is not the same as the account I log into steam on my desktop with, it means the API doesn’t have permission to access the App ID.

I resolved it by adding a permission for my desktop steam account within my steamworks web page and now it’s working.

This is probably obvious to most people! 😃 but if you’re stumped like I was, then try this! 😃

3reactions
IdleLemonzcommented, Jul 12, 2023

Just to be clear, best practice is that you include the steam_appid.txt in the root folder while testing only. When you build for Steam, you should not include that .txt file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SteamAPI_Init() failed. Refer to Valve's documentation or ...
[Steamworks.Net] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information. It works fine in ...
Read more >
[Steamworks.NET] SteamAPI_Init() failed.
The game works fine when I run it in the editor, but crashes in a build with that error: [Steamworks.NET] SteamAPI_Init() failed.
Read more >
SteamManager
NET ] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.", this); return; } } ...
Read more >
Anyone else getting "Steam API init failed" in Steam Proton?
I start the game and it immediately crashes with that error. ... Refer to Valve's documentation or the comment above this line for...
Read more >
Game crashes on startup Steam API init failed
Exception: [Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found