STEAM ACHIEVEMENTS IN VISUAL NOVEL MAKER (NWJS VERSION)
SDK tutorial
- SunflowerGames
- 06/15/2019 06:22 AM
- 2406 views
*Visual Novel Maker now uses Electron. I'm unsure if this tutorial will work for those versions of Visual Novel Maker. Note: You can still download older versions of Visual Novel Maker (nwjs version.)
This is a tutorial on how to add Steam Achievements to your Visual Novel Maker Game.
This tutorial will mostly deal with the SDK / File requirements needed for a Windows 64-bit version of your game.
You should already have a Steam Direct Account and an App ID
In your game you'll need to make a coffee script.
greenworks = (require||requireNode)("./greenworks")
greenworks.init()
When you want an achievement to unlock put a script command in your action UI. Put the achievement API Name in the quotation marks.
greenworks.activateAchievement("achievement_00", function() { console.log("Success!")}, function(err) { console.log(err) })
You will need to download some files:
steamworks_sdk_144 https://partner.steamgames.com/doc/sdk
greenworks-v0.14.0-nw-v0.33.3-win-x64 https://github.com/greenheartgames/greenworks/releases
nwjs-sdk-v0.33.3-win-x64 (this is for testing) https://dl.nwjs.io/v0.33.3/
nwjs-v0.33.3-win-x64 (this is the version you want to use when uploading to Steam.) https://dl.nwjs.io/v0.33.3/
Also open notepad and make a file called "steam_appid.txt" (Make sure file extensions are visible.)
Put your appid number inside.
Export your game, without any of the files above added yet to the game folder.
Put the Game folder into the SDK.
If you don't know how to load your game into the Steam SDK, I have a tutorial on that here: https://rpgmaker.net/articles/2545/
Delete Game.exe (you will be launching your game with a nw.exe file from now on.)
Put "steam_appid.txt" into your game folder.
Copy the lib folder and greenworks.js file and paste into your game folder.
Copy the files from nwjs-sdk and paste them in your game folder (copy and replace.)
Go to C:\Users\user\Desktop\steamworks_sdk_144\sdk\public\steam\lib\win64
Copy those 4 files and paste them in the lib folder in your game folder.
Go to C:\Users\user\Desktop\steamworks_sdk_144\sdk\redistributable_bin\win64
Copy those 2 files and paste them into your game folder.
Cross your fingers and run nw.exe
*The SDK version is for testing, you can press F12 while in game.
*Copy the non-SDK file and copy and replace them over the SDK version after testing.
Additional Notes:
Updates in Visual Novel Maker may require newer versions of Greenworks and NWJS.
If you want to make Steam Achievements for other OS, download the Greenworks and NWJS for those OS. In addition, when adding content from SDK into your game folder choose the appropriate OS.
This is a tutorial on how to add Steam Achievements to your Visual Novel Maker Game.
This tutorial will mostly deal with the SDK / File requirements needed for a Windows 64-bit version of your game.
You should already have a Steam Direct Account and an App ID
In your game you'll need to make a coffee script.
greenworks = (require||requireNode)("./greenworks")
greenworks.init()
When you want an achievement to unlock put a script command in your action UI. Put the achievement API Name in the quotation marks.
greenworks.activateAchievement("achievement_00", function() { console.log("Success!")}, function(err) { console.log(err) })
You will need to download some files:
steamworks_sdk_144 https://partner.steamgames.com/doc/sdk
greenworks-v0.14.0-nw-v0.33.3-win-x64 https://github.com/greenheartgames/greenworks/releases
nwjs-sdk-v0.33.3-win-x64 (this is for testing) https://dl.nwjs.io/v0.33.3/
nwjs-v0.33.3-win-x64 (this is the version you want to use when uploading to Steam.) https://dl.nwjs.io/v0.33.3/
Also open notepad and make a file called "steam_appid.txt" (Make sure file extensions are visible.)
Put your appid number inside.
Export your game, without any of the files above added yet to the game folder.
Put the Game folder into the SDK.
If you don't know how to load your game into the Steam SDK, I have a tutorial on that here: https://rpgmaker.net/articles/2545/
Delete Game.exe (you will be launching your game with a nw.exe file from now on.)
Put "steam_appid.txt" into your game folder.
Copy the lib folder and greenworks.js file and paste into your game folder.
Copy the files from nwjs-sdk and paste them in your game folder (copy and replace.)
Go to C:\Users\user\Desktop\steamworks_sdk_144\sdk\public\steam\lib\win64
Copy those 4 files and paste them in the lib folder in your game folder.
Go to C:\Users\user\Desktop\steamworks_sdk_144\sdk\redistributable_bin\win64
Copy those 2 files and paste them into your game folder.
Cross your fingers and run nw.exe
*The SDK version is for testing, you can press F12 while in game.
*Copy the non-SDK file and copy and replace them over the SDK version after testing.
Additional Notes:
Updates in Visual Novel Maker may require newer versions of Greenworks and NWJS.
If you want to make Steam Achievements for other OS, download the Greenworks and NWJS for those OS. In addition, when adding content from SDK into your game folder choose the appropriate OS.