Skip to content

[Bug]: userHasLicenseForApp method bug? #34

@comko123

Description

@comko123

Bug Description

The problem of 2 being returned unconditionally when using the method.

Steps to Reproduce

steamInstance.init({ appId: 480 }) After running A, I ran userHasLicenseForApp (with the ID of the game I actually own) but it always returns 2.

Expected Behavior

return 0 or 1

Actual Behavior

awalys 2 return

Code Sample

const steamInstance = SteamworksSDK.getInstance()
steamInstance.init({ appId: 480 })
console.log(
      "license : " +
        steamInstance.user.userHasLicenseForApp(
          steamInstance.getStatus().steamId,
          480
        )
    )

Affected API

User API

Package Version

0.8.7

Operating System

Windows 11

Node.js Version

version 23.11.1

Environment

Electron

Error Logs

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • Steam client is running and I'm logged in
  • I have run npm run verify-sdk and it passes

Additional Context

The Steam client was running, and when I entered the ID of the game I was actually playing, it always returned 2. I also ran the init method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions