Repository navigation
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.Bsis no longer lowercased). - 🐛 Fix: Unhandled errors and resource leaks handled across cmdlog, the config service, announce and match content download.
- 🐛 Fix: News
subtitleis sent asnullwhen 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 inSign.PlatformUserIdExceptionsget 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
matchTypesare now resolved against the bundledautomatchMaps.jsonpool plus a per-gameautomatchQueues.jsonoverlay (ladder, rated, completion, ack, max players, advertisement match type), with per-title wire formats, FIFO queues, party units and reserved advertisements.getPersonalStatis 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 unknownmatchTypesas 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 (completionCount1,progress0,expiryTimenull). The loading bug that leftgetChallengeProgressempty is fixed:challenges.jsonis 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 oldstatusfield and drops the-1expiry, which the client reads as already expired), andupdateProgressBatchedaccepts 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 theFolderkey 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 underresources/responses/cloud/<game>/:builtin/for shipped assets (never evicted) andreplays/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-Rangesis sent again (it was misspelledAccept-Range) and downloads report the file name inx-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. Seeserver/README.mdanddocs/community-api-implementation.md. - 🔝 Enhancement: Serve multiplayer savegames and replays via
/api/MatchContent/(upload and download endpoints). Configurable in theCustomFilessection. 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.maxPlayersis 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
getNewsendpoint so the server can serve news to clients. - 🔝 Enhancement: The "new" badge on rewards clears.
is_newis now persisted per item instance instead of being rejected, which is what the client reports throughupdateItemAttributeswhen 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 declareis_newstill 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(autoby 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/gwsinstead ofgorilla/websocket). - 🐛 Fix: AoE III no longer loses matches silently:
simplayerIDs=[4294967295](unsigned "no sim player") failed to bind the whole form, soreportMatchanswered 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/updateno 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, malformeditemUpdatesno longer reject the report, andstatGroupIDis resolved the same way in the notification and the history. - 🐛 Fix:
reportMatchsuccess code is0again (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:
getChallengeProgressByProfileIDanswered with the caller's progress. The route was aFIXMEregistered againstgetChallengeProgress; it is now its own handler and answers with the requestedprofile_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
sourceandmtypeand never persists the transientis_newflag. Thanks to anonymous person. - 🐛 Fix:
getTempCredentialsonly 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
statfails for any reason, not only when it does not exist. - 🐛 Fix: gen-cert self-signed certificates now assign correct
KeyUsageandExtKeyUsage; generated private keys are owner-only (0600). - 🐛 Fix: Two narrowing integer conversions flagged by CodeQL are bounded.
matchHistory.GetProfileByPlatformUserIDno longer converts an arbitraryuint64platform id toint64: any id abovemath.MaxInt64wrapped negative and could match an unrelated row, and it now reports not-found.communityEventkeeps the event type asint64instead of narrowing it toint. - 🐛 Fix: multiple websocket fixes.
🎮 Launcher
- 🔝 Enhancement: Added option (and flag)
CanUseInternet/--internet(defaulttrue) 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
CanUseDialogstofalse. - 🔝 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:
postAgentStartpolling 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:
hostsfile integrity: legacy owned comments are never revived on revert, an invalid or empty backup can never replace the file (it is rotated tohosts.bak.old-<timestamp>), an emptiedhostsis 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
userDatafolder and the GUI reads/writes the new[Replays]section. - 🐛 Fix:
launcher-config flush-cachenow reports a failed file logger initialization instead of discarding the error silently, the waysetUpandrevertalready did. - 🪟🐛 Fix:
ShellExecuteExWno 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
ValidDatalength checks. - 🐛 Fix: battle-server-manager bugs covered by a new unit test suite.
Developer changes
- 🔝 Enhancement: New
TestsCI workflow:go vetplusgo testfor every module on Linux and Windows, and-raceforcommonandserver. - 🔝 Enhancement: Exhaustive
httptestcoverage 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/bytesizeand is shared by the server and the configuration GUI, so the editor can no longer accept a value the server rejects. TheMaxFileSize/MaxTotalSize/Expiryvalidation is oneresolveSizeLimits. - 🔝 Enhancement: The generated GoReleaser config is deterministic:
mergeBuildssorts the merged architecture lists, whose map iteration order madeTestGenerateConfigUniversalMacOSflaky 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, andNumberToInt64/BoolToNumberreplace the copies of the same conversions. - 🔝 Enhancement:
AGENTS.mdadded with the contract a change must pass before it is considered done (gofmt, build, vet, tests and-race, the modernizers, the cross-GOOSvet and the signed-commit steps);DEVELOPMENT.mdrefreshed for Go 1.27, Node.js and GoReleaser v2. - 🔝 Enhancement:
task buildnow builds only the host platform with--single-target;task buildwas renamed totask build-all. - 🚧 Update: Go from 1.26.9 to 1.27.4 in every module and in
go.work; GitHub Actionssetup-gov6 → v7,setup-nodev4 → v7 with Nodelts/*instead of a pinned major, the legacy Windows 7 toolchain to1.27.4-1, and GoReleaser to v2.20.2 (both the action parameter and thetools/scriptsdependency). - 🚧 Update:
ageBattleServerv1.0.0 → v1.1.0,battle-server-broadcastv1.3.2 → v1.3.3,gorilla/websocket→lxzan/gws,pflagv1.0.10 → v1.1.0,modernc.org/sqlitev1.61.0 → v1.62.0,modernc.org/libcv1.80.1 → v1.81.2,modernc.org/memoryv1.12.1 → v1.13.0,charm.land/lipgloss/v2v2.0.6 → v2.1.1,goreleaser/chglogv0.7.4 → v0.7.5,goreleaser/nfpm/v2v2.48.0 → v2.49.0,klauspost/compressv1.20.3 → v1.20.4,puregov0.11.2 → v0.11.3 andgolang.org/x/crypto,/image,/sync,/sys,/term,/textbumped 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.exefrom the repository. - 🚧 Update: Docker compose server and battle-server-manager now use
restart: unless-stopped; the Docker entrypoint validates and quotesGAME_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 fixran the Go 1.27 modernizers andgofmtis clean across the workspace. - 🐛 Fix: The
wsshandler dropsServerOption.WriteBufferSize(deprecated since gws v1.4.5 and ignored) and the unusedwriteMessagehelper. - 🐛 Fix:
go vetfailures incommon/cmdlog(non-constant format strings) now that the tests run in CI. - 🐛 Fix:
.gitignorenow separatesgo.work.sumand adds coverage,.gocacheanduserData/patterns;go.workgets its missing trailing newline. - Enhancement: The advertisement
matchTypeis nowuint16, 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
- 10 on x86-64:
- Linux:
- x86-64:
ageServer_full_2.0.0_linux_x86-64.tar.gz - ARM64:
ageServer_full_2.0.0_linux_arm64.tar.gz
- x86-64:
- macOS:
ageServer_full_2.0.0_mac.tar.gz
- Windows:
-
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
- 10 on x86-64:
- Linux:
- x86-64:
ageServer_launcher_2.0.0_linux_x86-64.tar.gz - ARM64:
ageServer_launcher_2.0.0_linux_arm64.tar.gz
- x86-64:
- macOS:
ageServer_launcher_2.0.0_mac.tar.gz
- Windows:
-
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
- 10 on x86-64:
- 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
- x86-64:
- macOS:
ageServer_battle-server-manager_2.0.0_mac.tar.gz
- Windows:
-
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
- 10 (IoT), Server (IoT) 2025 on ARM64:
- 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
- ARMv5 (armel):
- x86-64:
ageServer_server_2.0.0_linux_x86-64.tar.gz - x86-32:
ageServer_server_2.0.0_linux_x86-32.tar.gz
- ARM64:
- macOS:
ageServer_server_2.0.0_mac.tar.gz
- Windows:
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.
- Download the
ageServer_2.0.0_checksums.txtandageServer_2.0.0_checksums.txt.sigfiles. - Import the release public key and import it to your keyring if you haven't already.
- Verify the
ageServer_2.0.0_checksums.txtfile with theageServer_2.0.0_checksums.txt.sigfile. - Verify the SHA-256 checksum list inside
ageServer_2.0.0_checksums.txtwith the downloaded archives.