Game Controller is a second part of Game Service.
Unlike other projects of the platform, this project uses Docker. To install it on any host, install docker first, then create this Dockerfile:
FROM anthillplatform/game-controller:latest ... extra deps for your game you might be having ... COPY brainout/anthill.pub ./ ENV connection_password=<password> ENTRYPOINT [ "python", \ "-m", "anthill.game.controller.server", \ "--auth-key-public=anthill.pub", \ "--discovery-service=https://<your public discovery service>", \ "--connection-username=<username>", \ "--connection-gamespace=<gamespace-alias>"]
Make sure to pup
anthill.pub next to it. Then run:
docker build -t anthill-game-controller .
Once the image is built, run it:
docker run -d --name anthill-game-controller \ --network host --hostname `hostname` --restart=always -i \ -v /var/log/gameserver:/var/log/gameserver \ -v /usr/local/anthill:/usr/local/anthill \ anthill-game-controller
You now can see logs via
docker logs --follow <container-id>.
Logs for the game servers themselves can bee seen on
See Game Service for more information.
Please refer to the API Documentation for more information.