SpawningPool auto-launches configured GameApis (if not yet running) when Gateway boots.
While Gmanman originally was designed as a decoupled set of game apis that would communicate with a Gateway server that solely orchestrated message passing, it is often more convinent to delegate GameApi launching to the Gateway server, when one is running both on the same box anyway.
- Create a GameTypeManager in
./game-api/src/games/
(usually one that extendsGenericDockerManager
), setting up at minimumgetPlayers()
, ideally using Gamedig. - Create a
./game-setups/gametype/docker-compose.yml
, which uses Env vars specified inGameTypeManager.setupInstanceFiles()
, includingAPI_ID
,API_NAME
,GAMEPASSWORD
,SAVENAME
,GAMEPORT
,RCONPORT
. Valheim is a good example of this. - Add the new type to
./ui/src/components/EditCard.js
'sgameApiOptions