Files
WoW-Hybrid-gateway/docs/NATIVE_UNIT_PRESENTATION.md
praxisandClaude Fable 5.2 60b6d4b7a5 Design records
59 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

282 lines
18 KiB
Markdown

# Source-backed unit presentation and invisibility potion tests
Actual Forever70334/local Tortoise1.18.1; external gateway stopped. This is a
partial compatibility checkpoint, **not a successful transparency fix**.
## Implemented source mapping
Tortoise `src/game/Spells/SpellAuras.cpp::Aura::HandleModStealth` sets
UNIT_FIELD_BYTES_1 byte3 CREEP2 and PLAYER_FIELD_BYTES2 byte1 STEALTH0x20.
`Aura::HandleInvisibility` sets/removes byte1 INVISIBILITY_GLOW0x40, including
last-aura removal. Source `Objects/UnitDefines.h::UnitBytes1_Flags` defines
ALWAYS_STAND1/CREEP2/UNTRACKABLE4. ALWAYS_STAND must not become invisible.
The pinned native reference `Spells/Auras/SpellAuraEffects.cpp::AuraEffect::
HandleModInvisibility` sets Unit VisFlags INVISIBLE1 and player AuraVision0x40.
`Entities/Unit/UnitDefines.h` defines invisible1/stealthed2/untrackable4;
`Entities/Player/Player.h` defines AuraVision stealth0x20/glow0x40. This reference
establishes intended serialization semantics, not actual renderer behavior.
`include/gateway/unit_presentation.hpp` implements the distinct projections.
`src/forever_create.cpp` applies them to full self/NPC creates and sparse unit/
active-player values. `ops/build_forever_create.py` enables only audited
ActivePlayer group102/AuraVision124 in the original source writer. The native
Unit writer retains its existing Classic VisFlags/AnimTier bit remapping.
`native/entity_translation.cpp::NativeEntityTranslation::translate` retains two
self source words from real full creation. Updating either composes both from
known source state; health-only changes do not inject presentation fields.
Recreation resets omitted words to known zeros; removal invalidates the cache.
This prevents sparse stand/creep updates from clearing unrelated invisibility.
No SetAlpha, fake aura, client-memory function call or server rule change.
## Actual potion results
Private native847960: startup23.286s, genuine character selection8.555s, world
entry16.346s. Existing source state and native packet path remained functional.
| Source item | Authentic spell/effect | Actual result | Transparency |
|---|---|---|---|
|9172 Invisibility Potion|11392 / single APPLY_AURA6, invisibility18, misc0|Original item request3E0171/75 accepted; one fixture potion consumed. Original server aura listing records14997ms remaining/max18000, caster4509.|Cast flash observed, no clear model translucency.|
|3823 Lesser Invisibility Potion|3680 / same source effect kind|Original use accepted and consumed. Saved source row3680/max15000/remaining10795/effect mask1. Real remaining individual/category cooldown596/116 seconds.|Model remains visibly opaque in later capture while source aura is active.|
No server detection/range test with another player was performed, so this does
not establish multiplayer invisibility acceptance. It establishes real item
consumption and authoritative source aura application; the visual requirement
remains unmet. Trace metadata losses116/129 are retained, not called lossless.
The first9172 diagnostic query used nonexistent effect_mask and failed after
actual use. Retained original server messages recovered its aura evidence
without consuming another potion. Correct field is effIndexMask. Unsigned
cooldown subtraction can also fail for an expired category; signed arithmetic
now handles that. The separate3823 test passed the corrected harness.
Both fixtures restored inventory and HP5859/rage0/money9701/extra_flags55 through
legitimate original GM controls. Newly granted potions were consumed; no prior
items were removed. Test aura cleanup targets only the source spell, and GM
invisibility/whispers were restored. Genuine potion cooldowns remain to expire.
Character orientation is recorded separately and never forcibly restored.
## Historical fa67323 gap and subsequent test
At fa67323 the active aura profile supported only433/772/2457/16380. Both potion spells
are absent, so their AuraUpdate presentation is not implemented in that profile.
Read-only native SpellEffect export found actual3680/11392 with the same
effect index0/type6/aura18. Reviewed candidate inputs and generated report are
under `evidence/data/aura-profile/invisibility/`; they were **not installed at that checkpoint**.
The following next step was completed in the subsequent six-definition test: extend the existing generated aura profile with those authentic matching
rows, test source slot create/clear and native original-writer parity, close the
private client before rebuilding mapped modules, then repeat one real potion
after its genuine cooldown expires. Determine whether aura initialization fixes
opacity or whether engine field consumption/rendering is another dependency.
Do not claim the candidate profile alone proves transparency or replace IDs.
## Automation and verification
`ops/native_invisibility_item_test.py --item 9172 --output runtime/NEW.json`
and item3823 use original /use with real backpack references and finally cleanup.
They require the designated solo test character, legitimate native local session,
active send policy and stopped gateway. GM only prepares/removes the fixture.
Reports start transparency_verified=false pending actual screenshot review.
The separate GM presentation fixture initially failed: a saved login flag19 was
not the live state55. Source Player::LoadFromDB calls SetGMVisible before later
GM chat32/whisper4 initialization. New fixture saves the live baseline first.
GM social-disable is1024, not32. A shifted/malformed recovery input did not
execute; original Shift key press/releases and80ms pacing produced correct
server ON/save acknowledgments. Strict orientation comparison then falsely
reported incomplete recovery, despite restored55; orientation is now recorded
separately. Original failed journal and subsequent recovery review remain in
runtime/native-unit-presentation-visibility.json. This GM fixture is not counted
as a successful independent transparency test.
Build/source codec passed; initial test compile missing include was corrected.
Full70/70 passed44.99s before actual potion tests. New tests exercise all source
visual bit combinations, sparse preservation/clear, zero-word recreate/removal,
health isolation and native AuraVision serialization; source field1260/138
profile is generated from the pinned actual Tortoise header. Automated checks
prove those boundaries only. Actual potion evidence and screenshots:
`evidence/gameplay/native-invisibility-potions/`.
Rollback: local3314f3f is the pre-presentation working native checkpoint.
Close the private client normally before restoring/rebuilding native core and
codec coherently, then run existing native_wire_host.py prepare. Original
Forever/Turtle installations, server schema/templates and trust-key patch are
unchanged. Preserve incomplete work and never reset character progression.
## Verified aura receipt and actual model-data lookup
The subsequent six-definition private870082 test consumed real9172 and saved
11392/max18000/remaining11090/effect mask1. The original native self-aura API
reported11392 and its icon appeared. The later screenshot still shows an opaque
model. Source effect and icon receipt pass; translucency still fails. Inventory,
HP5859/rage0/money9701/flags55 restored. Trace metadata loss147 retained.
Runtime journal: native-invisibility-potion-six-aura.json and associated images.
A separate normal-GM-off control failed before granting/using an item because
HandleGMCommand changes live flags without saving. The harness now calls .save;
that corrected normal-mode test has not run. No normal-mode success is claimed.
Read-only authentic item17782 Talisman of Binding Shard equips spell21991,
single APPLY_AURA6 / DAMAGE_SHIELD15. Native same-ID effect699832 matches.
The source visual is37, native SpellXSpellVisual248700 ->SpellVisual37,
StateKit292 ->SpellVisualKitEffect231064 (type2/model attachment367399)
->SpellVisualEffectName296 ->model FileDataID166500. This is a persistent model
attachment definition; actual appearance must be checked by equip/unequip.
Invisibility spells3680/11392 use source/native visual4226, native link239010/
243607; GM16380 uses visual72/link242512. Both state kits are3450, whose
SpellVisualKitEffect233025 selects procedural effect356930, type14, value0.5.
Type14's meaning has not yet been established in the client binary. It is a
concrete model-effect candidate, not proof of half opacity or the root cause.
Confirmed shared packet omission: src/auras.cpp previously wrote visual0.
The pinned native reference AuraCreateInfo::CalcSpellVisual supplies a
SpellXSpellVisual row ID; AuraApplication::BuildUpdatePacket copies it to
AuraDataInfo.Visual. SpellInfo::GetSpellXSpellVisualId chooses eligible links.
New ops/aura_visual_profile.py accepts only one unconditional same-spell,
default-difficulty row with matching reviewed visual number, no secondary visual
or flags, probability1. Caster/viewer condition, ambiguity and mismatch fail
closed. Unknown entries remain visual0; ScriptVisual stays0. This is a shared
serialization fix, with no forced alpha, guessed engine pointer, executable or
StartupFiles change. Actual visual equivalence remains subject to client tests.
Seven single-aura definitions now include21991 and both potions.71/71 regressions
passed44.94s, including60 original source-writer packet variants and negative
visual-profile cases. Full public source/DB2 links and model chain are under
`evidence/data/aura-profile/visuals/`. Actual882298 post-fix GM visibility on/off test passed source/packet-path and
restoration checks; original API16380 and icon present, model still opaque.
Proper visual reference alone is insufficient. Actual Talisman17782 equipped
and unequipped through the original inventory path; no distinct model attachment,
original self-aura API absent. Empty saved-aura row was initially interpreted
as absence; Player::SaveAura deliberately excludes passive spells, so that check
is not valid for this control.
User requested retaining the Talisman as a diagnostic fixture. The second real
equip left GUID36258 in neck1. Source live .list auras confirms21991/effect0/
type15/duration-1/max-1/stack1/passive/caster4509. Original inventory preserved,
money9701/rage0/flags55 restored, health naturally5939 with item's stats. Do not
reset health to the previous equipment baseline5859 or remove the requested item.
Native API still absent and no distinct model effect; do not claim it renders.
See evidence/gameplay/native-aura-model-visuals/result.json and screenshots.
A new bounded public self-aura snapshot exposes source48slots, nibble flags,
level/application bytes, definition mask, visual link and queued bit through the
existing authenticated transport diagnostics. No engine calls, pointers,
credentials or packet payloads are exposed. It distinguishes missing source
visible slot from profile rejection and queue acceptance; queue state alone
still does not prove rendering. Actual891794 after genuine relog: known self,2 occupied/queued slots,
unsupported0. Source21991 is slot2/flags5/level60/apps-minus-one0,
mask1/visual-link248700/queued1. This rules out missing source visible slot and
profile rejection after relog. Battle Stance2457 occupies slot0. Talisman saved
neck1/GUID36258 confirmed; original API after relog reports absent; side/rear model views show no distinct attachment.
Initial equip-time absent API alone did not establish a missing source packet.
Installed private build70334 CASC confirms model FileDataID166500 present,
11,176 bytes; local community listfile resolves it to
spells/lightningshield_state_base.m2. Original and side camera reviews did not
show a distinct Talisman effect. Merely identifying the expected asset does not
prove the engine attached it. Fresh local SpellXSpellVisual FileDataID1101657
extraction differs in whole-file hash from reference and reports3.1% encrypted
zero fill. All seven reviewed accessible spell/link/condition rows are identical;
wrong row IDs are ruled out for those entries, not every encrypted record.
No client DB2 file was replaced. Public actual-row comparison and limitations
are under evidence/data/aura-profile/visuals/actual-client-*.json.
Original out-of-combat player HELPFUL index query1..8 printed no aura rows and
no Lua error appeared in the reviewed screenshot. This does not rule out API
filtering of passive holders; no protected values were unwrapped. The exact
consumer/filtering/model-effect boundary remains unresolved. Keep the source
holder/adapter queue/engine-visible API/model-rendering claims separate.
The public snapshot ABI is1376bytes/48slots. Authenticated transport capacity and
canary checks, Windows unauthenticated rejection, actual source-slot metadata
and malformed diagnostic decode checks pass. Source writer and full regression
71/71 passed44.94s;4 focused checks passed0.14s after correcting one negative test
that initially mutated visual ID instead of effect-mask offset48. No runtime
function pointer invocation or process protection change was introduced.
## Normal-mode validation and API restrictions after61d7f91
Actual891794, Talisman retained, original baseline5939/0/9701/55. First GM-off
control reached real source extra_flags38, original USE_ITEM75bytes forwarded,
source0x130 rejected11392/status2/reason62 SPELL_FAILED_NOT_STANDING. No item
consumed or cooldown created; harness removed only the fixture and restored
baseline. Tortoise Spell::CheckCast5529 tests current standing; stand requests
are delayed200ms by Player::ScheduleStandStateChange20235/Update1880. A later
ACK0 does not prove standing at cast time. No stand enum/wire mismatch found.
ops/native_posture.py now uses original X and a fresh source acknowledgment,
with at most two real toggles and no fixed delay. Native normal9172 retest passed:
freshACK4/state0, original request accepted/consumed;11392/18000/remaining10788/
mask1 saved, source adapter slot1/flags5/link243607/queued1, original API/icon
present. Model still opaque. Flags38 during use, baseline5939/0/9701/55 and
inventory restored, real cooldown retained. Trace metadata loss64 documented.
This rules out GM-on as the sole opacity cause. It fixes fixture readiness,
not general deferred item/cast sequencing. Same-state stand requests can produce
no ACK, so do not add an unconditional gameplay ACK barrier. Genuine source
cast failures are now recorded immediately rather than hidden behind a timeout.
Owned Talisman36258 paired control passed: actual inventory unequip cleared
source21991/native adapter slot; re-equip restored it. Nine sampled frames did
not establish a distinct item effect. One earlier cyan orb is unattributed,
not claimed to prove rendering. Final inventory and5939/0/9701/55 restored;
Talisman remains neck1. See retained-roundtrip-result.json and paired screenshots.
Actual70334 strict-extracted API documentation clarifies diagnostic limits:
GetPlayerAuraBySpellID is AllowedWhenTainted but RequiresNonSecretAura, nullable;
nil proves only no API-exposed result. No confirmed passive filtering rule found.
GetAuraDataByIndex requires UnitAuraAccess and AllowedWhenUntainted. Retire the
ad-hoc tainted self-index macro; no retry or restricted-value unwrapping. Original
BuffFrame can collapse permanent buffs, so missing icon is also inconclusive.
Metadata/FIDs/hashes/line references: visuals/native-api-capabilities.json.
Original native producer sets SELF_CAST only from real caster GUID and includes
CastItem when known. Legacy slots lack both; no flags or item GUIDs will be
guessed from cancelable1. DAMAGE_SHIELD15/INVISIBILITY18 do not independently
require scalable Points in Aura::EffectTypeNeedsSendingAmount. Full source
WorldSocket send path adds no hidden aura-body conversion; opcode normalization
was already covered. The current generic missing metadata remains unproven as
visual cause. Server-triggered equip/NPC GO events are also currently skipped
unless a matching pending client cast exists; examine that shared incoming
spell-lifecycle gap using real packets, without fabricating source success.
## Talisman tooltip: correct installed amount, incorrect runtime evaluation
**Resolved zero-value condition in the next real-client test:** the fullself
writer initialized ModSpellPowerPercent, ModPeriodicHealingDonePercent and three
weapon damage/speed factors to0, while native Player::InitStatsForLevel sets1.
The original writer emits them unconditionally, independent of sparse masks.
Correcting those eight neutral defaults leaves installed spell/item data intact.
Full73/73 regressions pass45.03s, including a pinned152byte fullself stat window.
Actual933862 original main/equipped Talisman tooltips now4, matching source.
Rend description becomes15 rather than0; full Turtle formula equivalence and
actual reflected damage remain unverified. This establishes the shared zeroing
condition, not which single factor in the eight-field correction is responsible.
Evidence `evidence/gameplay/native-player-multipliers/`. The investigation below
records why replacing correct data or hardcoding text was rejected.
The original equipped-item tooltip displays **0 Nature damage**; the original
`C_Spell.GetSpellDescription(21991)` also displays0, so this is not confined to
item-tooltip formatting. Source spell21991 has encoded base3 + base-dice1,
die-sides1 and no per-level bonus: its unmodified damage-shield amount is4.
This is a definition check, not observed reflected damage in actual combat.
The actual private70334 `SpellEffect699832` already contains base4, coefficient0,
variance0 and scaling-class0. Its native item relationship also exists:
17782 ->ItemXItemEffect138701 ->ItemEffect100475 ->spell21991. Native levels and
miscellaneous attributes do not enable item-level scaling; no description-variable
relation overrides21991. Independent strict CASC range reads prove the selected
spell/effect records and auxiliary metadata are in accessible section0, outside
the unrelated encrypted sections. Do not replace correct numeric data or hardcode
4 into tooltip text to conceal the runtime failure.
The first8 bounded runtime query samples map hash0xdf2f53cf to TactKey and
0x919be54e to ItemSparse. Only table metadata was read; no key records were
exported. These samples are not a complete request trace and do not prove that
SpellEffect was never requested. Shared runtime evaluation, cache state and
legitimate caster/item context remain under investigation. The reference server's
flat-player versus expected-stat damage calculation is a useful comparison,
not recovered client-engine behavior. Compact rows, physical provenance and
limitations: `evidence/data/aura-profile/talisman-tooltip/result.json`.