Skip to content

Prebuild for NW.js 0.49.2-0.53.0 doesn't function correctly #575

Open
@utunnels

Description

@utunnels

Describe the bug
Prebuild for NW.js 0.49.2-0.53.0 doesn't function correctly like it used to do. Many APIs don't return correct results or don't recognize arguments passed from JavaScript.

To Reproduce
Steps to reproduce the behavior:

  1. Download the prebuild file from https://greenworks-prebuilds.armaldio.xyz/
  2. Download greenworks v0.14.0 release from https://github.com/greenheartgames/greenworks/releases
  3. Replace the node file with the downloaded node file from step 1
  4. Download steam sdk 1.50
  5. Make an empty NW.js with a blank html, put the files include steam_appid.txt with correct appid in correct place
  6. Run the project using NW.js 0.49.2, with steam running and logged-in.
  7. Execute var greenworks = require('./greenworks') from the console
  8. Execute greenworks.initAPI(), console output false
  9. Execute greenworks.isSteamRunning(), console output false
  10. Execute greenworks.getAchievementNames(), console output correct results
  11. Execute greenworks.getAchievement('Your achievement id here', function(){}), the app throws an exception 'Bad arguments'.

Expected behavior
Step 7 should output true, step 8 should output true, step 11 should not throw 'Bad arguments' exception.

Desktop (please complete the following information):

  • OS: Windows 11 x64
  • Asset infos: steam client, steam sdk 1.50, NW.js 0.49.2

Additional context
The website(https://greenworks-prebuilds.armaldio.xyz/) shows the file's last update date as a year ago. I also checked prebuilt node files from a game released before the time, the author indicated they used prebuilt files form the same site, and the files functioned correctly. I assume the prebuilt files were changed 1 year ago.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions