Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
30b18b8
Experimental Linux dedicated server: Wine + Madeira Dock in Docker
ampynjord Nov 19, 2026
0c42c45
server: shellcheck fixes, apt mirror build argument, configurable con…
ampynjord Nov 19, 2026
dec564c
Merge branch 'dkdknight:main' into feature/dedicated-server
ampynjord Nov 19, 2026
962951c
server: create the profile folders at start (mod and saves), longer c…
ampynjord Nov 19, 2026
0f69b50
Merge upstream/main into feature/dedicated-server
ampynjord Nov 19, 2026
a92b71b
Merge origin/feature/dedicated-server
ampynjord Nov 19, 2026
2cbe1cb
server: smaller image (minimal Mono), measure script, validated resul…
ampynjord Nov 19, 2026
46fe24f
server: fix shellcheck warning in measure.sh
ampynjord Nov 19, 2026
b3ebf7a
CI: build the package from the latest official release plus the launc…
ampynjord Nov 19, 2026
9402953
image: source label points to the repository that builds it
ampynjord Nov 19, 2026
953b21e
Merge branch 'dkdknight:main' into feature/dedicated-server
ampynjord Nov 19, 2026
79d16d4
Naming like the rest of the project: image mpfever-server-docker tagg…
ampynjord Nov 19, 2026
a0f0ea2
Merge origin/feature/dedicated-server
ampynjord Nov 19, 2026
c2be690
Merge branch 'dkdknight:main' into feature/dedicated-server
ampynjord Nov 19, 2026
665272a
Image named mpfever-server (conventional, no -docker suffix)
ampynjord Nov 19, 2026
baaac3e
Merge origin/feature/dedicated-server
ampynjord Nov 19, 2026
e852e93
docs: the published image lives on ghcr.io/ampynjord/mpfever-server
ampynjord Nov 19, 2026
74a28b0
docs: a dedicated guide docs/LINUX-SERVER.md (like RELAY.md), changel…
ampynjord Nov 19, 2026
b5b12ab
docs: DOCKER-SERVER.md (the host can be any x86-64 Docker host, not o…
ampynjord Nov 19, 2026
60129bc
Madeira Dock integrated: sources in server/dock (unit-tested, built i…
ampynjord Nov 19, 2026
b48071c
CI/CD inside the project's workflows: ci.yml (docker-server-checks, d…
ampynjord Nov 19, 2026
d27f93e
release.yml: the docker_server input goes before signing_policy (the …
ampynjord Nov 19, 2026
5da3319
docs: Docker is the only supported way to run the server
ampynjord Nov 19, 2026
858c591
Fix: settings are SRV_-prefixed (a host variable such as Windows' PUB…
ampynjord Nov 19, 2026
375aea0
GPU variant: documented as not validated, not working on Docker Deskt…
ampynjord Nov 19, 2026
f26c0cd
Docker server administration and logs: JSON log lines (launcher and s…
ampynjord Nov 19, 2026
231e012
Update notice of the notify mode: an English log line (no translation…
ampynjord Nov 19, 2026
a965168
Docker server mods: mod.io installer (mods login/list/sync/status), s…
ampynjord Nov 19, 2026
bd89630
Docker server: the server offers joining players the mod.io mods in f…
ampynjord Nov 19, 2026
15f9c8f
Docker server logs: the game's and Dock's own logs join the stream (c…
ampynjord Nov 19, 2026
c0421f6
Docker server mods: import of local mods from the administrator's PC …
ampynjord Nov 19, 2026
22e2dea
Docker server: administration page (off by default, token, loopback p…
ampynjord Nov 19, 2026
e19af7f
Merge upstream/main (0.9.2 released): the server entries of the chang…
ampynjord Nov 19, 2026
d4439b6
Docker server logs: the missing sound card's messages are debug; guid…
ampynjord Nov 19, 2026
1b2de71
Merge upstream/main (0.9.3 released): the server entries of the chang…
ampynjord Nov 20, 2026
d9fc545
Docker server diagnostics: session folders and game logs kept in the …
ampynjord Nov 20, 2026
e3e442c
Docker server logs: mod.io's re-authentication message is info on a s…
ampynjord Nov 20, 2026
5c73dea
Dedicated server: speed-vote (the players' pause and speed requests a…
ampynjord Nov 20, 2026
b88db67
Docker server: SRV_BIND (publish the port on 127.0.0.1 only), pids li…
ampynjord Nov 20, 2026
99ba368
Docker server: one instance per data volume (lock in the volume, exit…
ampynjord Nov 20, 2026
3bc9ba7
Dedicated server: shutdown-warning (players are warned and counted do…
ampynjord Nov 20, 2026
78fb0ab
Dedicated server through an MPFever relay (relay=, relay-host-key=, r…
ampynjord Nov 20, 2026
d778ce2
Relay host key: no migration, no resume-without-host; a dedicated ser…
ampynjord Nov 20, 2026
7b63c96
Public list: a server that announces a public address (its relay's) i…
ampynjord Nov 20, 2026
6b56c15
tests: test_server076 reads RestartWorld/StopServer by their start (t…
ampynjord Nov 20, 2026
4cc97ae
Merge fix/relay-image-name (the relay image is ghcr.io/<owner>/mpfeve…
ampynjord Nov 20, 2026
18b06cb
Relay: --list-url announces the host to the public list from the rela…
ampynjord Nov 20, 2026
6d458cc
Guide: roadmap of the dedicated server (headless world creation, an a…
ampynjord Nov 20, 2026
02b6463
Guide: roadmap decisions (command line first for world creation, admi…
ampynjord Nov 20, 2026
09196ec
Merge upstream 0.9.5
ampynjord Nov 23, 2026
c4fcc11
Merge upstream main (0.9.6)
ampynjord Nov 23, 2026
7fda201
Guide: remaining checks and what comes before a merge
ampynjord Nov 23, 2026
30df6cb
Guide: experimental status, comparison with the other options, what w…
ampynjord Nov 23, 2026
39eaf7c
Server log: routine game and mod chatter at debug only
ampynjord Nov 23, 2026
f82873d
Guide: what is not validated is for the next pull request
ampynjord Nov 23, 2026
669c6e8
Healthcheck: a paused world writes its log every 5 minutes, allow 10 …
ampynjord Nov 23, 2026
43347d1
Merge upstream main (0.9.7): changelog entries moved under 0.9.7
ampynjord Nov 24, 2026
e043f41
Review of the pull request: list probe limited to the announcer's add…
ampynjord Nov 24, 2026
9fe4ff4
Changelog: review fixes under 0.9.7
ampynjord Nov 24, 2026
d757daa
Guide: the quick start takes the project's files; tests for the setti…
ampynjord Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,53 @@ jobs:

- name: Compose file
run: MPFEVER_RELAY_PASSWORD=ci docker compose -f relay/compose.yaml config -q

# The dedicated server in Docker (server/, docs/DOCKER-SERVER.md): shell (shellcheck), Python, Madeira Dock's unit tests, Compose files, no secrets, no
# binaries, no game or Valve file.
docker-server-checks:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Tools
run: sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck python3-zstandard

- name: Static checks
run: bash server/tests/check.sh

# ... and its image, built from this commit's server archive (the job "build" above), then smoke-tested: it runs unprivileged, holds no game or
# Valve file, and an empty volume gives explicit messages. Nothing is pushed: the image is published by the Release build workflow.
docker-server:
needs: [build, docker-server-checks]
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: MPFever-${{ github.sha }}
path: server/dist

- name: The server archive is the image's input
working-directory: server/dist
run: |
ls -l
cp ./MPFever-*-server.zip MPFever-server.zip

- uses: docker/setup-buildx-action@v3

- name: Build the image
uses: docker/build-push-action@v6
with:
context: server
load: true
tags: mpfever-server:ci
build-args: |
VCS_REF=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Smoke tests
run: bash server/tests/smoke.sh mpfever-server:ci
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ on:
description: "Also publish the relay's Docker image (x64 and arm64) to ghcr.io/<owner>/mpfever-relay, tagged with the version and latest"
type: boolean
default: false
docker_server:
description: "Also publish the dedicated server's Docker image (x64; server/Dockerfile, docs/DOCKER-SERVER.md) to ghcr.io/<owner>/mpfever-server, tagged with the version and experimental"
type: boolean
default: false
docker_server_revision:
description: "With docker_server: a revision of the same MPFever version (for example 2 gives the tag <version>-2 instead of <version>), for a new image of the dedicated server without a new MPFever release"
type: string
default: ""
signing_policy:
description: "SignPath's signing policy: test-signing (SignPath's self-signed test certificate, to check the setup: NEVER publish those archives) or release-signing (SignPath Foundation's certificate, once SignPath has imported it)"
type: choice
Expand Down Expand Up @@ -288,3 +296,71 @@ jobs:
path: release/Relay-MPFever-${{ steps.version.outputs.version }}-win-x64.zip
if-no-files-found: error
retention-days: 30

# (optional, off unless "docker_server" is ticked when the workflow is started: the dedicated server's image (server/Dockerfile), x64, on GitHub's
# container registry under the owner of the repository. It is built from this run's unsigned server archive (the image takes MPFever.exe, winhttp.dll and
# the mod from it; the signatures are for Windows), smoke-tested, then pushed as <version> and experimental. It holds no Transport Fever 3 or Valve
# file: the game is imported from the user's own install and Valve's client library is fetched from Valve at the first start. The package's visibility is
# set on its page on GitHub)
docker-server:
if: ${{ inputs.docker_server }}
needs: release
runs-on: ubuntu-24.04
timeout-minutes: 60
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Version and image name
id: v
run: |
echo "version=$(sed -n 's/^set "VERSION=\([^"]*\)".*/\1/p' build.bat | tr -d '\r')" >> "$GITHUB_OUTPUT"
echo "image=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/mpfever-server" >> "$GITHUB_OUTPUT"

- uses: actions/download-artifact@v4
with:
name: MPFever-${{ steps.v.outputs.version }}-unsigned
path: server/dist

- name: The server archive is the image's input
working-directory: server/dist
run: cp "MPFever-${{ steps.v.outputs.version }}-server.zip" MPFever-server.zip

- uses: docker/setup-buildx-action@v3

- name: Build the image
uses: docker/build-push-action@v6
with:
context: server
load: true
tags: mpfever-server:release
build-args: |
VERSION=${{ steps.v.outputs.version }}
VCS_REF=${{ github.sha }}
SOURCE_REPO=https://github.com/${{ github.repository }}

- name: Smoke tests
run: bash server/tests/smoke.sh mpfever-server:release

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push
run: |
rev="${{ inputs.docker_server_revision }}"
case "$rev" in ""|*[!0-9a-z.]*) [ -z "$rev" ] || { echo "docker_server_revision: letters, digits and dots only"; exit 1; } ;; esac
[ -z "$rev" ] || ver="${{ steps.v.outputs.version }}-$rev"
for t in "${ver:-${{ steps.v.outputs.version }}}" experimental; do
docker tag mpfever-server:release "${{ steps.v.outputs.image }}:$t"
docker push "${{ steps.v.outputs.image }}:$t"
done

- name: Summary
run: |
bt='`'
echo "- Docker image $bt${{ steps.v.outputs.image }}:${{ steps.v.outputs.version }}$bt (and $bt:experimental$bt), x64" | tee -a "$GITHUB_STEP_SUMMARY"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ The savegames are in `Steam\userdata\<number>\3493540\local\save\` (Steam) or `%
| Game mod | `mod/mpfever_1/` (Lua) | Captures player actions and replays them in every game at the same game time (barrier lockstep). It computes the state checksums and manages the companies. It also draws the multiplayer page and the in-game windows. It does nothing unless the game was started by the launcher. |
| Native module | `native/` (C++, no CRT) | `winhttp.dll` in the game folder, a pass-through proxy. In a session, it holds construction commands until the shared step, copies terrain edits, separates each player's company, and fixes the game's sources of randomness and its pacing. |
| Relay (`mpfever-relay`) | `relay/` (C#, .NET 9) | Not the dedicated server: an optional meeting point that runs on any small Linux or Windows machine, with no game on it: the first player in hosts through it (no port to open, one address for everybody) and, with experimental `--migration`, an eligible player can take over when the host leaves. See [RELAY](docs/RELAY.md). |
| Dedicated server in Docker (`mpfever-server`, experimental) | `server/` | The Windows game under Wine in a Linux container, with Valve's own client library through Madeira Dock: a dedicated server for any x86-64 Docker host, no GPU. See [docs/DOCKER-SERVER.md](docs/DOCKER-SERVER.md). |
| Tests | `tests/` (Python + lupa) | Language files and a simulated lockstep. |

The launcher and the game talk through files in `%TEMP%\mpfever\<session>\`. No process injection is used.
Expand Down
37 changes: 37 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,43 @@ MPFever - Changelog
(was mpfever-relay-docker: a registry holds only container images, the suffix said nothing, and the Compose file already
names the image mpfever-relay), tagged with the version and latest as before. docs/RELAY.md follows. Nothing was published
under the old name by the project; a package pushed to it earlier can be deleted.
- NEW (experimental, server/, docs/DOCKER-SERVER.md): a dedicated server in one Linux Docker container (any x86-64 Docker host): the Windows game under Wine, started through
Madeira Dock (Valve's own client library: real sign-in and licence check, no Steam desktop, about 280 MB; its sources are in server/dock/,
unmodified at the import and maintained by this project: server/dock/MAINTAINING.md), software Vulkan with a layer that makes drawing a
no-op, a "lite" game install (66 GB become about 1 GB), no GPU. Players join it like any dedicated server. The launcher gets a Linux/Wine start mode
(MPFEVER_WINE=1, MPFEVER_DOCK) and a stop file (MPFEVER_STOPFILE: the world is saved, then the server stops, as the console's "stop"); nothing changes on
Windows. The image (ghcr.io/ampynjord/mpfever-server, tagged with the MPFever version and "experimental") holds no game or Valve file; install-game,
login (QR code, no password), import-save and status are its administration commands. Validated end to end for short sessions with a real Windows
client; long runs, several clients and large worlds are not yet (see the guide). For the Docker server the launcher also has MPFEVER_LOG_JSON=1 (one JSON object
per line in its log file: ts, level, component, msg), MPFEVER_CMDDIR (one file per console command: `mpfever-admin` runs the commands of the server window from
outside) and autoupdate=notify (a new release is announced in the log, never installed). CI: ci.yml (jobs docker-server-checks and docker-server) and, to publish the image, release.yml (option docker_server).
- NEW (server/, mods): the Docker server installs the mod.io mods of its world (`mods login/list/sync/status`; the key is typed once and kept in the data volume only): a reduced copy for the game (files a server
never reads left empty, same paths and sizes) and the full copy kept apart; checked and updated at every start (SRV_MODS_SYNC). The launcher, with MPFEVER_MODSTORE (a Docker server only), offers a
joining player the mods it lacks in their full version, from that store; the player's MPFever shows the offer and installs them once accepted. The game's mod.io library is given what it needs to list the mods
(its state file and a local subscription record).
- NEW (server/): the game's and Dock's own logs join the server's JSON stream (components game and dock; SRV_GAME_LOG); `mods import <folder>` brings the administrator's local mods (full copy for the players,
reduced one for the game; `mods list` shows what is missing); an administration page (SRV_ADMIN_UI=on, off by default; token, loopback port through compose.admin.yaml, the console's commands except stop,
audited in the log). No launcher change.
- NEW (server/): what a bug report needs is kept: the launcher's session folder (in.log, mod.log, native.log ...) is copied from the container's memory to the data volume (every 5 minutes, at the launcher's exit and
at the stop) and the game's log of each start is kept; `mpfever-admin bundle` makes one zip of it with the other logs and the crash reports, without any secret; the game's log is shipped at `info` by default
(what a server always says, like the missing sound card and mod.io account, is info and no longer an error). The Release build workflow takes docker_server_revision (tag <version>-2 for a new server image of the same version).
- NEW (dedicated server): speed-vote=true in mpfever_server.properties: the players' pause and speed requests become votes, carried when more than half of the connected players ask the same within a
minute (a player alone decides at once; the server announces the progress in the chat; the console and `mpfever-admin` always can). Off by default. Docker: SRV_SPEED_VOTE.
- NEW (server/): only one server instance per data volume (a lock in the volume, exit code 60): two containers on the same volumes would share the Steam session, the savegame and the port.
- NEW (dedicated server): shutdown-warning=N: a stop or a restart while players are connected is announced in their chat and counted down (the last minute, 30 s, 15 s, 10 s, the last 5 s), then happens;
at once when nobody is connected. 0 (the default of the file) keeps the immediate stop. Docker: SRV_SHUTDOWN_WARNING (60), `docker compose stop` waits for it.
- NEW (relay and dedicated server): the relay's --host-key (MPFEVER_RELAY_HOST_KEY): only the launcher that shows the key may host, the players need no password; and a dedicated server can host through a relay (relay=, relay-host-key=,
relay-password= in mpfever_server.properties; Docker: SRV_RELAY, SRV_RELAY_HOST_KEY, SRV_RELAY_PASSWORD): for a server behind a mobile box or CGNAT. Optional: without relay= the server listens itself, as before. Tried again every
30 s while the relay is unreachable; the world is hosted again after a lost connection.
- NEW (Docker server, experimental): SRV_STEAM_MODE=offline starts the game through Valve's own offline logon (Dock's MADEIRA_DOCK_OFFLINE): the account's game can run on the owner's PC at the same time, with the same licence.
- NEW (relay): --list-url URL (MPFEVER_RELAY_LIST_URL), with --host-key: the relay announces its host to the public server list from its own address, so a dedicated server behind a router that lets nothing in (and
with Steam offline) is listed, reachable; the server's launcher sends the data (tun_list) and does not announce by itself when it hosts through a relay.
- FIX (review of PR #435, dedicated server): the public list only connects to an announced host:port when it resolves to the address the announce came from (it was a port prober for any public
address), with a time limit on the name lookup, and refuses 64:ff9b::/96, 198.18.0.0/15 and 192.0.0.0/24. A relay that dies at the first connection no longer blocks its own retry (hostGame was kept set),
a stop during a restart's countdown now wins, and the Docker stop grace period (SRV_STOP_GRACE, 200 s) must cover SRV_SHUTDOWN_WARNING + 90 s (checked at start).
- FIX (review of PR #435, server/): the default image is the project's (ghcr.io/dkdknight/mpfever-server); Wine's Z: drive no longer shows /data/secrets and the Steam transfer file is removed once the game runs
(a mod's Lua can no longer read them through Z:); the administration page accepts a reverse proxy's X-Forwarded-Host or SRV_ADMIN_ORIGINS; the Ubuntu base and WineHQ's key and source file are pinned by hash;
a line break in .env is refused; the Steam login name is no longer in the log; a mod id of "." or ".." is refused.

0.9.6 - 2026-11-23: loans taken in a pause no longer desync the games (#470), and three crashes fixed: a vehicle bought from a pack another player plays without (#471), a click on a game notification (#475), a mod's demolition applied several times at once (#467)
- FIX (#471, fritz and privat5990): fritz took all 13 of the host's mods for personal (« Play without it » on the
Expand Down
Loading
Loading