Steamworks/Steam Achievements compatibility using Windows 7

I've been trying to follow multiple guides for both updating the NW.js and integrating Steam achievements, but each one I find seems to give different and conflicting directions, so I have become unsure of what the actual process entails.

For Windows 7, the latest functioning version of NW.js is v0.72.0, however, the custom builds for Greenworks appear to be hosted on a website that I am being denied access to on any browser I try, and the github releases only offer up to v0.33.3, and then start again at v0.82.0, with nothing in between. Therefore, I have updated to NW.js v0.33.3, which pairs with Greenworks v0.14.0 and Steamworks SDK 1.42, and added OrangeGreenworks.js to my plugin folder/activated it in my project.

When I playtest, the console keeps saying "Greenworks failed to load" and that "the specified nodule could not be found"... but that file (greenworks-win32.node) is in my project's lib folder, exactly where it claims it can't be found, with greenworks.js having been placed in the main project folder (aka, not lib). In the RMMV program folders, the nwjs-win folder has been replaced (except for package and www) with the contents of the regular nwjs v0.33.3 folder, and win-test (save for www) has been replaced with the nwjs sdk folder contents. In both folders, nw.exe has been renamed to Game.exe. The Steamworks SDK lib files have been placed into the lib folder I created in my main project, with the node that console claims is missing. The same issue happens no matter what version of NW.js I try, even the default 0.29.0 (it is not 0.29.4 as one guide claimed).

Is there a way to solve this? Or is achievement integration with Steamworks not even possible to playtest using Windows 7 due to the OS no longer being unsupported by Steam itself? Any help is appreciated.
That error usually means a mismatch between the greenworks plugin/nwjs and your steam SDK, which is outlined in my guide you linked.

Of course using outdated software can always lead to problems.
But the greenworks release specifically says it's for v0.33.3, and Steamworks SDK 1.42, and the console confirms I have nw 0.33.3, so how can it be mismatched?

Also, for the record, I did find your guide the easiest to digest. It was only when reading the OrangeGreenworks help page that I came across the extra details about my game's appid and deploying the game to a file and became confused, because none of it was in your guide and it made me wonder whether something had changed. That page also says "greenworks v80" (for nwjs v0.44.0) which did not make sense to me as greenworks is currently only at v0.21.0...
But the greenworks release specifically says it's for v0.33.3, and Steamworks SDK 1.42, and the console confirms I have nw 0.33.3, so how can it be mismatched?

Also, for the record, I did find your guide the easiest to digest. It was only when reading the OrangeGreenworks help page that I came across the extra details about my game's appid and deploying the game to a file and became confused, because none of it was in your guide and it made me wonder whether something had changed. That page also says "greenworks v80" (for nwjs v0.44.0) which did not make sense to me as greenworks is currently only at v0.21.0...
It's not outlined because it's not relevant. That's probably why my guide was the easiest to digest. I tried to skip everything that's not relevant to getting the thing "running" for achievements.

I'm no coder myself. I only outlined what I did to get it going for my 3 games essentially, and that error appears for me when I either: Have a mismatch somewhere between the plugin version, SDK version and Greenworks, or when I playtest my MV project in MZ.

You may also consider just using a newer version of windows, as steam has ended support for window 7/8 in January 2024. Existing clients won't get any updates, which seems to mean new users can't even install it to begin with.
source: https://help.steampowered.com/en/faqs/view/4784-4F2B-1321-800A

That means while you may or may not be able to get it to work for now, it can only lead to more problems down the line.

Another thing to consider is the viability. According to steam, 0.09% of users use windows 7 still.
1756519344557.png


So being on, and developing for an OS that is no longer supported just seems like a bad idea to me.

I would recommend updating your OS, using my guide to get everything for the version in my guide going, and seeing if that fixes it.
It's not being developed for Windows 7; just because that is my OS doesn't mean only people with this OS can play it... a lot of programs I need for projects outside of RMMV are most stable on Win7, and that's the reason I'm not going to upgrade. Plus, at the time of the release of these NW.js files and the matched greenworks, Win7 was still supported (for 40 more versions, no less) so I'm not exactly sure what that would have to do with the console claiming the file cannot be located...? Everything else works, the OrangeGreenworks script calls work, it's just the error that I'm confused by. That does not seem to be an OS related issue.

And say I were to upgrade to 10, which is also ending soon, and it still didn't work, what then? I'm absolutely positive I have the correct versions of the 3 components, in the correct folders. Other than mismatching, would there really be no other reason for that error to come up?

