From 22a8f88d1a8de9fe0b5441ffec57d26c6c14dae1 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 9 Feb 2026 01:44:58 -0800 Subject: [PATCH] Add MPQ file probing for NPC voices and tavern music Tests various potential sound file paths at startup and logs which ones exist in the MPQ. This will show us the correct file paths to use for both NPC voices and tavern music. --- src/audio/npc_voice_manager.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/audio/npc_voice_manager.cpp b/src/audio/npc_voice_manager.cpp index 0ca8eb1b..c3d6c7f6 100644 --- a/src/audio/npc_voice_manager.cpp +++ b/src/audio/npc_voice_manager.cpp @@ -20,6 +20,34 @@ bool NpcVoiceManager::initialize(pipeline::AssetManager* assets) { return false; } + // Probe for actual sound file paths + LOG_INFO("=== Probing for NPC voice files ==="); + std::vector testPaths = { + "Sound\\Character\\Human\\HumanMaleHello01.wav", + "Sound\\Character\\Human\\HumanMaleGreeting01.wav", + "Sound\\Character\\Human\\HumanVocMaleHello01.wav", + "Sound\\Character\\PCVoice\\Human\\Male\\HumanMaleHello01.wav", + "Sound\\Character\\PCGuildGreetings\\HumanMaleGuildGreeting01.wav", + "Sound\\Character\\Human\\HumanVocMaleYes01.wav", + "Sound\\Character\\Human\\HumanVocMaleYes02.wav", + "Sound\\Character\\Human\\HumanVocMaleYes03.wav", + }; + for (const auto& path : testPaths) { + bool exists = assetManager_->fileExists(path); + LOG_INFO(" ", path, ": ", (exists ? "EXISTS" : "NOT FOUND")); + } + LOG_INFO("=== Probing for tavern music files ==="); + std::vector musicPaths = { + "Sound\\Music\\GlueScreenMusic\\tavern_01.mp3", + "Sound\\Music\\GlueScreenMusic\\BC_Alehouse.mp3", + "Sound\\Music\\ZoneMusic\\Tavern\\tavernAlliance01.mp3", + }; + for (const auto& path : musicPaths) { + bool exists = assetManager_->fileExists(path); + LOG_INFO(" ", path, ": ", (exists ? "EXISTS" : "NOT FOUND")); + } + LOG_INFO("==================================="); + loadVoiceSounds(); int totalSamples = 0;