• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by GameDevSA · Dec 04, 2021 at 01:49 AM · error messageapilinuxsteam.net

[Steamworks.NET] SteamAPI_Init() failed, Windows, Linux + Proton

So I am trying to get the Steamworks.net API working and it's proving more difficult than expected. I have been getting the error: [Steamworks.NET] SteamAPI_Init() failed.

I am aware this question has been asked by other people before, but I have been Googling for ages and not found a clear answer that helps me. Some perhaps are out of date.

I am using:

 Unity Version 2019.4.33f1 LTS
 Steamworks.NET version 20, pre-release, .unitypackage version

The two versions are supposed to be compatible.

The game works fine when I run it in the editor, but crashes in a build with that error: [Steamworks.NET] SteamAPI_Init() failed.

Ironically, Build + Run doesn't crash initially (but if I navigate to the EXE file and try run it, then it does crash), but just Build does crash for some reason. Someone in a thread somewhere said they fixed it by including the steam_appid.txt file in the build folder. That did fix the error on my PC and for other Windows users, however, I am having trouble with Linux + Proton users still and trying to work out the cause.

But the FAQ says don't put the steam_appid.txt in the build folder, that you shouldn't ship it to customers, but acknowledges it fixes the problem. It does not mention an alternative. I find this very confusing: how am I supposed to fix it then?

  1. Why shouldn't I give it to customers? Is it because the App ID shouldn't be shared?
  2. If I don't give it to customers, how am I supposed to prevent the error when submitting to Steam?
  3. What is the right way to handle this error?

Currently I am mainly focusing on a Windows solution as my game is only saying it's targeting Windows users. However, if anyone has experience / insights with getting Linux + Proton working with Steamworks API, I'm curious to know if you used the same solution? I would like to get it working for Linux + Proton as well.

I tried handing a test user, who is running Linux + Proton, a build with the steam_appid.txt file in the build folder and it still gave the same error: [Steamworks.NET] SteamAPI_Init() failed. It's like Linux + Proton just don't like the Steamworks.NET API? Has anyone found a way around this error for Linux + Proton?

Thanks in advance for your help.

Comment

People who like this

0 Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image GameDevSA · Dec 04, 2021 at 02:03 PM 0
Share

Ok I did a test. It turns out that if you delete the steam_appid.txt file from the build folder, and submit to steam, it works and doesn't crash. But for some reason to test outside of steam, you need the steam_appid.txt in the Builds folder. But I still have no idea how to prevent the issue on Linux + Proton because I get the issue there with or without the steam_appid.txt file.

avatar image GameDevSA · Dec 17, 2021 at 05:36 AM 0
Share

Still trying to work out why this won't work with Linux + Proton.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

186 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to store/show player choices 1 Answer

Can't upload skin/t-shirt to the Steam Workshop (Rust SDK, on Mac) 0 Answers

Steam Leaderboards in Unity, upload time since level load 0 Answers

Installing a .net Package found two csproj's which one to use ? 0 Answers

Unity 2019.4.3 steamvr asset pack - HMD/controllers not being used, defaults to stereo display 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges