Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steamworks.SteamClient.Init Fails on SteamDeck #801

Open
snarlynarwhal opened this issue Jan 21, 2025 · 0 comments
Open

Steamworks.SteamClient.Init Fails on SteamDeck #801

snarlynarwhal opened this issue Jan 21, 2025 · 0 comments
Assignees

Comments

@snarlynarwhal
Copy link

snarlynarwhal commented Jan 21, 2025

Describe the bug
Steamworks.SteamClient.Init fails on SteamDeck. It throws this exception:

Exception: SteamApi_Init failed with VersionMismatch - error: No m_api

To Reproduce
Steps to reproduce the behavior:

  1. Add this SteamManager script to a scene.
  2. Build for Linux and test on SteamDeck.
using Steamworks;
using UnityEngine;

public class SteamManager : MonoBehaviour
{
    private const int gameId = <game-id>;

    private void Awake()
    {
        try
        {
            SteamClient.Init(gameId);
        }
        catch(System.Exception e)
        {
            Debug.LogException(e);

            if (!Application.isEditor && !Debug.isDebugBuild)
            {
                Application.Quit();
            }
        }
    }

    private void OnDestroy()
    {
        SteamClient.Shutdown();
    }
}

Calling Code

SteamClient.Init(gameId);

Expected behavior
I expect SteamClient to initialize without throwing an exception.

Desktop (please complete the following information):

  • OS: Linux 6.5 Steam Runtime 2 64bit
  • Unity: Unity 2022.3.41

Additional context
It works as expected on Windows. I also made sure Steam is up-to-date on the SteamDeck.

EDIT: I found additional information that may be related:

rlabrecque/Steamworks.NET#647
https://steamcommunity.com/groups/steamworks/discussions/27/4298194722196382031/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants