The Greenworks plugin allows you to integrate your game with Steam using the Steamworks API.

Support notes

If Steam is unavailable or something has gone wrong Is available will be false, so check it's true before using Steam features. There should be a message in the dev tools console if something went wrong (use the 'Show dev tools' action in the NW.js plugin to check).

Unfortunately Greenworks does not currently work in preview mode.

Changes after export to get Greenworks working

After you export your project for NW.js, you'll need to make the following changes before the Greenworks plugin works.

Step 1: Add Steamworks SDK DLLs to package.nw

Package.nw is just a zip file with a different extension. You can open it either by renaming it to .zip, adding a file, then renaming it back to .nw (you may need to change settings to show file extensions). Alternatively you can associate the .nw file extension with a program that can open zips like WinRAR and just drag-and-drop extra files in.

Download the Steamworks SDK from the Steam partner site. Make sure the version matches the one specified for the Greenworks plugin version. From the redistributable_bin folder, copy the appropriate file for the platform. For example add steam_api.dll to package.nw for the win32 build, steam_api64.dll for the win64 build, etc.

As of Greenworks for NW.js 0.19.4, you also need to copy a sdkencryptedappticket library. This can be found in public\steam\lib in the Steamworks SDK. You need to copy this to package.nw in the same way you did for steam_api.dll. For example for the win64 version, copy public\steam\lib\win64\sdkencryptedappticket64.dll to package.nw.

Step 2: Create a text file named steam_appid.txt in the same folder as nw.exe

The steam_appid.txt file should contain nothing but your app ID on Steam. If you don't have one yet, for testing you can use Construct 2's app ID of 227240. You must also have Construct 2 installed on your copy of Steam. It can be the free edition, and it works fine side-by-side with a non-Steam install. (If the app ID is not valid and installed, Greenworks won't work.) Also make sure the file has an ANSI/ASCII encoding in your text editor, otherwise it may put a UTF-8 BOM at the start of the file.

Step 3: Make sure Steam is running and you are logged in to Steam

Greenworks requires Steam to be running in the background with a logged in user to work.

Step 4: Start the app and check Greenworks features work

Hopefully everything works! If not, check the support notes above.

Download

0.30.4 Stable (967.83 KB)

Info

  • Official Official addon

Statistics

  • Download count1,760 total downloads
  • Latest download count 953 downloads of latest version
  • Average download count2 downloads per day average

Owners

  • 19 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Hello,Will this plugin get updated to support NW.js 0.43.1? if no , is it safe to downgrade nw.js back to 0.30.4?

  • How am I able to install an older version of NW.js? I am not able to find anything about that online. Just installing it won't do it, but there is also nothing I can delete first before installing it.

  • Overlay works when i test on desktop, but when i test on steam every overlay pops up over game and can't get rid of. Is that normal if game has not been released?

  • WTF is this crap. No install instructions and all it gives you is some web file. This is not a C2 Plugin.

  • What version go's with what SDK? Some more info would be nice. Now when I add the 2 file from the SDK to the package.zip the game will not start. Double click nw.exe to start the game or the steam shortcut for the game and it just wont start. I deleted the steam_api64.dll and now the game runs. So what's the problem with adding that file to package.zip? Fixed. Make sure you do not download newer version of nw.js. Stay at version 30.4

  • Hello, why has not this add-on been updated? There is a newer version of greenworks.

    Will you receive more updates ?.

  • Hey there!

    I'm just curious: does this work with the new "SteamWorks" adaptation of Steam Greenlight?

    Thanks!

  • There is a question about the bounce of the steam achievement, I set the achievement on the steam page, then call the greenwork plugin to activate the achievement event and return successfully, but did not bounce the achievement prompt, is this a bug?

    I look forward to hearing from you.

  • Hi!

    The console shows an error: Failed to require Greenworks: Error: The specified procedure could not be found.

    image.ibb.co/hmvCE9/Screenshot_3.png

    I installed the recommended version of NWjs, but the problem persists.

  • Hi. I`m using this addon. Achievements works as expected, but i have 2 problems.

    1 - I uploaded the game to the server, all features works, but the overlay does not work with shift+TAB. It works if i call it from addon action only.

    2 - How can i reset progress of achievements without deleting them in steamworks?

    Thank you and sry for my english :P

  • Load more comments (7 replies)