3.5 KiB
Source despawn animation lifecycle
Selected the unclaimed SMSG_GAMEOBJECT_DESPAWN_ANIM0x215 route from the20261127 state-dependent audit (11 historical unhandled observations, no test references). Checked latest outbox/queue; claimed before edits and immediately notified parent via thread tool and outbox. No other opcode owned by this task.
Reused contract and limits
Source Object.cpp:2003 WorldObject::SendObjectDeSpawnAnim writes one raw uint64 GUID and sends to the object's set. The producer is not limited to GameObject: Totem.cpp:131 and DynamicObject.cpp:229 send the same event before removal. GameObject.cpp:735,936,2575 also use it. These source paths justify preserving unit/totem and dynamic-object presentations, not a kind5-only guard.
Maintained GameObjectDespawn::Write (GameObjectPackets.cpp:31) serializes only ObjectGUID. Reused the pinned70334 packed128 reader evidence recorded by server-message-parity-20261127/gameobject-reset.json for GUID framing. That receipt is specifically the RESET dispatch: it is not presented as a fresh proof of the DESPAWN opcode. The existing0x470069 route and single-packed-GUID wire format remain unchanged. Current upstream opcode numbering is not used to remap the target70334 route. No new binary scan, engine attach, native animation acceptance, or new target-specific reader claim. Receipt hashes identify all consulted contracts.
Demonstrated bug and correction
The old route used native_guid, admitting zero GUID and unknown players through generic synthesis, or stale actors through sent-only bindings, with no world-lifecycle gate. It could emit after a genuine Source logout. The route now requires an active self-created world with location/realm and no logout or pending transfer. A non-self emitter must be a sent, eligible world actor with nonzero generation/native GUID and matching presentation map/realm. Totems and dynamic objects remain admitted. The generic resolver and all other opcode cases are untouched; the earlier sound fix is a separate commit/branch.
The animation remains an event: no binding deletion, replay queue or generated replacement is introduced. Source destruction owns retirement; a later valid presentation uses its current mapped GUID.
Focused validation
Exactly the same final fixture reports37 checks,17 failures against unchanged host and0 failures with changed translation unit. Positive packets use normal typed native GUID construction for GameObject, creature/totem, and persistent ground. Assertions cover exact packed payload and unchanged binding/generation after animation; zero/unknown source; no self/location, logout, near/far transfer; unsent/ineligible/zero-generation/empty-GUID/wrong-scope/nonworld actor; actual DESTROY_OBJECT then late animation; recreation in a new map with current native GUID; genuine LOGOUT_COMPLETE; all0..7-byte truncations and9-byte trailing-data input.
Changed world_translation.cpp compiled once with parent host flags/profile definitions and own source/includes, -Wall -Wextra -Wpedantic -Werror. Focused executable links that changed object ahead of the completed rollup shared library and protocol archive. Dependencies were reused read-only; no complete native/codec build or full gate repeated. Logs are in this worktree build/go-despawn; committed before/after results accompany this report.
CMake registers native-go-despawn-lifecycle with15-second timeout. Native rebuild/integration and actual client presentation remain the release lane's responsibility. No codec or client-content changes.