Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:03
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
729d3f5

What's Changed

Since last stable release

🎮 General

  • 🚧 Update: Renamed the project to Age Server (formerly Age LAN Server, originally AoE 2 DE LAN Server), to make clear the server works outside a LAN too. The README states the former name and lists the Age of Empires IV: Anniversary Edition features, including Crucible Co-Op.
  • 🚧 Update: Lifted the TOS restriction that limited the game to a LAN environment.
  • 🚧 Update: Removed the unimplemented-features section of the main README, as everything in the API is now in scope.
  • 🚧 Update: Minimum macOS version raised from Monterey (v12) to Ventura (v13).
  • 🐛 Fix: Environment variable keys with mixed case are preserved (Ports.Bs is no longer lowercased).
  • 🐛 Fix: Unhandled errors and resource leaks handled across cmdlog, the config service, announce and match content download.
  • 🐛 Fix: News subtitle is sent as null when omitted, matching the official responses, instead of an empty string.

🖥️ Server

Warning

Do not port over the user data of a previous installation: let the server create userData from scratch. The ranked storage changed (season-scoped ratings and a new mmr table) and an existing automatch2.db is not migrated: the server logs a schema error and disables match history and leaderboards. Delete resources/userData/<game>/automatch2.db (and its -wal/-shm files) or the whole userData folder. Coming from a 2.0.0 prerelease older than Beta 3, this is the one manual step.

Important

