3.0 KiB
Forced reactions: Classic 70334
The reviewed trinity-forever UpdateFields.h places the 32 ZonePlayerForcedReaction slots in PlayerData, not ActivePlayerData. The source notification is SMSG_SET_FORCED_REACTIONS 0x2a5: count, then uint32 faction/rank pairs. It replaces the entire list. The earlier no-consumer drop is superseded.
The route retains the latest validated list until the self entity exists. Every publication includes all 32 slots; unused slots are (0,0). Invalid faction IDs, ranks outside 0..7, duplicate factions, oversize lists and truncated/extended bodies fail before replacing state. Logout clears the retained list. A recreated self receives the retained overrides again.
The appended codec mode uses the existing generated PlayerData writer: SDK group bit 256, children 257..288. ClassicPlayerDataBit adds four at these positions: native group 260, children 261..292. The isolated writer generator now retains group 256 and the original ZonePlayerForcedReaction::WriteUpdate. The adapter passes ignoreNestedChangesMask=true so zero pairs also carry both nested fields, rather than leaving a previous disguise active.
Host validation: native-forced-reactions-tests / native-forced-reactions checks native routing, pre-self retention, two entries followed by zero, malformed-list state preservation, and all 32 codec-input slots. It uses a recording codec stub; it does not claim a production-codec wire-byte or live-client test. The generator Python syntax was checked. No production codec or natives were built.
Claude handoff: build/deploy codec + natives together (new appended mode). In-game acceptance: apply the Scarlet disguise, verify Scarlet NPC reactions change, remove it and verify normal reactions return; also check a map transition while disguised. Regenerate the isolated schema so the new nested writer and PlayerData branch are present. Merge after R/S; the old 0x2a5 drop must not survive (the 0x330 drop remains).
R3 adds forced-reactions-codec-tests / forced-reactions-codec, which loads the real host library selected by GW_ENTITY_CODEC. It requires a matching library and never skips or builds one. The reader checks the complete update/object/values framing, owner GUID, PlayerData type mask, Classic bits260..292, all 32 nested 3-bit masks and faction/reaction pairs, and exact 305-byte values consumption. It exercises the reported faction16/reaction4 disguise, two entries then zero, and full32 then zero, and rejects truncated/extra-byte packets. The first run against the configured invite-4c7945a7 host library failed at mode81 sizing with status1 (unsupported mode); a freshly generated host closure is required before claiming real-wire coverage.
Future modes that set PlayerData or ActivePlayerData fields must receive the same real-codec bounded-reader check for their actual fields, including clear/reset cases, nested masks and exact scope consumption. A recording-codec DTO fixture does not substitute for that gate, and hand-editing a generated Windows closure does not validate the independently built host artifact.