62 lines
4.0 KiB
Markdown
62 lines
4.0 KiB
Markdown
# Queue 54: conditional loot duplicates disconnect the session
|
|
|
|
Reports 215816/220112/220224 concern loot disconnects. In 215816,
|
|
GatewayRequests records three source0x160 rejections (58/80/80 bytes):
|
|
`duplicate Turtle loot slot`. Wire close diagnostics report source352 (0x160),
|
|
world-result4294967290 (-6). The old armor ASSERTSAFE is a separate event.
|
|
|
|
The retained Tortoise LootMgr.cpp LootView writer first emits allowed non-FFA
|
|
ordinary items, including conditional items. FillNonQuestNonFFAConditionalLoot
|
|
also records these eligible slots; LootView's final conditional loop emits the
|
|
same LootItem index and fields again with its final per-viewer slot UI. Thus
|
|
unique loot slots remain bounded at16, while the wire row count can reach32.
|
|
GetSlotTypeForSharedLoot can change the conditional UI from the earlier loop.
|
|
This is a catalogue-wide source serialization behavior, not item-specific data.
|
|
|
|
The parser previously rejected every repeated slot, turning this real source
|
|
packet into a protocol failure. It now coalesces the one conditional repeat,
|
|
requires identical item/count/display/placeholder/random-property fields and
|
|
uses the later source UI. Counts are never summed, item slots are never
|
|
renumbered, and all fields of every serialized row are validated. Conflicting
|
|
rows, third repeats, out-of-range slots, invalid UI, malformed framing, and
|
|
more than32 rows still fail. Existing loot scope/admission checks are unchanged.
|
|
|
|
The existing loot packet host fixture now includes independent58/80-byte forms,
|
|
conditional UI variants, full16-slot doubled emission, conflicting field
|
|
negatives, third repeat, and every prefix/trailing-byte check. The extended
|
|
fixture fails against the unchanged archive with the exact reported rejection;
|
|
it passes when linked with changed src/loot.cpp, using -Wall -Wextra -Werror.
|
|
This proves the parser regression, not receipt of the reporter's actual payload
|
|
(no raw packet was supplied). Full integration and matching codec/native builds
|
|
are separate release requirements because both consumers use this parser.
|
|
|
|
Peer review tightened conditional UI transitions to the five source-proven pairs:
|
|
0->0, 0->1, 1->0, 2->0, 2->2. Unique rows still accept the existing UI0..4.
|
|
The host test checks all25 possible duplicate UI pairs. An additional native
|
|
fixture compares the entire serialized response of a repeated source slot with
|
|
its canonical single-slot response and checks exactly one autostore request.
|
|
That integration test requires the matching new codec and native parser build.
|
|
|
|
The complete native/codec comparison now fails with the previous e191adfc codec
|
|
and passes with the matching8344dd70 ELF, including the existing120 skinning
|
|
checks. The released writer closure296files/40units was verified and reused;
|
|
the final6aad protocol archive was linked into the pair. Artifacts and hashes
|
|
are in paired-host-validation.json. The full final native rebuild/gate is still
|
|
required; this focused comparison used the already rebuilt summon ABI and
|
|
initial7b native parser with the final6aad codec.
|
|
|
|
The first combined gate exposed a30-second timeout in the pre-existing loot
|
|
writer fixture: its malformed-prefix matrix spawned a new Python process and
|
|
loaded the codec for every packet. The registered C-ABI mode now loads that
|
|
same adapter once and keeps all existing assertions, plus exact reference-writer
|
|
checks for the five conditional UI pairs. Standalone CLI mode still uses its
|
|
original subprocess path. The complete C-ABI fixture passes in0.182seconds;
|
|
no timeout was raised, case skipped, or retry added. The first failed gate log
|
|
is retained; a separate logout/re-entry fixture failure is under investigation.
|
|
|
|
A targeted registered run then exposed a separate fixture-path omission: this
|
|
older Python test did not receive GW_ENTITY_CODEC and silently loaded the old
|
|
source-tree build/forever-schema codec. CMake now passes GW_TEST_CODEC_PATH like
|
|
the other configured C-ABI fixtures. Its new conditional golden fails against
|
|
that old codec, making the stale dependency observable instead of hiding it.
|