22 lines
2.6 KiB
Markdown
22 lines
2.6 KiB
Markdown
# Active quest item metadata dependency
|
|
|
|
Queue 26 / report 20261127-173212-c8c667 describes quest-item pickup leaving the objective incomplete. The report supplies no quest/item identity or raw source packets. Attribution to that player's exact session remains unproven.
|
|
|
|
## Reproduced defect
|
|
|
|
`NativeWorldTranslation::translate` reconciles item objectives from authenticated inventory and `quests.definitions`. Before this change, an active quest absent from that cache was skipped without requesting its definition. Queries came from client requests, dialogue, or the optional POI route. A native client with cached quest data can leave the gateway without the metadata required to map the item to objective storage.
|
|
|
|
The new host fixture drives the production world translation entry point with source-shaped packets, an initialized active quest, and no native quest query. On unchanged code it fails with `active quest missing source definition was not queried`. The prior path with an explicitly supplied definition already passes.
|
|
|
|
Source `Player::ItemAddedQuestCheck` and `SendQuestUpdateAddItem` (source-server-main-20261124/source/src/game/Objects/Player.cpp:16024 and :16607) send 0x19a as item entry plus incremental count, without quest identity. The gateway consumes that notice and derives absolute counters from owned inventory. Incrementing a counter from the notice alone would invent a mapping and could double count later inventory updates.
|
|
|
|
## Change
|
|
|
|
Fetch missing definitions using source 0x05c for genuine active quests, independently of the client's cache. Deduplicate pending requests, share an existing dialogue/POI wait, respect the 4096-request bound, and retire pending markers after accepted definitions, abandonment, or logout. No quest/item IDs are special-cased. Existing inventory-derived counters and serializer layout remain unchanged.
|
|
|
|
## Verification and limits
|
|
|
|
`native-quest-item-world-progress` covers all four item objective storage indices, duplicate updates, malformed and late definitions, pickup, stack increase, requirement capping, incremental notification exclusion, zero count, abandonment/reacceptance, queue saturation/recovery, and logout. It observes the real world path's codec DTO; the codec callback does not emulate a native client reader.
|
|
|
|
Five targeted CTest suites PASS: native-quest-item-world-progress, native-quest-item-progress-fixture, source-quest-log-state, source-quest-protocol, native-quest-poi-request. The optional POI dataset runtime target builds but is not registered in this configuration. Full regression gate and LOCAL check with a cached quest remain integration requirements. Requires native rebuild; no codec or content change.
|