mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Add diagnostic logging for player appearance extraction failures
Log a warning when player model spawn fails due to appearance data extraction failure. This helps diagnose why players appear invisible (missing field indices or malformed update packets). Logs at both CREATE_OBJECT and VALUES update points.
This commit is contained in:
parent
b7479cbb50
commit
b5a48729b8
1 changed files with 6 additions and 0 deletions
|
|
@ -8404,6 +8404,9 @@ void GameHandler::handleUpdateObject(network::Packet& packet) {
|
|||
playerSpawnCallback_(block.guid, unit->getDisplayId(), race, gender,
|
||||
appearanceBytes, facial,
|
||||
unit->getX(), unit->getY(), unit->getZ(), unit->getOrientation());
|
||||
} else {
|
||||
LOG_WARNING("[Spawn] PLAYER guid=0x", std::hex, block.guid, std::dec,
|
||||
" displayId=", unit->getDisplayId(), " appearance extraction failed — model will not render");
|
||||
}
|
||||
}
|
||||
} else if (creatureSpawnCallback_) {
|
||||
|
|
@ -8800,6 +8803,9 @@ void GameHandler::handleUpdateObject(network::Packet& packet) {
|
|||
playerSpawnCallback_(block.guid, unit->getDisplayId(), race, gender,
|
||||
appearanceBytes, facial,
|
||||
unit->getX(), unit->getY(), unit->getZ(), unit->getOrientation());
|
||||
} else {
|
||||
LOG_WARNING("[Spawn] PLAYER guid=0x", std::hex, block.guid, std::dec,
|
||||
" displayId=", unit->getDisplayId(), " appearance extraction failed (VALUES update) — model will not render");
|
||||
}
|
||||
}
|
||||
} else if (creatureSpawnCallback_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue