59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
240 lines
15 KiB
Markdown
240 lines
15 KiB
Markdown
# Native aura slot reception
|
|
|
|
This checkpoint connects genuine Turtle unit fields to Forever's existing aura
|
|
handler. It does not add an alternate buff UI or invent server aura state.
|
|
|
|
Tortoise `src/game/Objects/UpdateFields.h` defines48 spell slots starting at47,
|
|
6 packed flag words at95,12 level words at101 and12 application words at113.
|
|
`SpellAuraHolder::SetAuraFlag`, `SetAuraLevel`, `UpdateAuraApplication` in
|
|
`src/game/Spells/SpellAuras.cpp:7526` establish4-bit flags,8-bit levels, and the
|
|
stack/charge count-minus-one representation. Positive4 and negative8 differ
|
|
from native positive2 and negative16. Legacy cancelable1 is not native selfcast1.
|
|
|
|
Forever source `src/server/game/Server/Packets/SpellPackets.cpp:94` and
|
|
`AuraUpdate::Write:154` define the destination optional fields,9-bit count,
|
|
16-bit slots, packed unit/cast/caster GUIDs. `native/aura_translation.cpp` keeps
|
|
source sparse state and emits only after the same unit has a verified engine
|
|
GUID binding. Destruction removes cached state; recreation initializes anew.
|
|
No new engine call, Lua C registration or transport is involved.
|
|
|
|
A legacy holder does not supply its applied effect mask, caster, cast identifier,
|
|
visual or maximum duration. `ops/aura_definition_profile.py` therefore accepts
|
|
only SQL definitions with exactly one nonzero APPLY_AURA effect and an accessible
|
|
native SpellEffect with identical spell ID, index and aura type. SQL is the source
|
|
of gameplay definitions (`SpellMgr::LoadSpells`), not an assumption that installed
|
|
Spell.dbc and native tables match. Initially four reviewed definitions433/772/2457/16380
|
|
are data inputs, not per-spell branches. Other holders remain unsupported.
|
|
This matching establishes the effect index/type, not identical spell balance,
|
|
icons or all client data. The reproducible inputs and hashes are under
|
|
`evidence/data/aura-profile/`.
|
|
|
|
Unknown caster is explicitly empty, cast GUID empty, duration/remaining/
|
|
point arrays absent. `SMSG_UPDATE_AURA_DURATION137` is not yet integrated: it
|
|
carries only self slot and remaining time, so a maximum/caster must not be guessed.
|
|
Multi-effect holders require actual applied-mask evidence before representation.
|
|
|
|
## Verification and limits
|
|
|
|
### Fresh equip-holder creation context
|
|
|
|
Native Spell::DoSpellEffectHit constructs AuraCreateInfo with the same CastID,
|
|
actual original caster and cast item as the genuine cast. AuraApplication::
|
|
BuildUpdatePacket emits SELF_CAST for caster==target and includes CastItem.
|
|
The adapter now preserves these fields for the verified direct self-equip chain,
|
|
only after a unique fresh source slot confirms installation. One candidate per
|
|
existing player expires on its next source update; health-only/nonmatch/ambiguity
|
|
falls back to unknown. Existing holders retain their initial identity on refresh.
|
|
Real slot clear, replacement, recreation, removal and session reset invalidate it.
|
|
Unobserved initial-login holders remain unknown. No effect amounts are invented.
|
|
|
|
The legacy neutral source-writer ABI is unchanged without explicit bit7 context
|
|
extension.69 independent original-writer variants and full73/73 pass45.12s.
|
|
Actual923648: source equip GO confirmed; subsequent AuraUpdate increased103→114
|
|
bytes as expected. Restored frames show a moving lightning orb, also present in
|
|
later API follow-up. Original API stillnil; spell description still0 both without
|
|
and with the item. This confirms the fresh-equip presentation improvement, not
|
|
initial-login persistence, passive buff-bar correctness or tooltip calculation.
|
|
Source baseline and requested permanent Talisman retained. See
|
|
`evidence/gameplay/native-equip-aura-context/`.
|
|
|
|
### Authenticated server equip cast lifecycle
|
|
|
|
The adapter now accepts a bounded genuine server-originated equip GO without a
|
|
pending client cast. Tortoise Player::ApplyItemEquipSpell/ApplyEquipSpell calls
|
|
CastSpell(self,true,item); Spell::SendSpellGo supplies real item/unit/target GUIDs.
|
|
Only one matching on-equip template spell, owned item, self target/hit, reviewed
|
|
single-aura definition and visual is supported. Unknown/ambiguous/projectile or
|
|
pre-create events stay unsupported. A pending client cast is never replaced.
|
|
|
|
The original native SpellGo writer uses flags0x101 (PENDING|UNKNOWN9), no
|
|
FROM_CLIENT, no fabricated CAST_PREPARE. Spell.cpp::Spell and
|
|
ObjectGuid.cpp::CreateWorldObject establish Cast47/NORMAL3 realm13/map13/spell23
|
|
and server0/counter40. The upper counter half is a session-local correlation
|
|
namespace, not a Turtle wire ID; global engine cache epochs/reconnect collision
|
|
behavior are not established. Unsupported numeric domains fail closed before
|
|
allocation. Existing client-request START/GO/cooldowns/failures retain their path.
|
|
|
|
Actual912044 with gateway stopped: genuine Talisman17782/GUID36258 re-equip
|
|
produced source132/28bytes ->native69002C/121bytes, followed by a clear lightning
|
|
burst in restored-0. Later frames do not establish persistent state-kit rendering.
|
|
Talisman remains neck1; exact inventory,5939HP/0rage/9701money/flags55 restored.
|
|
Full73/73 regressions passed44.91s. Evidence:
|
|
`evidence/gameplay/native-server-equip-go/`. This is cast-visual verification;
|
|
the independent aura CastID/caster/item linkage remains incomplete.
|
|
|
|
`build/native-aura-tests` compares55 packets against the original Forever writer
|
|
through the bounded source codec, checks truncations and invalid metadata, and
|
|
exercises packed slots0/47, sparse counts/clears, unknown replacement, delayed
|
|
binding, recreation and the4096-unit cache limit.69/69 regressions passed44.64s.
|
|
These tests alone are not proof of in-game functionality.
|
|
|
|
Actual client800244, external gateway stopped: legitimate native authentication,
|
|
real character selection and world entry passed. `/use 0 1` consumed real117
|
|
food4->3, source holder count40->41; original `C_UnitAuras.GetPlayerAuraBySpellID`
|
|
reported433 and a buff appeared. Standing through original input produced a real
|
|
server acknowledgment, holder count40 and client API absent; the icon disappeared.
|
|
The one consumed item was restored and saved4; HP5859/rage0/money9701/flags55
|
|
unchanged. Healing amount, timer and authentic icon are not verified. The displayed
|
|
buff icon resembles crossed swords; spell icon/data compatibility remains open.
|
|
|
|
The test's final restored-stack diagnostic lost keyboard focus after successful
|
|
restoration/save; exit1 and original log remain in runtime. Read-only recovery
|
|
canceled the confirmed partial command and reviewed existing API messages; the
|
|
item action was not repeated. Optional `--observe-aura` records API messages and
|
|
bounded trace metadata; it never unwraps protected values. The initial capture
|
|
lost209 metadata rows during bursts; retained adjacent source1F6/native690011
|
|
pairs are evidence, not a lossless payload capture. `ops/native_food_state_test.py`
|
|
now snapshots chat lines before printing to avoid shifting its own history and
|
|
records cleanup/final diagnostic failures explicitly.
|
|
|
|
User observed GM Greater Invisibility16380 icon disappear after login. Read-only
|
|
`.gm visible` still reports invisible; source live aura listing and client API
|
|
both lack16380. `Player::SetGMVisible:3506` sets the separate GM visibility flag
|
|
and adds a visual aura; `HandleGMVisibleCommand:6712` with no arguments is a status
|
|
query. No on/off command was issued. The exact earlier removal trigger was not
|
|
captured; do not claim expiry or translator removal. Source interruption rules
|
|
can remove a visual aura independently of GM visibility. No forced reapplication.
|
|
|
|
See `evidence/gameplay/native-aura-slots/result.json` and reviewed screenshots.
|
|
Runtime originals: `native-aura-{build,codec-build,focused,regression,food}.log`,
|
|
`native-aura-food.json`, `native-aura-{characters,world}.json` and GM review images.
|
|
Two new135 isRuleActive reports repeat the historical LFG/ruleset initialization
|
|
gap; no new access violation, StartupFiles mismatch or zero-display assert seen.
|
|
|
|
## Reproduce and rollback
|
|
|
|
Close the owned private client normally before replacing mapped libraries.
|
|
Build `cmake --build build -j2`, then `python3 ops/build_forever_create.py`;
|
|
`ctest --test-dir build --output-on-failure`. Native preparation/launch uses the
|
|
existing `ops/native_wire_host.py prepare`, `ops/start_native_client.py`,
|
|
`ops/native_engine_character_test.py`, `ops/native_world_entry_test.py` and
|
|
`ops/native_gameplay_ready.py`. No gateway should be listening19085/19086.
|
|
|
|
For the food fixture, confirm actual source count and root23, then seat through
|
|
original x and await server stand1 before:
|
|
|
|
```
|
|
python3 ops/native_food_state_test.py --baseline-count 4 --observe-aura --evidence runtime/NEW-aura-food.json
|
|
```
|
|
|
|
Choose a new evidence path, review screenshots and journal before retrying any
|
|
state-changing action. Rollback: close private client, restore this checkpoint's
|
|
source changes from prior91cf4ff in a separate checkout, rebuild native/source
|
|
codec and prepare host coherently. Do not rebuild mapped modules, replace the
|
|
original client, edit StartupFiles or discard unrelated working files. This aura
|
|
change adds no client-data cache records; the61-record equipped-item package and
|
|
its separate coherent cache rollback remain unchanged.
|
|
|
|
## Matched hostile target follow-up
|
|
|
|
Actual814181 and source7446 level60: server point distance2.685658 yards and
|
|
native IsSpellInRange true/IsSpellUsable true,noPower false preceded genuine
|
|
Rend772 request76bytes and source START/GO. Source listing confirms effect0/type3,
|
|
max9000ms, remaining4393, stack1 and caster4509. Native target debuff appeared;
|
|
source24E/native690008 emitted3x44 and actual target health5371->5239. No trace
|
|
metadata loss. This validates negative aura rendering plus actual damage; not
|
|
weapon animation, duration UI or arbitrary spells. Prior out-of-range/no-request
|
|
trial remains explicitly failed. Fixture deliberately stops autoattack just
|
|
after Rend; a separate bounded swing test is required.
|
|
|
|
GetAuraDataByIndex exists, but actual combat invocation from the tainted macro
|
|
was rejected before returning data. The screenshot records this diagnostic Lua
|
|
error. The harness now captures the original target UI without that query;
|
|
no protected values were read/unwrapped, no checks disabled. Real source distance
|
|
and original client range/usability/error diagnostics remain available.
|
|
|
|
New Rabies3150 from source7446/spell_id1 persisted after the encounter. The
|
|
restoration guard stopped as intended; source definition and baseline absence
|
|
were checked, then only this aura was removed using legitimate .unaura3150 and
|
|
.save. HP5859/rage0/money9701/flags55/sword11/300/inventory restored; earned
|
|
Defense48->65 retained, temporary NPC removed, no persistent spawn change.
|
|
The initial restoration error and subsequent review remain in the evidence.
|
|
See `evidence/gameplay/native-aura-rend/result.json` and public screenshots.
|
|
|
|
## Reviewed visual links and additional holders
|
|
|
|
Current profile has seven same-ID/effect/type entries:433/772/2457/3680/11392/
|
|
16380/21991. Actual870082 with the prior six-entry profile received11392 in
|
|
C_UnitAuras and displayed its buff icon, but the model remained opaque. That
|
|
result distinguishes missing aura receipt (fixed) from model rendering (open).
|
|
|
|
AuraDataInfo.Visual is now populated from the reviewed source/native visual
|
|
profile, rather than zero. The wire field is a native SpellXSpellVisual row ID,
|
|
not the legacy SpellVisual number. The generator rejects condition-dependent,
|
|
ambiguous and mismatched mappings; unsupported links remain zero. Independent
|
|
original source writer parity now covers60 packets including genuine potion,
|
|
GM and Talisman visual references and an unknown-visual fallback.71/71 passed
|
|
44.94s. Talisman equip/unequip cache and original serialization are covered;
|
|
that alone does not prove its actual model effect. See NATIVE_UNIT_PRESENTATION.md
|
|
for the precise model/kit/procedural-data chain and real-client follow-up.
|
|
|
|
## Character-selection scope — 2026-10-17
|
|
|
|
The Talisman orb is a world aura, not an equipment-model field supplied by
|
|
Turtle character enumeration. The recorded local definition is item 17782,
|
|
Talisman of Binding Shard, neck inventory type 2/display 6494, with on-equip
|
|
spell 21991/trigger 1. See `evidence/data/aura-profile/talisman-tooltip/tortoise-item.json`
|
|
and the retained public snapshot `runtime/all-item-templates-20261017/`.
|
|
Installed extracted Turtle `ItemDisplayInfo.dbc` and all four existing Octo
|
|
candidate records 6494 have empty model names, SpellVisual 0 and ItemVisual 0;
|
|
candidate agreement does not independently establish effective archive order.
|
|
|
|
Tortoise `src/game/Objects/Player.cpp`, `Player::BuildEnumData`, writes only 20
|
|
display-ID/inventory-type pairs. It sends no item IDs,
|
|
spell IDs or aura list. Its equipment cache contains a packed permanent/temporary
|
|
enchantment word (`Player::SaveToDB`, equipment-cache serialization around 18392),
|
|
but this enumeration loop does not send that word either. Forever's distinct
|
|
`DisplayEnchantID` field is defined/written by
|
|
`trinity-forever/src/server/game/Server/Packets/CharacterPackets.{h,cpp}`,
|
|
`EnumCharactersResult::CharacterInfoBasic::VisualItemInfo`/its stream operator;
|
|
it is not a general passive-aura field. Built-in weapon/model effects and weapon
|
|
enchantment previews must therefore remain separate from the necklace's 21991 orb.
|
|
|
|
No original Octo/Turtle character-selection visual test has established whether
|
|
that client shows the orb. Its absence is consistent with the available source
|
|
protocol/data, not proof of a world-aura regression. Actual native world logins
|
|
960158 and 964731 separately verified the orbiting effect after genuine initial
|
|
equip-cast/aura processing, without manual item refresh; see
|
|
`evidence/gameplay/native-login-equip-order/{first,second}-login-result.json`.
|
|
Those results do not establish an orb preview at character selection.
|
|
|
|
|
|
## Talisman effect height while seated — source-data check
|
|
|
|
Read-only check2026-10-17: source kit292 has BaseEffect296, while its head,
|
|
chest and both hand slots are unset (0xFFFFFFFF). The installed Turtle extracted
|
|
DBC and all six retained Octo archive candidates agree on these fields; that
|
|
agreement does not independently prove effective archive precedence. The native
|
|
model-attach367399 likewise uses attachment19, zero offset and effect296.
|
|
|
|
The reference source-client slot decoder is
|
|
`references/manila/crates/benilla-formats/src/spell_visual/mod.rs::KIT_SLOT_TAGS`:
|
|
its base slot maps to0x13/19. This differs from its separate WORLD_EFFECT_TAG/-1,
|
|
which plants an effect once in world space. A base-attached aura follows the unit
|
|
but need not follow the torso/head lowering in a sitting animation. The observed
|
|
raised orb is consistent with those definitions; exact seated height and bone
|
|
behavior in the original Octo/Turtle client have not been visually compared.
|
|
Do not move the effect to chest/head or add a sit-specific height correction
|
|
merely to make it follow the model. Retained read-only evidence:
|
|
`runtime/talisman-seated-attachment-check.json`. No client/server state changed.
|