Edited to add: Steam achievements are an option in my game, not forced for everyone. It's not only going to be hosted on Steam, I just would've liked to have integration for friends who enjoy achievement collecting via Steam. There is an in-game achievement system regardless. Furthermore, 0.09% of Steam users operating on Windows 7 is likely because it's been largely discontinued for that OS. It does not reflect the amount of potential players who, like myself, prefer Windows 7 and would be interested in accessing the game outside of Steam.

As for how I'm going to get it onto Steam, a friend with a more recent version of Windows will be assisting me with that by submitting the product from his machine using my existing Steamworks account. Anyone with higher OS than Win7 will have already met the minimum requirements, given that it runs fine on my machine. Newer doesn't mean better.
I would be surprised if the script calls actually worked. Of course doing such script call will not throw and error, since the plugin is still activated. I would wager it would just not unlock the actual achievement because it can't reach steam.

The reason I'm suggesting upgrading the OS is simply because you claim to be 100% sure you did everything correctly, in which case it should work. Since it doesn't, the only other thing I can think of is outdated software/files. It's a bit of a shot in the dark, I'll agree on that.
I've also just tried following this comment from another thread where they claim this combination worked, however in my project I get a popup saying "profile error occurred" (due to the NW.js version being newer) so I'm not sure how it worked for that person, but I've never seen it before until I tried a mismatch like that one they have listed.

A breakdown of what I do, in case you can spot an error/something I missed:
- copy files from nwjs-v0.29.4-win-ia32 into nw-win (removing everything but www/package beforehand) in the RPGMV folder
- do the same for nw-test but with nwjs-sdk-v0.29.4-win-ia32 contents (and leaving only www)
- rename nw to Game in each
- copy contents of each individual folder inside the lib folder of Steamworks SDK, into a lib folder in my project's main directory, renaming the linux64 ver to libsdkencryptedappticket64(.so as the extension)
- copy greenworks-win32.node from greenworks into this lib folder as well (this was not in your guide, but it was in hudell's. I get the error with or without it there)
- copy the greenworks.js into my project's main directory
- place orange-greenworks.js into my project's plugins folder, and activate it in my game
- put a shorthand of my game's title into the package.json of my project ("mytitle-rpg")

...and then open the console with F8 while the game is running. It only ever says greenworks failed to load, and the specified module could not be found, both stemming from orange-greenworks.js. I can post any other details anyone thinks might help.

(edit: to be clear, v0.29.4 is just what I copypasted here after trying their combination. I've been using v0.33.3 with its properly matched greenworks/steam sdk as stated in my original post)

Update: after also moving the files from sdk/redistributable_bin to lib, which was mentioned in hudell's but neither yours nor the other guide I linked, the error of the module not being found is gone! Now it simply says "failed to initialize", which could be due to the fact that I'm not running Steam. I will keep trying to find a solution, but I'm still not even sure whether my project has to be submitted to Steamworks first (which costs $100...) in order to test achievements. I was waiting until I was sure whether it was even possible before going through with that. No guide mentions it as a requirement, but I obviously can't have an appid without creating the app.
Update: after also moving the files from sdk/redistributable_bin to lib, which was mentioned in hudell's but neither yours nor the other guide I linked, the error of the module not being found is gone!
I've double-checked my game folders and I can confirm that these files need to be there. I've updated my guide to fix this oversight.

Failing to initialize might indeed stem from steam not running. How would it use the api when it's not running after all. I'm not entirely sure you need an appid on steam for this to test it, since I've always created an app on steam first, but I suppose you could try running it on a machine that has steam running. As outlined in my guide, the console should then display your steam username.

Thanks for finding this oversight.
I got it working!

So what I did was, as hudell instructs, create steam_appid as a text document (which can be done in your game's main folder, where greenworks.js is, though he doesn't mention this) and put the game's appid into it. Someone on another site had mentioned 480 was used for testing projects that had not been submitted to Steamworks and therefore had no appid of their own, so I booted up Steam on my 16 year old Windows 7 laptop, logged in, and the console printed my Steam name! No errors! Even though Steam is discontinued! As I said, not an OS issue.

And then the OrangeGreenworks script call to activate some random achievement I made up returned the console error that it didn't exist, which is exactly what should happen -- because it obviously doesn't exist in that test appid, but will when I submit mine and use my own appid. So it's not just showing that a script was used (like you pointed out it was doing before) but that it's actually being processed, which I believe means this actually works now.

Note: you are not supposed to include steam_appid.txt in your game's final product version when you upload it to Steam. Don't forget to remove it before deployment, if you are using it just to test on an undeployed project like I am.
Good stuff! I've also updated the guide to include this detail.

Original thread: https://forums.rpgmakerweb.com/threads/steamworks-steam-achievements-compatibility-using-windows-7.179838/