59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
96 lines
5.5 KiB
Markdown
96 lines
5.5 KiB
Markdown
# Native periodic-damage combat log
|
||
|
||
Verified actual Forever70334/local Tortoise1.18.1 with the external gateway
|
||
stopped. This translates real periodic-damage logs; it neither executes damage
|
||
nor changes character stats. Initial targeted spell execution/effects are
|
||
independently documented in NATIVE_COMBAT.md.
|
||
|
||
## Source contract
|
||
|
||
Tortoise `Objects/Unit.cpp::SendPeriodicAuraLog` emits24E: packed target64,
|
||
packed real caster64, spell32, count32(always1), aura type32. Damage types3 and89
|
||
then carry amount32, school index32, absorb32, signed resist32. Real Rend packets
|
||
were39bytes. Source `Spells/SpellAuras.cpp` subtracts mitigation and adds negative
|
||
resist bonuses before sending that amount. The converter recovers the amount
|
||
before listed mitigation as amount+absorb+signedResist, with signed32 bounds;
|
||
this is derived wire metadata, not a separate original-damage server field.
|
||
School0..6 becomes the corresponding mask. Source IDs remain unchanged.
|
||
|
||
Pinned original `CombatLogPackets.cpp::SpellPeriodicAuraLog::Write` writes
|
||
packed native target/caster128, spell/count32 and a PeriodicAuraLogEffect. That
|
||
contains type, amount, original amount, overkill, school, absorb, resist, supporter
|
||
count and optional crit/debug/tuning bits. The ordinary log also has an advanced
|
||
log-data bit. Turtle does not transmit those optional details: no supporters,
|
||
crit/debug/tuning or advanced payload is fabricated; absent-overkill sentinel-1
|
||
is used. Complete overkill/critical fidelity is not established.
|
||
|
||
The actual route is690008, derived from pinned original
|
||
`ClassicOpcodes::TranslateServerOpcode(SMSG_SPELL_PERIODIC_AURA_LOG670008)`.
|
||
Do not guess a4D combat-group route. Native handling requires authenticated
|
||
self-create and current genuine target/caster GUID bindings; unknown/removed
|
||
actors are skipped. It operates after the cast request has completed, without
|
||
inventing a pending cast or fabricating a success event.
|
||
|
||
Only source damage types3/89 currently translate. Heal/power/leech variants need
|
||
additional correct metadata, including source school/power representation, and
|
||
remain explicitly unsupported. This is not global aura synchronization: debuff
|
||
icons, durations, stacks and removal still need their own native update path.
|
||
|
||
## Verified result
|
||
|
||
Actual725584, gateway stopped, normal visible non-GM fixture with genuine level59–60
|
||
Rabid Shardtooth and genuine learned Rend772. Three real24E/39byte packets each
|
||
became690008/60bytes. Original Forever combat log displayed three lines:
|
||
"Your Rend damaged Rabid Shardtooth46Physical" (spacing follows UI rendering).
|
||
Reviewed screenshot: `evidence/gameplay/native-periodic-damage/combat-log.png`;
|
||
public packet correlations and restoration in the adjacent JSON records.
|
||
Creature health and retaliation used real server state, not injected damage.
|
||
|
||
The separate melee line uses the native combined damage-school label Stormstrike
|
||
for Physical+Nature. It remains a Melee action; no unrelated Stormstrike spell ID
|
||
was substituted. Exact total damage/proc attribution is outside this checkpoint.
|
||
|
||
Temporary target/rage/controlled health were restored. Source HP5859, rage0,
|
||
money9701, flags55 and sword11/300 match the recorded baseline; account permissions
|
||
were unchanged. Defense advanced through genuine retaliation to48/300 and was
|
||
retained. No permanent spawn/template or character-position edit was used.
|
||
|
||
The reusable `ops/native_normal_pve_test.py` initially returned2 because its
|
||
saved baseline aura list contained2457 while GM invisibility restoration added
|
||
16380. Source `Player::SetGMVisible(false)` explicitly adds permanent visual16380.
|
||
The state was already otherwise restored; read-only source review confirmed
|
||
2457/16380 and no combat debuff. The journal preserves that initial conservative
|
||
error and records its resolution without removing the legitimate aura or
|
||
replaying combat. The corrected pure guard permits only that source-defined
|
||
addition, preserving original rows/duplicates; any other new aura still fails.
|
||
|
||
Single-character fixture guards compare the requested character against the
|
||
actual sole-online server GUID before input, rather than trusting a SQL baseline
|
||
for an unrelated character. Multiplayer tests require a separate explicit
|
||
multi-session contract. No credentials, account keys, engine calls, Lua-C
|
||
registration or external gameplay proxy were added.
|
||
|
||
## Reproduce
|
||
|
||
With the tested native world already running and the source baseline reviewed:
|
||
|
||
```sh
|
||
python3 ops/native_normal_pve_test.py --character 4509 --entry 7446 --spell 772 \
|
||
--health-max 5859 --output runtime/NEW-periodic-rend.json
|
||
```
|
||
|
||
Use a new output basename. This designated level60 Warrior fixture needs the
|
||
actual source Sword/skill43 contract, full reviewed health, invisible-GM baseline
|
||
and no other online character. It journals every restoration, invokes the
|
||
original targeted-cast harness, then restores GM visibility/sword state. Check
|
||
all pending flags and compare actual aura/health/UI results before any retry.
|
||
The cast-path result alone does not certify every gameplay effect.
|
||
|
||
Build corrections caught before deployment: Werror misleading indentation and
|
||
Reader's deleted temporary-buffer constructor. Both fixed; full64/64 passed40.30s,
|
||
including12 periodic damage/mitigation/vulnerability variants against the original
|
||
writer (12 source ABI fixture groups total). Final focused endpoint/identity,
|
||
trace, opcode, item/cast tests pass after guard refinements. No mapped library
|
||
was rebuilt while the client was running. ABI mode32 was appended; ABI1 and old
|
||
mode indices are preserved. Original client binaries/data/StartupFiles untouched.
|