Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
6.3 KiB
6.3 KiB
Changelog
Every change to the engine contract (contract/engine-contract.md) is one row here: the C API, the
wire protocol, the engine message stream, the setup pairs and the Lua API. A row names the date the
change first shipped in the Unity repo, the ticket, and the contract part it touched. Rows 0001-0024
are the fork patches replayed into this repo as commits (git log --oneline -- server/gframe core).
Unreleased
Nothing yet.
v1.0.0 — 2026-10-15
The first release: one library per platform behind the written contract, built and gated in this
repo's CI, fetched by version. Windows ygol-engine.dll (334 exports), Linux x64
libygol-engine.so (855) + the ygoserver executable, Android arm64 libygol-engine.so (849).
| Date | Change | Ticket | Contract part |
|---|---|---|---|
| 2026-10-14 | ygol_engine_version(): returns the version string the build was given (build/windows.ps1 -Version), local when none. Windows export gate 333 -> 334. |
TICKET-388 | C API: 1 export |
| 2026-10-15 | Linux x64 and Android arm64 builds in Docker with the same gates; #include <algorithm> in netserver.cpp for GCC. |
TICKET-389 | Builds only; no contract change |
| 2026-10-15 | Release workflow: a v* tag builds every platform, gates each, and publishes one release with engine.json. |
TICKET-390 | Builds only; no contract change |
Replayed fork patches (before the first tag)
| Patch | Date | Change | Ticket | Contract part |
|---|---|---|---|---|
| 0001 | 2026-08-24 | Face-down Tokens opt in by setcode 0xFDF (SETCODE_FACEDOWN_TOKEN); a Token without it behaves as stock. Core. |
- | Rules only; no contract change |
| 0002 | 2026-08-24 | Tag duel: teammates share one visible hand. Server. | - | Rules only; no contract change |
| 0003 | 2026-08-26 | YGOPRO_MAX_EXTRA 15 -> 99: the server no longer truncates the extra deck while receiving it. Server. |
TICKET-059 | Deck limits (wire: CTOS_UPDATE_DECK accepts 99 extra) |
| 0004 | 2026-08-31 | core.attacker null guards in the battle command so a damage step resumed after its battle ended does not crash. Core. |
- | Rules only; no contract change |
| 0005 | 2026-09-23 | The server keeps listening after the duel starts; a late observer gets STOC_DUEL_START and a field resync. Server. |
TICKET-152 | Wire (join during a duel) |
| 0006 | 2026-09-24 | Capability / Appearance / Dialogue as real messages 0x40-0x42, sender stamped by the server, appearance replayed in the join snapshot. Server. |
TICKET-170 | Wire: CTOS/STOC 0x40-0x42, capability bits 0x1, 0x2, protocol 1 |
| 0008 | 2026-09-26 | Sandbox god mode: ygol_sb_add, ygol_sb_move, ygol_sb_remove, ygol_sb_set_position, ygol_sb_set_lp, ygol_sb_reask. Core. |
- | C API: 6 exports |
| 0009 | 2026-10-03 | Setup pairs: ygol.<key>=<value> tokens after slot 11 of the host string go into the duel registry before special.lua, into the replay (flag 0x40000000) and to every joiner as STOC 0x43; argv sized from the token count. Server. |
TICKET-258 | Wire: STOC 0x43, capability bit 0x4; setup pairs; replay |
| 0011 | 2026-10-06 | Host seats: the host plans every seat Open / Cpu (0x50), a bot claims its Cpu seat with a token before JoinGame (0x51), host swap 0x52 and move 0x53. Server. |
TICKET-285 | Wire: CTOS 0x50-0x53, STOC 0x50, capability bit 0x8, protocol 2 |
| 0012 | 2026-10-06 | Rules restart: Prepare / Ack / Commit barrier (0x54-0x56), seat resume 0x57, a replacement server opened by the bootstrap secret (0x58), Reserved seats with tokens and a deadline; ygol.room.watchers=0 refuses observers. Server. |
TICKET-286 | Wire: CTOS/STOC 0x54-0x58, capability bit 0x10; setup pair ygol.room.watchers |
| 0013 | 2026-10-06 | Seat state 0x59 (4 bytes): what a seated duelist is doing; stored per seat, replayed in the join snapshot, cleared on leave / move / start. Server. |
- | Wire: CTOS/STOC 0x59, capability bit 0x20, protocol 3 |
| 0014 | 2026-10-06 | Lobby after match: a match end returns the server to the lobby on the same connections; STOC_MATCH_OVER 0x5A after the stock DUEL_END. Server. |
TICKET-299 | Wire: STOC 0x5A, capability bit 0x40, protocol 4 |
| 0015 | 2026-10-08 | Tag: no tag swap on a team's first turn, so the first seat holds the hand from turn 1. Core. | - | Engine message stream: the first MSG_TAG_SWAP comes later (rules only) |
| 0016 | 2026-10-08 | Tag: team B loads seat 2 as the main deck and seat 3 as the tag deck; the prompt owner starts at seat 2. Server. | - | Rules only; no contract change |
| 0017 | 2026-10-09 | Coin toss: no STOC_SELECT_HAND; on START the server rolls, sends STOC_COIN_TOSS 0x5B to everyone, SELECT_TP to the chooser, and answers FIRST for them after 10 s. Server. |
TICKET-328 | Wire: STOC 0x5B, capability bit 0x80, protocol 5; STOC_SELECT_HAND never sent |
| 0018 | 2026-10-10 | Spectators see all: every observer gets the unmasked stream unless the setup pair ygol.room.spectatorview=hidden is present. Server. |
TICKET-326 | Setup pair ygol.room.spectatorview; observer stream |
| 0019 | 2026-10-10 | Deck lists STOC_DECK_LIST 0x5C: kind 0 sorted to the owner, kinds 1 (real order) and 2 (submitted main deck) to observers when spectators see all. Server. |
TICKET-338 | Wire: STOC 0x5C, capability bit 0x100, protocol 6 |
| 0020 | 2026-10-11 | Profile 0x5D (98 bytes): a seated human's avatar id and frame id, stored per seat, in the join snapshot, swapped with the seat. Server. |
TICKET-360 | Wire: CTOS/STOC 0x5D, capability bit 0x200, protocol 7 |
| 0021 | 2026-10-12 | Fix for 0012: START stops the lobby clock so a reservation window still open after a rules restart no longer ends the duel at once. Server. | - | No contract change |
| 0022 | 2026-10-13 | ygol_preview_attack: a read-only dry run of the damage step for one attacker and one target, 24-byte answer. Core. |
TICKET-374 | C API: 1 export |
| 0023 | 2026-10-13 | Attack preview over the wire: CTOS/STOC 0x5E, answered to the asker alone from the host's embedded core. Server. |
TICKET-378 | Wire: CTOS/STOC 0x5E, capability bit 0x400, protocol 8 |
| 0024 | 2026-10-13 | ygol_preview_attack asks field::get_attack_target first; a pair the battle menu would not offer answers flag bit 5 illegal alone. Core. |
TICKET-379 | C API: same export, flag bit 5 defined |