Requirements:
- Node 6
- A build environment, on ubuntu the build-essentials package should be enough
- Steamworks SDK v1.37 (Steam login needed) https://partner.steamgames.com/downloads/list
- Clone of the greenworks repo's master branch https://github.com/greenheartgames/greenworks
- A copy of the screeps server
From here on, the following folder structure is assumed for simplicity:
- steamworks_sdk
- greenworks
- server
- modules
- assets
- mods
- .screepsrc
- db.json
- package.json
- rebuild.sh
Note that only the files listed above are required for the server, the rest are for electron
Inside server run bash rebuild.sh
Goto https://steamcommunity.com/dev/apikey and get a Steam API key, add it to your .screepsrc
Done! Now you can start the server with:
node modules/launcher/bin/screeps.js start
And CLI:
node modules/launcher/bin/screeps.js cli