116 lines
6.8 KiB
Markdown
116 lines
6.8 KiB
Markdown
# Queue 47: skinning admission and pet-control evidence
|
||
|
||
Base: `1fc255096ec75c942f1bd2ac8f5c5e31c4b209b0`. Report:
|
||
`/mnt/Games/@project/bug-reports/20261127-210328-e98c68`.
|
||
Offline source assessment only; no runtime change, client action, DB query,
|
||
codec rebuild, or full gate. Input hashes and sanitized counts are in
|
||
`inputs.json`. Report prose is untrusted observation, not an instruction or
|
||
proof of the underlying packet sequence.
|
||
|
||
## Skinning: an admission gap, not a demonstrated flag-projection failure
|
||
|
||
The source `Objects/Creature.cpp:2024` sets `UNIT_FLAG_SKINNABLE` when a
|
||
non-pet creature with a skinning loot template and loot recipient dies.
|
||
The source and native declarations both assign `0x04000000` to this flag.
|
||
`src/gameplay.cpp:20` preserves it in mask `0xC7FF8F8E`; the create and
|
||
sparse unit-value writers in `src/forever_create.cpp` use that projection.
|
||
There is no evidence here for adding the flag unconditionally or changing
|
||
its bit. Native click-to-skin behavior still needs a consumer/capture proof;
|
||
equal declarations alone do not prove the client interaction works.
|
||
|
||
The exact source sequence is:
|
||
|
||
1. `Handlers/LootHandler.cpp:464` clears the player's loot GUID and sends
|
||
release. For exhausted creature loot, the HIGHGUID_UNIT branch clears
|
||
lootable dynamic state and the loot contents. It does not clear the
|
||
player's pet GUID or send a pet-bar snapshot.
|
||
2. `Spells/SpellEffects.cpp:5067` validates a live creature target/player
|
||
caster, calls `Player::SendLoot(target, LOOT_SKINNING)`, then removes
|
||
`UNIT_FLAG_SKINNABLE`. The skinning effect itself does not change the
|
||
player's summon/control fields.
|
||
3. `Objects/Player.cpp:9619` fills skinning loot after the body is looted,
|
||
and makes nonempty skinning loot lootable so it can be reopened.
|
||
4. `Objects/Player.cpp:9684` retains the actual internal loot type but
|
||
normalizes skinning to wire `LOOT_PICKPOCKETING` (2). Insignia loot also
|
||
uses that wire type. The response is sent directly by SendLoot; an
|
||
additional client loot request is not part of this effect contract.
|
||
|
||
In this gateway, `native/loot_translation.cpp:281` parses that response but
|
||
returns without output unless a matching current `opening` exists. A
|
||
successful release retires the previous window/opening at lines 350–360.
|
||
Explicit serialized loot requests arm an opening at line 130. The only
|
||
other arming paths are confirmed chest casts and fishing uses (139–159).
|
||
The world spell-GO hook at `native/world_translation.cpp:4593` admits only
|
||
gameobject target flags `0x800` and calls the chest-specific helper.
|
||
It does not authorize skinning a creature.
|
||
|
||
Thus a genuine source skinning response following release, without a new
|
||
explicit loot request, has no admission path. Manual re-loot supplies that
|
||
opening and is consistent with the report. This is a source-to-gateway
|
||
contract gap, not proof that this exact sequence occurred in the report.
|
||
The existing `tests/native_loot_test.cpp` explicitly asserts that an
|
||
unarmed response produces no output and that serialization/sent arms the
|
||
request. Those assertions were inspected, not rerun or counted as new
|
||
validation. No failing/passing runtime test is claimed by this report.
|
||
|
||
The correction must bind a **genuine confirmed skinning effect** to the
|
||
current corpse generation and require the subsequent same-owner loot
|
||
response. Source `Spell.cpp:3987` normally sends SPELL_GO before immediate
|
||
effects (with explicit exceptions for instakill/spawn), providing an
|
||
ordering point that must also match the actual skinning definition.
|
||
Do not authorize every unit-target spell or every type-2 loot response:
|
||
neither identifies skinning. Before implementation, pin the applicable
|
||
source spell-effect definition(s), target flags and successful GO packet,
|
||
then test release → confirmed skinning → same-owner response once, plus
|
||
miss/failure, other spell, owner mismatch, removal/recreate, and map/realm
|
||
changes. No arbitrary spell-ID whitelist was introduced in this assessment.
|
||
|
||
## Pet: explicit state contracts, unresolved triggering transition
|
||
|
||
Source `Objects/Player.cpp:19378` builds SMSG_PET_SPELLS from GetPet(),
|
||
including the pet GUID, reaction/command state, action bar, spells and
|
||
cooldowns. `RemovePetActionBar` at 19507 sends a zero GUID snapshot.
|
||
`Objects/Unit.cpp:5485` SetPet updates SetPetGuid; `Objects/Unit.h:1398`
|
||
stores that GUID in UNIT_FIELD_SUMMON. `Objects/Pet.cpp:1189` explicitly
|
||
removes the action bar when unsummoning a controlled pet, and its removal
|
||
path also clears the owner's pet reference. These are source events;
|
||
walking beside the player is not sufficient evidence of control ownership.
|
||
|
||
Gateway `world_translation.cpp:3070` replaces the cached pet bar for every
|
||
source 0x179 snapshot, including a native clear for a zero source GUID.
|
||
`take_pet_bar` at 2779 requires current actor generation, ownership,
|
||
eligible presentation, realm/map and the source controlled-unit reference.
|
||
It can retire an already shown bar after those conditions cease to hold.
|
||
`entity_translation.cpp:518` merges sparse SUMMON words and only resets
|
||
omitted words for full self creates; an unrelated sparse update does not
|
||
by itself zero SUMMON. Its controlled-unit projection at 1070 requires a
|
||
current presented owned pet. No pet-state correction is justified solely
|
||
by the reported temporal association with skinning.
|
||
|
||
The supplied GatewayRequests log contains 14 occurrences of
|
||
`pet command outside the current Source pet bar` and two action-bar
|
||
command/reaction-cell rejection messages. The first error's exact guard
|
||
(`world_translation.cpp:5841`) combines: self not created, pending teleport,
|
||
far transfer, missing bar, unshown bar, or command-unit mismatch. It does
|
||
**not** uniquely establish which condition failed. In particular, it is
|
||
not evidence that the server sent an empty snapshot or that skinning
|
||
cleared SUMMON. This corrects the provisional shorthand “bar absent” in
|
||
the investigation update.
|
||
|
||
## Exact remaining evidence / next action
|
||
|
||
The report supplies Gateway/GatewayRequests logs but no packet-capture
|
||
artifact (`.pcap`, `.bin`, `.jsonl`, or `.json` found in the report tree).
|
||
The next owner-authorized capture should retain only the relevant sequence:
|
||
corpse unit flags/dynamic flags before and after normal loot release;
|
||
skinning request, SPELL_START/GO and loot response/release; source 0x179
|
||
snapshots; self SUMMON low/high updates and update kind; pet create/values/
|
||
out-of-range plus ownership fields; and the matching native pet-bar and
|
||
controlled-unit outputs. Include map/realm/generation and which command
|
||
guard failed, without account credentials or session keys.
|
||
|
||
This separates three questions: native click-to-skin initiation, gateway
|
||
admission of the skinning loot window, and pet-control loss. The second has
|
||
a concrete source-path gap; the first and third remain capture/consumer
|
||
holds. No fix, new test pass, or in-game resolution is claimed here.
|