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

failed to init the steamworks API on basic installation #65

Closed
sameer-manek opened this issue Feb 8, 2023 · 1 comment
Closed

failed to init the steamworks API on basic installation #65

sameer-manek opened this issue Feb 8, 2023 · 1 comment

Comments

@sameer-manek
Copy link

I created a test project to test steamworks js, added a index.js file with following code:
`const sw = require("steamworks.js")

const client = sw.init(/app id/);

console.log(client.localplayer.getName());`

but when I tried to run it, received following error:
`C:\Users\samee\dev\work\grest_games\test\node_modules\steamworks.js\index.js:44
internalInit(appId)
^

Error: failed to init the steamworks API
at Object.module.exports.init (C:\Users\samee\dev\work\grest_games\test\node_modules\steamworks.
js\index.js:44:5)
at Object. (C:\Users\samee\dev\work\grest_games\test\index.js:3:19)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'GenericFailure'
}`

@ceifa
Copy link
Owner

ceifa commented Feb 12, 2023

Please read the official steamworks documentation to understand when it fails https://partner.steamgames.com/doc/sdk/api

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