Seriously, can I get step-by-step instructions preferably with pictures? This is insanely hard and convoluted.
Okay, I'll give this a go and see if it helps. Hopefully I didn't miss anything out. No pictures at the moment but I might add them later. (Also note that I'm doing all of this process on a Mac.)
Part One: Downloading Files
a) From here:
https://github.com/greenheartgames/greenworks/releases
Download the latest version of Greenworks for Mac. (I’m using greenworks-v0.12.0-nw-v0.26.6-osx-x64.zip)
b) From here:
https://dl.nwjs.io
Download the version of nwjs for Mac that is mentioned on your version of Greenworks. (I’m using nwjs-v0.26.6-osx-x64.zip from the v0.26.6 folder)
c) Login to
https://partner.steamgames.com and download the version of Steam SDK mentioned on your version of Greenworks. (I’m using Steamworks SDK 1.41)
Part Two: Deployment
Open your Game.rpgproject. Go to File > Deployment, and choose Mac OS X from the deployment options. Choose your output location and deploy the game.
Part Three: Copying the Nwjs files
a) In your output location, there should be a file named credits.html and a package called Game. Right-click on Game and click “Show package contents.”
b) In a separate window, open your nwjs zip file. Similarly, it should contain a file named credits.html and a package called nwjs. Right-click on nwjs and click “Show package contents.”
c) You now have two packages open, nwjs and Game. The following files need to be copy and pasted from the nwjs package into your Game package:
- /Contents/Info.plist (overwrite the original file in your Contents folder)
- /Contents/PkgInfo (overwrite the original file in your Contents folder)
- /Contents/MacOS/nwjs (overwrite the original file in your Contents/MacOS/ folder)
- /Contents/Versions/ (just copy the folder itself into your Contents folder)
- Finally, copy and paste everything from /Contents/Resources/ into the /Contents/Resources/ folder of your game package. There should be 57 files and folders in total, none of which are overwriting anything in your game.
Part Four: Copying Files to the app.new Folder
a) Inside your Game package, locate the main project folder at /Contents/Resources/app.new/
b) Open your Greenworks zip file. Copy both Greenworks.js and the “lib” folder into /app.new/
c) Open your Steamworks SDK zip file. Locate the following files and copy them directly into your /app.new/lib/ folder:
- /redistributable_bin/steam_api.dll
- /redistributable_bin/steam_api.lib
- /redistributable_bin/osx32/libsteam_api.dylib
- /public/steam/lib/osx32/libsdkencryptedappticket.dylib
Part Five: Testing
In the /app.new/ folder, create a text file named steam_appid.txt and write the App ID of your game inside. This will allow you to test your game and check if everything is working before you upload it to Steam.
With Steam running in the background, try launching your Game package by double-clicking it. As long as you set up your Steam_appid.txt file correctly, Steam should show that your game is running.