The room's "Life Points - Side B" field had nowhere to go: the host string
carries ONE start LP and the server gave it to both duel players. Now the
setup pair ygol.side.b.lp=<n> gives seat side B (seat 1; Tag seats 2 and 3)
its own start LP while side A keeps slot 8; absent, both sides start at
slot 8 exactly as before.
- SideBStartLp(fallback) reads the pair (positive integer, else fallback).
- single_duel / tag_duel keep player_lp[2] in DUEL PLAYER order, so the
side that goes first keeps its own LP through the first-turn swap, in
every duel of a Match: set_player_info per player, MSG_START at the
start and in the late-watcher snapshot carry lp[0], lp[1].
- Replay flag REPLAY_YGOL_SIDE_LP 0x20000000: set only when the two
differ; i32 lp[0], i32 lp[1] follow opt, before the decks. The binding
gets ReplayFlags { SetupPairs, SideLp } for the readers.
- Probe: two more setup-pair rooms (Single and Tag) check MSG_START on
every seat in duel player order and the replay's flag + values; every
other room's replay must have no such flag.
- Contract: slot 8 row, the behaviour table, the Replay section, the
server-read pairs table (three now), the binding row; CHANGELOG v1.4.0.
No new export or capability bit: exports 335 / 856 / 850, protocol 9,
capabilities 0x27FF.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
12 lines
492 B
C#
12 lines
492 B
C#
namespace YGOLegacy.Protocol.Contracts
|
|
{
|
|
// Fork replay header flags (contract section (b), Replay). The stock flags stay 0x1 (compressed) and 0x2 (tag).
|
|
public static class ReplayFlags
|
|
{
|
|
// Patch 0009: u32 length + the setup pairs block before the player names.
|
|
public const int SetupPairs = 0x40000000;
|
|
// v1.4.0, life points per side: i32 lp[0] + i32 lp[1] (duel player order) after opt.
|
|
public const int SideLp = 0x20000000;
|
|
}
|
|
}
|