VN Maker - Steam Achievements

Discussion in 'Visual Novel Maker Tutorials' started by kory_toombs, Jun 16, 2019.

  1. kory_toombs

    kory_toombs Villager Member

    Messages:
    18
    Likes Received:
    15
    First Language:
    English
    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) })

    [​IMG]

    [​IMG]

    [​IMG]

    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.

    [​IMG]

    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.

    [​IMG]

    [​IMG]

    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: Jun 16, 2019
    #1
    Vaena likes this.

Share This Page