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

provide more reasons why SteamAPI_Init might fail #42

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

ntauch
Copy link
Contributor

@ntauch ntauch commented Jun 22, 2024

I was helping my brother with his project, which uses luasteam, but couldn't get it to run initally. I would always receive the following error:

[S_API] SteamAPI_Init(): Loaded '/home/nkt/.local/share/Steam/linux64/steamclient.so' OK.
[S_API FAIL] SteamAPI_Init() failed; connect to global user failed.Couldn't connect to steam...
Do you have Steam turned on?
If not running from steam, do you have a correct steam_appid.txt file?

I had steam up and running and the steam_appid.txt had the correct app ID, so this wasn't it.
After digging through the documentation in steam_api.rst, I found several additional reasons, why this error could occur. It eventually turned out I was simply missing the product in my steam account, which was easy to remedy.

I suggest amending the existing error message with the additional information, which could help future users troubleshoot this problem more effectively 😊.

Copy link
Collaborator

@yancouto yancouto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yancouto yancouto merged commit 6a2ea80 into uspgamedev:master Jun 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants