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

Issue with client.apps being undefined #57

Closed
Braymen opened this issue Dec 24, 2022 · 4 comments · Fixed by #58
Closed

Issue with client.apps being undefined #57

Braymen opened this issue Dec 24, 2022 · 4 comments · Fixed by #58

Comments

@Braymen
Copy link

Braymen commented Dec 24, 2022

Hi there!
I'm currently running into an issue with trying to access the functions in client.apps. For some reason, it doesn't seem to include those functions when I print it out, nor when I try them. I just get a client.apps is undefined. Here is an example of what I am trying to do.

  const steamworks = require('steamworks.js')
  let client

  try {
    client = steamworks.init(2233750)
  } catch (err) {
    console.log(err)
    client = null
  }

  console.log(client.apps.appBuildId())
  console.log('client', client)

As you can see in the image below, I'm not seeing apps either in that list.

Screen Shot 2022-12-24 at 1 42 09 AM

Here is the error:
Screen Shot 2022-12-24 at 1 44 50 AM

Version: 0.0.25
OS: Mac

Any help here? I can't seem to find documentation on it, so I can't tell if it's a bug or if it's an issue on my end. I typically think it's an issue on my end. I kind of wonder if it's due to me being on a Mac. Maybe the dist for Mac wasn't built yet?

@ceifa
Copy link
Owner

ceifa commented Dec 24, 2022

The MacOS build for Apple Silicon processors it's in an older version of steamworks.js.
Related #17

@Braymen
Copy link
Author

Braymen commented Dec 24, 2022

@ceifa Ah! I see! Is there any way I can build the dist for it myself? I have a m1 Mac and don’t mind running a build for it and putting the dist in manually. You have some great work here.

I can of course contribute it as well, if there’s an interest, but I don’t mind a manual process for myself.

@Braymen
Copy link
Author

Braymen commented Dec 24, 2022

I've gone ahead and completed a build. I was able to figure it out. Pull request has been added if you'd like to include an updated build for macs.

@ceifa ceifa closed this as completed in #58 Dec 24, 2022
@ceifa
Copy link
Owner

ceifa commented Dec 24, 2022

Thanks for it! Just released the version 0.0.26 for you.
Merry christmas!

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 a pull request may close this issue.

2 participants