Anchor is a client/server service for providing multiplayer functions in Harbor Masters 64 ports. It's primary functions are loading save state from a remote player when you join their session, and sending flag sets/item gives across all players in a room/team.
This implementation of a client/server model is very generic, allowing for multiple games to use it's functions at once as the client software is responsible for handling all of the game state.
Note
For your typical user, you don't actually need this, as we have a public server hosted for general use at anchor.hm64.org:43383 which is the default on clients. Self hosting may be a better option for you if you are not based in the US however, as latency may be an issue.
-
Git clone this repository:
git clone https://github.com/garrettjoecox/anchor.git && cd anchor- Run the server:
go run .docker run -p 43383:43383 -v /my/mnt/logs:/app/logs ghcr.io/garrettjoecox/anchor:latestOptional environment variables can be set:
PORT: configures the server port inside the container; defaults to43383Volumes: mounts a local directory to a directory in the container; our example uses the log folder
docker compose up -dAny configurable environment variables can be viewed here.
