Publishing on Steam (Steamworks integration)
If you've made a narrat game, you might want to release it on Steam. This page explains how
For a primer on how to generally build and export narrat games, see this page:
The integration is brand new so there are a few manual steps to setting up the integration. This might change in the future to be easier to use
- 1.Create a game with the latest narrat template. (If updating an existing game, the simplest way would probably be to copy-paste the config, scripts and assets of the game and paste them into a brand new setup of the narrat template)
steam_appid.txtat the root of the repo and put the desired steam app id. The default (
480) is fine to use during development as it is the Steam default testing app.
electron-main.js, near the top of the file, set
src/index.ts, near the top of the file, set
Steam needs to be running for a game using Steamworks to work properly, and you need to own the app matching the Steam app id being used.
To run the app directly, use
npm run electron(after building the game) or
npm run run(to build the game and then run electron automatically). The Steam overlay should work when doing this.
To package the game for release, run
npm run package. The game will be in the
With the game built in the
outfolder, it is possible to go in Steam and choose
Add non-Steam game, then browse to the path of the
narrat-template.exeinside the subfolders in
outfolder, and add that .exe to Steam. It is then possible to run the game in Steam.
To actually publish the game to Steam, you should look at Steam's documentation on how to become an approved partner and publishing your app, but the app exported in the
outfolder should work on Steam
- The system currently only builds for windows 64 bit. To change that, you would need to edit the part of the
package.jsonthat copies the
steam_appid.txtto copy from the right folder depending on the architecture you're targeting.