Files

28 lines
4.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GameObject custom animation and deferred bobber lifetime
Owned only SMSG_GAMEOBJECT_CUSTOM_ANIM0xb3 after checking the latest outbox and existing tests; no meaningful route/held-queue fixture was present. Claimed before edits, then notified parent via outbox and thread tool. No sibling opcode implementation is included.
## Source/reader contract
GameObject.cpp:2558 `GameObject::SendGameObjectCustomAnim` sends uint64 objectGUID followed by uint32 animId. Fishing-bobber readiness at lines425–437 sets GO state, requests a forced object update, plays the splash sound, and sends this custom animation. Preserve the observed race where animation arrives before the native GO create/template is bound. Unlike the0x215 producer, this is a GameObject member, not a general WorldObject event: unit/player/dynamic emitters cannot be fabricated through the generic player-GUID fallback.
The maintained `GameObjectCustomAnim::Write` writes ObjectGUID, uint32CustomAnim, and one PlayAsDespawn bit. Existing70334 opcode0x470068 and packedGUID+anim+zero-bit wire are unchanged. Reuse the pinned generic70334 packed-GUID reader receipt in server-message-parity-20261127/gameobject-reset.json for framing only; it proves RESET dispatch, not a newly inspected CUSTOM_ANIM dispatch. No fresh native dispatch or animation-rendering claim is made. Source/receipt file hashes are recorded.
## Demonstrated issues
Original0xb3 and replay both used native_guid: unknown players/zero could emit a made-up target; unsupported unit GUIDs could enter the pending queue; stale/wrong-kind actors could emit. Pending events carried no world or actor lifetime, survived actual source destroy/out-of-range/logout, and could replay on a different map or recreated object.
The route now admits only GO/transport source GUID namespaces in an active self-created world. Known actors must be kind5, generation-bearing, and scoped to current realm/map. A sent actor must also be eligible and have a nonzero native GUID. Unknown or known-unsent GOs may still wait for creation/template metadata.
Each held event records selected character, realm/map, and actor generation if known. On first observation of a still-unsent GO, it binds that generation. Replay requires the same valid presentation and consumes the event exactly once. Expiry remains5seconds; queue remains16 entries with oldest eviction. Existing held/expired/replayed diagnostic messages remain.
Source DESTROY_OBJECT and UPDATE_OBJECT out-of-range explicitly cancel matching events even when no actor was created yet. Self retirement/recreation clears pending events. Logout/transfer/lost world scope cannot preserve the old queue. These edits affect only custom-animation pending state in those lifecycle handlers; sibling packet behavior is unchanged.
## Focused proof
The same51-check fixture failed26 checks before and passes after. It proves the exact uint32 animation range/zero PlayAsDespawn field; unknown-before-create hold; genuine same-generation pre-template wait; valid replay once and no duplicate; nonGO suppression; wrong-kind/realm/map/generation/eligibility/GUID negatives; forced expiry without sleeps; changed character/world/transfer scope; generation replacement before and after first observation; source destroy/out-of-range/logout retirement; queue cap/eviction; and all0..11-byte truncations plus13-byte trailing input without queue mutation.
Native actor binding is staged directly in this socket-free fixture; source destroy/out-of-range/logout are genuine translation calls. It establishes host admission and pending-lifetime behavior, not an end-to-end engine-created bobber or visual splash.
Changed world_translation.cpp and the test were compiled with strict host flags using own source/includes and the parent's pinned profile definitions. Completed host dependencies were reused read-only. HeldGoAnim gained lifetime metadata, so integration must rebuild native consumers against the matching header; do not mix this source with an old native build. CMake registers native-go-custom-lifecycle with15-second timeout. No codec rebuild, full gate, client operation or shipping performed. Release native rebuild and real bobber acceptance belong to Claude.