kory_toombs

Villager
Member
Joined
Oct 18, 2013
Messages
20
Reaction score
22
First Language
English
Primarily Uses
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 API Name in the quotation marks.

greenworks.activateAchievement("achievement_00", function() { console.log("Success!")}, function(err) { console.log(err) })

steamachievement02.png


steamachievement08.png


steamachievement03.png


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.

steamachievement06.png


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.

steamachievement04.png


steamachievement05.png


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.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

So, I just found out you can hit ctrl+F to search the database...WHAT??
1695805675906.png
Added a normal tent and a landing stage for worldmaps :3 Is there anything you think worldmaps in MZ are desperately lacking?
4 main factions and a very rough exploration of their iconography :o
image.png


Some are aligned with the Moon, while the others are aligned with the Sun.
After taking yesterday off I finally made the sprites of the boys of the main trio.
Ton.gif

Ton

Dolph.gif

Dolph(might fix his hair that the blue color is more clear in the sprite)

Also fixed eliza's sprite:
Eliza-sprite-v2.gif


At last here they are ingame:
trio.png
i've started the second game
check daily/weekly progress here
wish me luck :)
i'll be sharing a lot of stuff, sort of a developer log
(if its allowed)

Forum statistics

Threads
134,835
Messages
1,251,065
Members
177,631
Latest member
hyder
Top