mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Add debug logging for tavern music and NPC voices
Added extensive logging to diagnose issues: - Logs WMO model IDs when entering WMOs (to identify correct tavern IDs) - Logs when tavern music should be playing - Logs NPC voice playGreeting calls and their results - Logs which sound files are being played - Added more emote variations (Hello, Yes) for NPC voices This will help identify why tavern music and NPC voices aren't working.
This commit is contained in:
parent
e1ecd13bcd
commit
ee52732350
2 changed files with 28 additions and 1 deletions
|
|
@ -1430,6 +1430,13 @@ void Renderer::update(float deltaTime) {
|
|||
}
|
||||
|
||||
// Detect taverns/inns by WMO model ID (common inn WMOs)
|
||||
// Log WMO ID for debugging
|
||||
static uint32_t lastLoggedWmoId = 0;
|
||||
if (wmoModelId != lastLoggedWmoId) {
|
||||
LOG_INFO("Inside WMO model ID: ", wmoModelId);
|
||||
lastLoggedWmoId = wmoModelId;
|
||||
}
|
||||
|
||||
// These IDs represent typical Alliance and Horde inn buildings
|
||||
if (wmoModelId == 191 || // Goldshire inn
|
||||
wmoModelId == 190 || // Small inn (common)
|
||||
|
|
@ -1447,6 +1454,7 @@ void Renderer::update(float deltaTime) {
|
|||
};
|
||||
static int tavernTrackIndex = 0;
|
||||
tavernMusic = tavernTracks[tavernTrackIndex % tavernTracks.size()];
|
||||
LOG_INFO("Detected tavern WMO, playing: ", tavernMusic);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue