# Deploy RPG Maker MV/MZ Games to Steam with NWjs
:::danger
![](https://i.imgur.com/XKmDnbq.png)
:::
:::warning
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This article was translated using "[DeepL Translator](https://www.deepl.com/translator)".
:::
:::info
**<i class="fa fa-info-circle" aria-hidden="true"></i> Update Info**
**2023/01/04** Add [Linux (Steam Deck)](#%E2%96%A0-Linux-Steam-Deck) content.
**2022/12/05** Update [Download Node Binary Files](#%E2%97%86-Download-Node-Binary-Files) and [Download NWjs](#%E2%97%86-Download-NWjs) content.
:::
## ■ Windows
---
### ◆ Download and Install the NekoGakuen_SteamworksAPI.js Plugin
---
Go to the following URL to download the NekoGakuen_SteamworksAPI.js plugin.
**【NekoGakuen_SteamworksAPI.js】**
https://rabbitteaparty.itch.io/nekogakuen-steamworksapi
Place NekoGakuen_SteamworksAPI.js in the "js/plugins" folder of your game project.
**【RPG Maker MV】**
![](https://i.imgur.com/sebLLNR.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/HGahQQB.png)
Open your game project, to "Plugin Manager" to install the NekoGakuen_SteamworksAPI.js plugin, and set the relevant plugin parameters.
**【RPG Maker MV】**
![](https://i.imgur.com/HEN0B2r.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/rFMtNIR.png)
---
### ◆ Using the Plugin Command in the Game Project
---
Add "Event Commands" to the Events page, switch to Page 3 and select "Plugin Commands...". The description of the plug-in commands can be found in the help information of NekoGakuen_SteamworksAPI.js in the "Plugin Manager".
**【RPG Maker MV】**
![](https://i.imgur.com/uOnewKT.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/sF3BK6N.png)
---
### ◆ Deploy Your Game
---
Select "File" → "Deployment...".
**【RPG Maker MV】**
![](https://i.imgur.com/lXpJZ0A.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/Ygeo8G3.png)
---
### ◆ Download Steamworks SDK
---
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> Requires a valid Steamworks Developer ID account.
:::
Go to the following URL to download the Steamworks SDK file, and the SDK version must be at least 1.5.0 or higher.
**【Steamworks SDK】**
https://partner.steamgames.com/doc/sdk
![](https://i.imgur.com/Upa9Wi2.png)
---
### ◆ Download greenworks.js
---
Go to the following URL and select "greenworks.js".
**【greenworks.js】**
https://github.com/greenheartgames/greenworks/
![](https://i.imgur.com/rqm0qda.png)
![](https://i.imgur.com/L0tjqYi.png)
![](https://i.imgur.com/1BaWxnw.png)
---
### ◆ Download Node Binary Files
---
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You need to register for a GitHub account to download files.
:::
Go to the following URL and set the following filters in order from the filters on the left:
**【Greenworks Prebuild】**
https://greenworks-prebuilds.armaldio.xyz
**Release Tag:**
「v0.7.0」
**OS:**
「Windows」
**Architecture:**
「64 bits」
**Runtime:**
「NW.js」
**Versions:**
「v83」
Then select the file and select "DOWNLOAD" in the upper right corner.
![](https://i.imgur.com/oCB2pG9.png)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You can also choose other version, but it needs to be exactly the same as the version of NWjs you download later.
:::
---
### ◆ Download NWjs
---
Go to the following URL to download the 0.49.1 version of NWjs.
**【NWjs (0.49.1)】**
https://nwjs.io/blog/v0.49.1/
If you want to publish the game externally, choose the download link A.
On the contrary, if you want to test the game internally, choose the download link B.
![](https://i.imgur.com/tA7AARX.png)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You can also choose other version, but it needs to be exactly the same as the previously downloaded version of the Node file.
:::
---
### ◆ Configure NWjs
---
Unzip NWjs and copy the game content just after deployment to the NWjs folder.
**【RPG Maker MV】**
![](https://i.imgur.com/M6NDWYI.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/EGzI9am.png)
Rename nw.exe to Game.exe. **(Non-essential steps)**
**【RPG Maker MV】**
![](https://i.imgur.com/iHPcmis.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/shVk2B6.png)
---
### ◆ Configure Steamworks SDK
---
In the path where the "index.html" file is located, add a new folder named "lib".
**【RPG Maker MV】**
![](https://i.imgur.com/YRArRls.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/WkWUUi5.png)
After unzipping the downloaded Steamworks SDK archive, get some specific files from the sdk folder and copy them to the "lib" folder, as shown in the following path:
「sdk \ redistributable_bin \ **steam_api.dll**」 → 「NWjs \ lib \ **steam_api.dll**」
「sdk \ redistributable_bin \ **steam_api.lib**」 → 「NWjs \ lib \ **steam_api.lib**」
「sdk \ redistributable_bin \ win64 \ **steam_api64.dll**」 → 「NWjs \ lib \ **steam_api64.dll**」
「sdk \ redistributable_bin \ win64 \ **steam_api64.lib**」 → 「NWjs \ lib \ **steam_api64.lib**」
「sdk \ public \ steam \ lib \ win64 \ **sdkencryptedappticket64.dll**」 → 「NWjs \ lib \ **sdkencryptedappticket64.dll**」
「sdk\public\steam\lib\win64\sdkencryptedappticket64.lib」 → 「NWjs \ lib \ **sdkencryptedappticket64.lib**」
**【RPG Maker MV】**
![](https://i.imgur.com/zTtjUt4.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/0Pflheu.png)
Place the downloaded Node binary file and greenworks.js in the following paths respectively:
**greenworks-win64.node** → NWjs \ lib \ **greenworks-win64.node**
**greenworks.js** → NWjs \ **greenworks.js**
**【RPG Maker MV】**
![](https://i.imgur.com/CssXeM0.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/oaGClMp.png)
In the folder where NWjs Game.exe is located, mouse right-click "New" → "Text Document" and name it "steam_appid.txt", then edit the contents of steam_appid.txt and enter the App ID of the game you want to publish on Steam platform.
**【RPG Maker MV】**
![](https://i.imgur.com/EB4qZ94.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/OfHoj2W.png)
Edit "package.json" and modify some parameters.
**【RPG Maker MV】**
![](https://i.imgur.com/BjMgoht.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/P93NKA4.png)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> In the case of RPG Maker MV, remember to move the "package.json" from the www folder to the Game.exe folder.
![](https://i.imgur.com/JsDBKnu.png)
:::
---
### ◆ Configure Steamworks Launch Options
---
In the "App Manager" page of the Steamworks backend, add "Launch Options" and add parameters `--in-process-gpu --disable-transparency`.
![](https://i.imgur.com/tFHAwYw.png)
## ■ Linux (Steam Deck)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> This tutorial will be conducted in the Windows 10 operating environment.
:::
---
### ◆ Download and Install the NekoGakuen_SteamworksAPI.js Plugin
---
Go to the following URL to download the NekoGakuen_SteamworksAPI.js plugin.
**【NekoGakuen_SteamworksAPI.js】**
https://rabbitteaparty.itch.io/nekogakuen-steamworksapi
Place NekoGakuen_SteamworksAPI.js in the "js/plugins" folder of your game project.
**【RPG Maker MV】**
![](https://i.imgur.com/sebLLNR.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/HGahQQB.png)
Open your game project, to "Plugin Manager" to install the NekoGakuen_SteamworksAPI.js plugin, and set the relevant plugin parameters.
**【RPG Maker MV】**
![](https://i.imgur.com/HEN0B2r.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/rFMtNIR.png)
---
### ◆ Using the Plugin Command in the Game Project
---
Add "Event Commands" to the Events page, switch to Page 3 and select "Plugin Commands...". The description of the plug-in commands can be found in the help information of NekoGakuen_SteamworksAPI.js in the "Plugin Manager".
**【RPG Maker MV】**
![](https://i.imgur.com/uOnewKT.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/sF3BK6N.png)
---
### ◆ Deploy Your Game
---
Select "File" → "Deployment...".
**【RPG Maker MV】**
![](https://i.imgur.com/lXpJZ0A.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/Ygeo8G3.png)
---
### ◆ Download Steamworks SDK
---
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> Requires a valid Steamworks Developer ID account.
:::
Go to the following URL to download the Steamworks SDK file, and the SDK version must be at least 1.5.0 or higher.
**【Steamworks SDK】**
https://partner.steamgames.com/doc/sdk
![](https://i.imgur.com/Upa9Wi2.png)
---
### ◆ Download greenworks.js
---
Go to the following URL and select "greenworks.js".
**【greenworks.js】**
https://github.com/greenheartgames/greenworks/
![](https://i.imgur.com/rqm0qda.png)
![](https://i.imgur.com/L0tjqYi.png)
![](https://i.imgur.com/1BaWxnw.png)
---
### ◆ Download Node Binary Files
---
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You need to register for a GitHub account to download files.
:::
Go to the following URL and set the following filters in order from the filters on the left:
**【Greenworks Prebuild】**
https://greenworks-prebuilds.armaldio.xyz
**Release Tag:**
v0.7.0
**OS:**
Liunx
**Architecture:**
64 bits
**Runtime:**
NW.js
**Versions:**
v83
Then select the file and select "DOWNLOAD" in the upper right corner.
![](https://i.imgur.com/qkS7xIY.png)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You can also choose other version, but it needs to be exactly the same as the version of NWjs you download later.
:::
---
### ◆ Download NWjs
---
Go to the following URL to download the 0.49.1 version of NWjs.
**【NWjs (0.49.1)】**
https://nwjs.io/blog/v0.49.1/
If you want to publish the game externally, choose the download link A.
On the contrary, if you want to test the game internally, choose the download link B.
![](https://i.imgur.com/95pkFVl.png)
:::info
<i class="fa fa-info-circle" aria-hidden="true"></i> You can also choose other version, but it needs to be exactly the same as the previously downloaded version of the Node file.
:::
---
### ◆ Configure NWjs
---
Unzip NWjs and copy the game content just after deployment to the NWjs folder.
**【RPG Maker MV】**
![](https://i.imgur.com/xmj3mZN.png)
**【RPG Maker MZ】**
![](https://i.imgur.com/yCtq9M3.png)
Rename nw to Game. **(Non-essential steps)**
![](https://i.imgur.com/TaU7rib.png)
---
### ◆ Configure Steamworks SDK
---
After unzipping the downloaded Steamworks SDK archive, get some specific files from the sdk folder and copy them to the "lib" folder, as shown in the following path:
sdk \ redistributable_bin \ `steam_api.dll` → NWjs \ lib \ `steam_api.dll`
sdk \ redistributable_bin \ `steam_api.lib` → NWjs \ lib \ `steam_api.lib`
sdk \ redistributable_bin \ linux64 \ `libsteam_api.so` → NWjs \ lib \ `libsteam_api.so`
sdk \ public \ steam \ lib \ linux64 \ `libsdkencryptedappticket.so` → NWjs \ lib \ `libsdkencryptedappticket.so`
![](https://i.imgur.com/1260767.png)
Place the downloaded Node binary file and greenworks.js in the following paths respectively:
`greenworks-linux64.node` → NWjs \ lib \ `greenworks-linux64.node`
`greenworks.js` → NWjs \ `greenworks.js`
![](https://i.imgur.com/9fQUqao.png)
In the folder where NWjs Game.exe is located, mouse right-click "New" → "Text Document" and name it "steam_appid.txt", then edit the contents of steam_appid.txt and enter the App ID of the game you want to publish on Steam platform.
![](https://i.imgur.com/W7lvQh1.png)
Edit "package.json" and change the parameter value of `name`.
![](https://i.imgur.com/hCtL3KX.png)
---
### ◆ Configuring Depot for Steam Deck
---
In the "Application Manager" page in the Steamworks backend, add a "Steam Deck Only" Depot for the "Linux + SteamOS" platform, and drag the "Steam Deck Only" Depot to the bottom of the Depot list in order of preference.
![](https://i.imgur.com/7yveOOH.png)
---
### ◆ Configure Steamworks Launch Options
---
In the "Application Manager" page of the Steamworks backend, add a "Launch option" and specify the "Linux + SteamOS" parameter as `--in-process-gpu --disable-transparency`.
![](https://i.imgur.com/7qb1fxD.png)
## ■ macOS
(In preparation...)
Mirai - Patreon:
https://www.patreon.com/MiraiDiary
Mirai - Twitter(X):
https://twitter.com/Mirai_so_Sad
Mirai - itch.io:
https://miraisosad.itch.io
Mirai - Instagram
https://www.instagram.com/miraisosad/
###### tags: `貓咪學園` `NekoGakuen` `RPG Maker` `RPG Maker MV` `RPG Maker MZ`