Coming from a 2.0.0 prerelease older than Beta 3, cloud assets moved from resources/responses/cloud/<game>/ to resources/responses/cloud/<game>/builtin/. Re-extract the server archive or move the existing files into builtin/, otherwise downloads of the bundled assets fail. A fresh installation is already correct.

  • [EXPERIMENTAL]🔝 Enhancement: Embedded Battle Server reimplementation with auto-start. Have a look at the project here. Configurable via the config in [Games.<game>.EmbeddedBattleServer]. The server can now start a Battle Server inside its own process when no external one is configured or discovered. This means for the 'Online-like' variant:
    • Simplicity: Battle Server Manager or manually running Battle Server is no longer needed.
    • Native (More compatibility and performance):
      • Non-Windows OSes no longer need a Windows compatibility layer (like Wine) to run a Battle Server.
      • Non-x86_64 CPU archs no longer need to emulate the CPU instructions (for example, using Prism on Windows, FEX on Linux or Rosetta 2 on Mac) of x86_64.
    • Up-to-date: not relying on game-provided battle servers that are outdated with missing features.
    • Open-source: can improve our battle server reimplementation as needed.
    • Reliability: not relying on game-provided battle servers that are, sometimes, buggy.
  • [EXPERIMENTAL]🔝 Enhancement: Signing the catalogues is now a config option (Sign.Enabled), off by default. When on, the server re-signs catalogues it serves; users in Sign.PlatformUserIdExceptions get the opposite behavior. Signing allows for the catalogues to be dynamic. GenCert now generates the signing public and private keys. In order for the client to accept the new signature you must use AgeFakeSignature.dll from https://github.com/luskaner/ageServerLauncherCompanion.
  • [EXPERIMENTAL]🔝 Enhancement: Quick Match / Ranked matchmaking rewritten around a real queue catalog. The client matchTypes are now resolved against the bundled automatchMaps.json pool plus a per-game automatchQueues.json overlay (ladder, rated, completion, ack, max players, advertisement match type), with per-title wire formats, FIFO queues, party units and reserved advertisements. getPersonalStat is now served for all four titles.
  • [EXPERIMENTAL]🔝 Enhancement: AoE II: DE matchmaking uses the queue catalog: 14 queues (ranked Random Map and Death Match 1v1–4v4, plus unranked co-op and Quick Play). This supersedes the initial hard-coded 1v1 queue. Thanks to @Chichimokers.
  • [EXPERIMENTAL]🔝 Enhancement: AoE I: DE Quick Match: 8 queues (Random Map and Death Match, 1v1–4v4), per-title wire shapes, queue population in the polling status, and no party support (the server adds both players to the match advertisement).
  • [EXPERIMENTAL]🔝 Enhancement: AoE III: DE Ranked Game Search: 12 queues (Supremacy 1–4, Deathmatch 5–8, Empire Wars 18–21), multi-size searches and party support.
  • [EXPERIMENTAL]🔝 Enhancement: AoM: Retold Ranked Game Search: 20 queues (Ranked Supremacy and Deathmatch 1–8, Quickmatch Supremacy, Deathmatch and Lightning 28–39) over the 61 shipped rm_<map> scenarios, with party support.
  • [EXPERIMENTAL]🔝 Enhancement: AoE IV: AE ranked seasons and hidden MMR: rolling 90-day seasons (5 placement matches) published through getAvailableCommunityEvents, a visible ladder reset every season while a per-queue hidden MMR survives it, and Quick Match search no longer cancelled by the party/session lobby. Map vetoes are now scoped to their own queue.
  • [EXPERIMENTAL]🔝 Enhancement: Added an opt-in fallback for clients whose map pool is newer than the bundled one: Automatch.AssumeQueue = 'rm-solo' (or --assumeQueue rm-solo) pairs unknown matchTypes as unrated 1v1 Random Map instead of rejecting the search. Off by default.
  • [EXPERIMENTAL]🔝 Enhancement: AoE IV masteries and challenges are unlocked by default. The server serves every challenge definition declared by challenges.json — including the Crucible masteries — as completed, using the official positional form (completionCount 1, progress 0, expiryTime null). The loading bug that left getChallengeProgress empty is fixed: challenges.json is an array asset, not a signed one, so it never reached the challenge model before. Existing profiles are unlocked when they load (document version 2 renames the old status field and drops the -1 expiry, which the client reads as already expired), and updateProgressBatched accepts both the form-encoded and JSON payloads and never reverts a completed challenge. The parser accepts both the current wrapper [result, groups, definitions, signature] and the historical flat array, so the AoE II and AoM resources keep loading.
  • 🔝 Enhancement: Improved support for Age of Empires 4: Raiders of the North DLC including the new Crucible COOP mode and civs.
  • 🔝 Enhancement: AoE 4 no longer crashes when customizing the profile and now allows to change and save it. Thanks to anonymous person.
  • 🔝 Enhancement: Replays are now the ones the game uploads, not a recording of the battle server. New [Replays] section (Enabled, MaxFileSize, MaxTotalSize, Expiry) replaces [BattleServerReplays] and the Folder key is gone; enabled by default, 32 MB per replay, 1 GB per game, kept forever by default (-1s).
  • 🔝 Enhancement: /cloudfiles/ is a real store with two areas under resources/responses/cloud/<game>/: builtin/ for shipped assets (never evicted) and replays/ for uploads (evicted oldest-first). Downloads now also work for AoE IV and AoM; uploads are enabled for AoE II, AoE IV and AoM, and match history lists one entry per stored replay. Large uploads are no longer truncated (the body cap is raised and the read deadline extended up to 5 minutes based on the size limit), Accept-Ranges is sent again (it was misspelled Accept-Range) and downloads report the file name in x-ms-meta-filename.
  • 🔝 Enhancement: New public /community/ API, the unauthenticated counterpart of /game/, served on its official host and reachable without a session. The 18 documented endpoints are registered from the start, including the 6 that can only answer with an exact-shape stub (clans, achievements, the Steam proxy and the two upstream-404 ones), so no documented path ever 404s. Response shapes follow the live service where the wiki is outdated. See server/README.md and docs/community-api-implementation.md.
  • 🔝 Enhancement: Serve multiplayer savegames and replays via /api/MatchContent/ (upload and download endpoints). Configurable in the CustomFiles section. Matches can now be restored to be played. Thanks to @DrA1ex
  • 🔝 Enhancement: The match history echoes the lobby metadata (encodedOptions, encodedSlots, maxPlayers, description), so the post-game screen rebuilds the slot layout. maxPlayers is the lobby capacity reported by the official service per title (16 AoE IV, 8 AoE II, 12 AoM).
  • 🔝 Enhancement: The result notification is sent for every match, rated or not, and reports the list of winning teams, the race, the counters in the order the client sent them and the XP gained. Self-hosted lobbies no longer stay on "Retrieving..." and a loss no longer triggers "the server disagreed... Reporting Desync".
  • 🔝 Enhancement: Implemented getNews endpoint so the server can serve news to clients.
  • 🔝 Enhancement: The "new" badge on rewards clears. is_new is now persisted per item instance instead of being rejected, which is what the client reports through updateItemAttributes when the player opens a reward. Rewards the server hands out by default are created already seen, so a fresh profile no longer shows every mastery portrait, monument or sigil with a new badge; the items document moves to version 1 and old profiles are migrated on load. Items whose definition does not declare is_new still carry no attribute, matching the official inventory.
  • 🔝 Enhancement: Battle server fallback priority with warnings. When the battle server executable of a title cannot be found, the battle server manager walks a priority list instead of giving up: AoE I tries AoE I, then AoE II, then AoE III; AoE III tries AoE II (its usual server), then AoE III, then AoE I. A warning is logged whenever the server used is not the one the title normally runs, because it may not work correctly. AoE II, AoE IV and AoM keep their existing mapping.
  • 🔝 Enhancement: Added configuration option Internet.IP (auto by default) to set a static WAN IP instead of relying of apify service. Only relevant if the server is accessed from the WAN side. Thanks to @bgstack15.
  • 🔝 Enhancement: Added configuration option (and flag) Internet.Enabled (enabled by default) to disable the use of features that always require internet. Thanks to @bgstack15.
  • 🔝 Enhancement: Implemented config GUI, shipped at the root of the server archives (also for 386 Windows builds). Thanks to @AlvaroGReg.
  • 🔝 Enhancement: New icons available for all compatible games. Thanks to anonymous person.
  • Enhancement: Migrated to a more performant WebSocket library (lxzan/gws instead of gorilla/websocket).
  • 🐛 Fix: AoE III no longer loses matches silently: simplayerIDs=[4294967295] (unsigned "no sim player") failed to bind the whole form, so reportMatch answered code 2 with no history entry, no ladder update and no replay.
  • 🐛 Fix: Observable matches are only listed once started and keep their real start time (issue #403). The state the client sends in /advertisement/update no longer rewinds a started match, and the start time is only stamped once.
  • 🐛 Fix: Chat channel join/leave notifications are only sent to the members of the channel instead of every logged-in user (closes #58), and logging in drops stale channel memberships left by a previous session that did not log out.
  • 🐛 Fix: Re-reporting a match preserves its counters and customUpdates, unknown JSON keys (e.g. customScoring) survive, malformed itemUpdates no longer reject the report, and statGroupID is resolved the same way in the notification and the history.
  • 🐛 Fix: reportMatch success code is 0 again (verified against the 1.16.0 client).
  • 🐛 Fix: The AoE II ladder now includes profiles with 0 games at the default rating, as the 1.16.0 client expects on login. This is a documented product decision, not a missing filter.
  • 🐛 Fix: getChallengeProgressByProfileID answered with the caller's progress. The route was a FIXME registered against getChallengeProgress; it is now its own handler and answers with the requested profile_id (or an empty list when that profile is unknown). AoE IV is the only title that registers it.
  • 🐛 Fix: Challenge progress routes covered for AoE 4. Thanks to anonymous person.
  • 🐛 Fix: Item metadata persistence now keeps source and mtype and never persists the transient is_new flag. Thanks to anonymous person.
  • 🐛 Fix: getTempCredentials only issues a SAS once the key exists, instead of leaving a live credential for every unknown key.
  • 🐛 Fix: The certificate folder is created when the stat fails for any reason, not only when it does not exist.
  • 🐛 Fix: gen-cert self-signed certificates now assign correct KeyUsage and ExtKeyUsage; generated private keys are owner-only (0600).
  • 🐛 Fix: Two narrowing integer conversions flagged by CodeQL are bounded. matchHistory.GetProfileByPlatformUserID no longer converts an arbitrary uint64 platform id to int64: any id above math.MaxInt64 wrapped negative and could match an unrelated row, and it now reports not-found. communityEvent keeps the event type as int64 instead of narrowing it to int.
  • 🐛 Fix: multiple websocket fixes.

🎮 Launcher

  • 🔝 Enhancement: Added option (and flag) CanUseInternet / --internet (default true) to disable the use of features that always require internet.
  • 🔝 Enhancement: Moved the text to different sections like Init (implied), Configuration, Initial teardown, Execution and final teardown to make operations more understandable.
  • 🔝 Enhancement: Make use of modern terminal features like emojis and format with fallback for legacy terminals.
  • 🔝 Enhancement: Use a GUI dialog to select server or start one. Can be disabled by setting CanUseDialogs to false.
  • 🔝 Enhancement: agent now makes use of the system tray with Exit action and activity status.
  • 🔝 Enhancement: agent now shows a notification to indicate the status when exiting.
  • 🔝 Enhancement: AoE II: DE on macOS now maps arthurlive-release<N>-api.worldsedgelink.com, the domains the native client queries. Releases 1 and 2 are static and work offline; the rest are discovered via DNS when internet access is available (refs #688).
  • 🐛 Fix: A run no longer inherits anything from the previous run and reverts when it should.
  • 🐛 Fix: Stop leaking an elevated config-admin-agent after the game exits.
  • 🐛 Fix: Session state globals are now protected against data races from signal goroutines.
  • 🐛 Fix: response body leak when reading certificate from server.
  • 🐛 Fix: UDP server discovery race on shared sockets.
  • 🐛 Fix: launcher logger (prefix contamination, swallowed errors, case-sensitive DNS matching, nondeterministic order).
  • 🐛 Fix: infinite loop on stdin EOF during server selection.
  • 🐛 Fix: Kill fallback no longer pretends to be a second attempt on slow machines.
  • 🐛 Fix: postAgentStart polling is bounded and reports failure instead of hanging forever.
  • 🐛 Fix: A profile folder that cannot be switched now logs the path and the error on every failure path, and the rename is retried five times with a growing backoff so a transient lock right after the game exits no longer fails the revert.
  • 🐛 Fix: hosts file integrity: legacy owned comments are never revived on revert, an invalid or empty backup can never replace the file (it is rotated to hosts.bak.old-<timestamp>), an emptied hosts is recovered from the backup, a custom hosts path no longer gets duplicated content, an over-limit line no longer drops the other entries, the temporary file is truncated to its written size and the backup is synced after copying. Thanks to @Chichimokers.
  • 🐛 Fix: Copying the game logs with the agent preserves the directory permissions on Unix (the walk used the type bits, so directories ended up with mode 0).
  • 🐛 Fix: The config service no longer fails on a missing userData folder and the GUI reads/writes the new [Replays] section.
  • 🐛 Fix: launcher-config flush-cache now reports a failed file logger initialization instead of discarding the error silently, the way setUp and revert already did.
  • 🪟🐛 Fix: ShellExecuteExW no longer writes into a stack-allocated struct and releases the process handle.

🖥️ Battle Server Manager

  • Enhancement: Deterministic non-loopback IP selection for broadcast.
  • Enhancement: Port generation and allocation reworked to be more robust and testable.
  • 🐛 Fix: Null-safety in broadcast IP calculation and ValidData length checks.
  • 🐛 Fix: battle-server-manager bugs covered by a new unit test suite.

Developer changes

  • 🔝 Enhancement: New Tests CI workflow: go vet plus go test for every module on Linux and Windows, and -race for common and server.
  • 🔝 Enhancement: Exhaustive httptest coverage for all server routes, models, playfab, textmoderation and WSS; matchmaking coverage (per-title profile table pinned against the captures, catalog pool/overlay validation, response goldens, an end-to-end pairing of two AoE I players, season/MMR and replay/chat route tests); dependency-injection refactors with their test suites across admin client, revert/executor, config-helper, runRoot, battle-server-manager and the rest of the modules; a benchmark for a full 1000-row leaderboard page in both orderings.
  • 🔝 Enhancement: The byte-size parser lives in common/bytesize and is shared by the server and the configuration GUI, so the editor can no longer accept a value the server rejects. The MaxFileSize/MaxTotalSize/Expiry validation is one resolveSizeLimits.
  • 🔝 Enhancement: The generated GoReleaser config is deterministic: mergeBuilds sorts the merged architecture lists, whose map iteration order made TestGenerateConfigUniversalMacOS flaky on Linux.
  • 🔝 Enhancement: Internal consolidation with no behaviour change: the chat, item and invitation handlers share their bind-and-resolve prefix, the leaderboard response helpers are shared, the embedded battle server ports are validated with battleconfig, and NumberToInt64/BoolToNumber replace the copies of the same conversions.
  • 🔝 Enhancement: AGENTS.md added with the contract a change must pass before it is considered done (gofmt, build, vet, tests and -race, the modernizers, the cross-GOOS vet and the signed-commit steps); DEVELOPMENT.md refreshed for Go 1.27, Node.js and GoReleaser v2.
  • 🔝 Enhancement: task build now builds only the host platform with --single-target; task build was renamed to task build-all.
  • 🚧 Update: Go from 1.26.9 to 1.27.4 in every module and in go.work; GitHub Actions setup-go v6 → v7, setup-node v4 → v7 with Node lts/* instead of a pinned major, the legacy Windows 7 toolchain to 1.27.4-1, and GoReleaser to v2.20.2 (both the action parameter and the tools/scripts dependency).
  • 🚧 Update: ageBattleServer v1.0.0 → v1.1.0, battle-server-broadcast v1.3.2 → v1.3.3, gorilla/websocket → lxzan/gws, pflag v1.0.10 → v1.1.0, modernc.org/sqlite v1.61.0 → v1.62.0, modernc.org/libc v1.80.1 → v1.81.2, modernc.org/memory v1.12.1 → v1.13.0, charm.land/lipgloss/v2 v2.0.6 → v2.1.1, goreleaser/chglog v0.7.4 → v0.7.5, goreleaser/nfpm/v2 v2.48.0 → v2.49.0, klauspost/compress v1.20.3 → v1.20.4, purego v0.11.2 → v0.11.3 and golang.org/x/crypto, /image, /sync, /sys, /term, /text bumped to their latest minors.
  • 🚧 Update: Removed the standalone battle-server mock (functionality absorbed by the embedded Battle Server), the replay recorder of the embedded battle server and the stray changeme.exe from the repository.
  • 🚧 Update: Docker compose server and battle-server-manager now use restart: unless-stopped; the Docker entrypoint validates and quotes GAME_ID.
  • 🚧 Update: Release pipeline now generates the GoReleaser config on non-Windows hosts, does idempotent uploads and produces a universal macOS archive; CI builds the Wails frontend before GoReleaser.
  • 🐛 Fix: The actionable GoLand inspection findings are resolved: dead code removed, shadowed imports renamed, tautological typed-nil tests deleted, certificate cleanup tests rewritten against AddCert's real error path, and results that cannot be acted upon now discarded explicitly. go fix ran the Go 1.27 modernizers and gofmt is clean across the workspace.
  • 🐛 Fix: The wss handler drops ServerOption.WriteBufferSize (deprecated since gws v1.4.5 and ignored) and the unused writeMessage helper.
  • 🐛 Fix: go vet failures in common/cmdlog (non-constant format strings) now that the tests run in CI.
  • 🐛 Fix: .gitignore now separates go.work.sum and adds coverage, .gocache and userData/ patterns; go.work gets its missing trailing newline.
  • Enhancement: The advertisement matchType is now uint16, so queue ids above 255 are preserved.
  • Enhancement: Battle server PID check is now optional (ignorePid) to support Docker-like containers in host-like network mode.

See Github differences in v1.15.6...v2.0.0


What's coming in the future?

See this.

Contributors

First time contributors:

Thanks as well to @AlvaroGReg, to the anonymous person behind the icons, the profile customisation and several AoE IV fixes, and to everyone who tested the 2.0.0 prereleases.

Sponsors/Donations

  • @codabrink (GitHub monthly sponsor).
  • B. Stack (one-time donation).
  • Skoop (one-time donation).
  • Ghoulette (one-time donation).

There are multiples ways to help: starring the repo, spreading the word, contributing to the repository, making an issue report, sponsoring me monthly or a one-time donation!

Files

The following assets are directly compiled and listed next to the release notes:

  • Full:

    • Windows:
      • 10 on x86-64: ageServer_full_2.0.0_win10_x86-64.zip
      • 7 on x86-64: ageServer_full_2.0.0_win7_x86-64.zip
      • 11 on ARM: ageServer_full_2.0.0_win11_arm64.zip
    • Linux:
      • x86-64: ageServer_full_2.0.0_linux_x86-64.tar.gz
      • ARM64: ageServer_full_2.0.0_linux_arm64.tar.gz
    • macOS: ageServer_full_2.0.0_mac.tar.gz
  • Launcher:

    • Windows:
      • 10 on x86-64: ageServer_launcher_2.0.0_win10_x86-64.zip
      • 7 on x86-64: ageServer_launcher_2.0.0_win7_x86-64.zip
      • 11 on ARM: ageServer_launcher_2.0.0_win11_arm64.zip
    • Linux:
      • x86-64: ageServer_launcher_2.0.0_linux_x86-64.tar.gz
      • ARM64: ageServer_launcher_2.0.0_linux_arm64.tar.gz
    • macOS: ageServer_launcher_2.0.0_mac.tar.gz
  • Battle Server Manager:

    • Windows:
      • 10 on x86-64: ageServer_battle-server-manager_2.0.0_win10_x86-64.zip
      • 7 on x86-64: ageServer_battle-server-manager_2.0.0_win7_x86-64.zip
      • 11 on ARM: ageServer_battle-server-manager_2.0.0_win11_arm64.zip
    • Linux:
      • x86-64: ageServer_battle-server-manager_2.0.0_linux_x86-64.tar.gz
      • ARM64: ageServer_battle-server-manager_2.0.0_linux_arm64.tar.gz
    • macOS: ageServer_battle-server-manager_2.0.0_mac.tar.gz
  • Server:

    • Windows:
      • 10 (IoT), Server (IoT) 2025 on ARM64: ageServer_server_2.0.0_win10_arm64.zip
      • 10 (IoT), (Storage) Server 2016, Server IoT 2019 on x86-64: ageServer_server_2.0.0_win10_x86-64.zip
      • 7, Server 2008 R2, Home Server 2011, Embedded 7 on x86-64: ageServer_server_2.0.0_win7_x86-64.zip
      • 10 (IoT) on x86-32: ageServer_server_2.0.0_win10_x86-32.zip
      • 7, Embedded 7, Thin PC on x86-32: ageServer_server_2.0.0_win7_x86-32.zip
    • Linux:
      • ARM64: ageServer_server_2.0.0_linux_arm64.tar.gz
      • ARM32:
        • ARMv5 (armel): ageServer_server_2.0.0_linux_arm-5.tar.gz
        • ARMv6 (sometimes called armhf): ageServer_server_2.0.0_linux_arm-6.tar.gz
      • x86-64: ageServer_server_2.0.0_linux_x86-64.tar.gz
      • x86-32: ageServer_server_2.0.0_linux_x86-32.tar.gz
    • macOS: ageServer_server_2.0.0_mac.tar.gz

Note: If you are using Antivirus it may flag one or more executables as virus, this is a false positive.

Verification

The verification process ensures that the files you download are the same as the ones that were uploaded by the maintainer.

  1. Download the ageServer_2.0.0_checksums.txt and ageServer_2.0.0_checksums.txt.sig files.
  2. Import the release public key and import it to your keyring if you haven't already.
  3. Verify the ageServer_2.0.0_checksums.txt file with the ageServer_2.0.0_checksums.txt.sig file.
  4. Verify the SHA-256 checksum list inside ageServer_2.0.0_checksums.txt with the downloaded archives.

Help

Create an issue or look for other related issues.