Local development¶
This repository is intentionally set up so contributors can test the image locally without committing or redistributing proprietary Hytale server binaries.
Prerequisites¶
- Docker
- Task (
task): https://taskfile.dev/
Local data directory¶
The default local development workflow uses a bind mount:
./data(host) ->/data(container)
This repo already ignores data/ via .gitignore.
Manual provisioning workflow¶
-
Obtain
Assets.zipand theServer/folder: -
Provision into the expected layout:
- Start the container:
- Follow logs:
- Stop/remove container:
Auto-download workflow¶
To avoid manual provisioning steps, you can start the container with auto-download enabled:
Notes:
- First run may require device-code authorization (watch logs).
- Credentials will be stored on the
./datavolume. - Auto-download currently works on
linux/amd64only.
Apple Silicon (ARM64)¶
Use the native ARM64 image for auto-download. The image includes emulation for
only the official downloader; Java and the game server remain native. No
--platform linux/amd64 override is required.
task dev:up:auto:amd64 is still available when you explicitly want to test the
AMD64 image through emulation; it is not needed for normal ARM64 development.
Server console (interactive)¶
The Hytale server provides an interactive console while the process is running.
Attach to the console:
Detach without stopping the server:
- Press
Ctrl-pthenCtrl-q
Useful variables¶
You can override these Task vars:
IMAGE_NAME(defaulthytale-server:local)DEV_CONTAINER_NAME(defaulthytale-server-dev)DEV_DATA_DIR(default./data)DEV_PORT(default5520)
Example:
Diagnostic checks¶
The read-only diagnostic executable is built from diagnostics/ with Go's
standard library. Go is only present in the build stage; the final image receives
a static executable. The build runs its unit tests on the build platform and
cross-compiles for the target architecture.
cd diagnostics
go test -race ./...
go vet ./...
# From the repository root, after building the image:
IMAGE_NAME=hytale-server:test sh ci/test-diagnostics.sh
Keep report fields allowlisted: do not add raw errors, arbitrary configuration, process arguments, filenames, account identifiers or log excerpts. Tests use synthetic secrets and fail if these appear in the serialized report. New checks must distinguish absence, an observed failure, and facts that cannot be established without contacting or changing a running server. Keep network checks opt-in and never use them to refresh credentials or mint a game session.