Repository navigation
docs: AoE2:DE Automatch2 implementation findings - #1
Merged
simonsan merged 1 commit intoOct 24, 2026
Merged
Conversation
This was referenced Oct 23, 2026
Chichimokers
force-pushed
the
docs/aoe2-automatch2-rlink-notes
branch
from
October 23, 2026 19:23
cfe8177 to
493c9bd
Compare
Contributor
|
Thanks a lot! 🚀 <3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs: AoE2:DE Automatch2 implementation findings
This PR adds practical notes from implementing and testing a minimal AoE2:DE 1v1 Automatch2 flow against a local RLink-compatible server. It complements the existing endpoint reference with observed client behaviour, protocol gotchas, and a clarification for the advertisement field layout.
What is added
src/rlink/game/automatch2/notes.md(new) - end-to-end flow, polling response semantics,Automatch2GameMessageshape, advertisement/automatch identification, minimal 1v1 policy, and ideas for future work.src/SUMMARY.md- registers the new notes page in the sidebar. Thepolling,stoppollingandupdateStatuspages underautomatch2were already listed; this PR only adds the "Implementation notes" entry.src/rlink/game/advertisement/getadvertisements.md- adds an observed field-layout note. The existing sample uses the 24-field layout; in our tests the current PC client rejected that layout withresponse was not formatted correctly. A 27-field layout was accepted. The note documents both and lists the accepted field order.Key findings documented
/advertisement/update(AoE2:DE does not use/advertisement/hostfor this flow).1is elapsed wait seconds; field4is the host profile ID./10.0.11.xaddresses can make the client attempt DNS resolution and fail.Automatch2GameMessageis a JSON object with named fields;matchMembersis an array of objects, not positional arrays.matchtype=19and/or a positiveautomatchPoll_ididentify automatch;matchtype=1+maxplayers=4+ empty map is an ordinary party/session.Context / testing
Tested with two AoE2:DE clients in the Ranked/Scored Multiplayer 1v1 Automatch flow against a local server, with
battle-server-managerrunning. The reference implementation is a simple first pass (earliest-host pairing, canonical 1v1 queue6, Arabia, 2 players, team size 1). It intentionally leaves room for MMR, more maps/queues, host migration, NAT/relay fallback, and better retry/cancellation behaviour.Reference implementation/PR: Chichimokers/ageLANServer#1
Validation
mdbook buildpasses (mdBook 0.5.2, the version pinned in.github/workflows/mdbook.yml), including the SUMMARY and link preprocessors.dprint checkpasses with the plugin versions and settings from.dprint.json(thelint.ymlgate).These are empirical notes, not a claim that every client version behaves identically. Feedback and corrections are welcome.