1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
51 lines
3.3 KiB
Markdown
51 lines
3.3 KiB
Markdown
# Genuine controlled damage, original combat log and health restoration
|
|
|
|
This is a controlled native pipeline test, NOT a real weapon fight, proc, death
|
|
or loot acceptance scenario. Local disposable4509 only, actual Forever with the
|
|
external gateway stopped. No SQL writes, item grants, position or progression
|
|
changes. GM .damage500 school3 is used through normal chat after original F1
|
|
self-selection. Current baseline5859/5859, flags55, level60; restored each time.
|
|
|
|
Before fix: actual587881 received genuine14A/71bytes, translated4D002C/103bytes.
|
|
Original health read5432/5859, later frame and saved server health5468, due natural
|
|
regen between samples. Original combat log displayed500 Stormstrike, not Nature.
|
|
This demonstrates original combat-family receive/log handling works; missing
|
|
range-error UI is not evidence that every combat packet is blocked by transport.
|
|
|
|
Source cause: Tortoise Commands.cpp::HandleDamageCommand delegates school3 to
|
|
Unit.cpp::SendAttackStateUpdate helper. It fills subDamage[0] but the writer uses
|
|
m_weaponDamageCount[BASE_ATTACK], two for equipped TF's two real damage bands.
|
|
Unit.h::SubDamageInfo defaults further slots to NORMAL school, zero damage,
|
|
absorb/resist. Old parser ORed every school unconditionally, adding physical to
|
|
Nature, mask9 Stormstrike. Actual71-byte event size agrees with two components;
|
|
we did not export a raw captured packet body. Unit fixtures are source-derived.
|
|
|
|
General fix in src/gameplay.cpp::turtle_melee_damage: count schools with actual
|
|
damage, mitigation or a nonzero coefficient; retain all original schools when
|
|
EVERY component is empty. Real mixed physical/Nature remains9, full absorb stays
|
|
represented, all-zero/miss/block fallback retains source identity. No item/GUID
|
|
special case. Accept up to5components, the actual MAX_ITEM_PROTO_DAMAGES in
|
|
Tortoise ItemPrototype.h:426; reject6. Unit tests independently assert these masks.
|
|
Native and gateway callers share the correction. Full60/60 passed30.48s.
|
|
|
|
After fix: actual599422, legitimate native authentication/four characters/world.
|
|
Same controlled command generated real14A/71 ->4D002C/103; original combat log now
|
|
shows **Your Melee hit You500 Nature**. See after-combat-log.png versus before.
|
|
Health frame/server saved5505 before restoration, with regen between samples.
|
|
Both client and saved server restored5859/5859, flags55 and original XYZ, rage0
|
|
in restored screenshot. Trace lost0 rows, no observer error, fixture exit0.
|
|
No extra HP gameplay feature was implemented. Damage is the tested server's real
|
|
command/event, not fabricated packets; real melee/procs/death/loot still pending.
|
|
|
|
Reproduce on authenticated local native world with guarded outgoing policy:
|
|
python3 ops/native_damage_update_test.py --baseline-health 5859 \
|
|
--baseline-max 5859 --output runtime/NEW-damage.json
|
|
Script accepts confirmed current baselines and rejects missing/unsafe baselines;
|
|
source state changes are restored in finally, reports preserve failed cleanup.
|
|
It does not disable regen; do not confuse later health samples with damage size.
|
|
|
|
Prior closed587881 console SavedVariables at11:06:57 contains0Lua errors. Earlier
|
|
closed581479 had the known Blizzard_ClassTalentsFrame.lua:893 nil error; it is NOT
|
|
claimed fixed. Live599422 console may contain unsaved messages. Native Lua health
|
|
print is visibly working. No unsafe Lua-C registration or executable-call patch.
|