| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hpl3:community:other:managing_audio [2019/12/30 18:49] cadely |
hpl3:community:other:managing_audio [2019/12/30 21:41] (current) cadely [Overview - Setting up Voices for Mods:] |
||
|---|---|---|---|
| Line 155: | Line 155: | ||
| WIP | WIP | ||
| - | ===== Preparing Voice Files (using VoiceHandler) ===== | + | ===== Preparing Voice Files (using Voice Handler and VoiceHandler.exe) ===== |
| Voice files are a specially handled form of audio in HPL3. Their main purpose is to represent the sound played from character voices, either in audio logs or in an active dialogue (such as the conversation with Dr. Munshi). They are also used to represent character barks (e.g. random sounds from monsters). | Voice files are a specially handled form of audio in HPL3. Their main purpose is to represent the sound played from character voices, either in audio logs or in an active dialogue (such as the conversation with Dr. Munshi). They are also used to represent character barks (e.g. random sounds from monsters). | ||
| Line 177: | Line 177: | ||
| </file> | </file> | ||
| - | 5. Rename each .ogg file of dialog to match the "File Name" in each voice handler line entry | + | 5. Add these two lines to your mod's "resources.cfg" file: |
| + | |||
| + | <code> | ||
| + | ... | ||
| + | <Directory Path="/lang/eng" AddSubDirs="true"/> | ||
| + | <Directory Path="/voices" AddSubDirs="true"/> | ||
| + | ... | ||
| + | </code> | ||
| + | |||
| + | 6. Rename each .ogg file of dialog to match the "File Name" in each voice handler line entry | ||
| * In VoiceHandler.exe under the "Subjects" tab, click the circular down arrow in a dialog line | * In VoiceHandler.exe under the "Subjects" tab, click the circular down arrow in a dialog line | ||
| Line 183: | Line 192: | ||
| * Rename the file to be [GeneratedName].ogg | * Rename the file to be [GeneratedName].ogg | ||
| - | 6. In your map's .hps script file, trigger the "Subject" from your map's .voice file by adding this line (replacing "SubjectName" with the Subject that dialog line is located in when you made a .voice file): | + | 7. In your map's .hps script file, trigger the "Subject" from your map's .voice file by adding this line (replacing "SubjectName" with the Subject that dialog line is located in when you made a .voice file): |
| <code> | <code> | ||
| Line 189: | Line 198: | ||
| </code> | </code> | ||
| - | 6. (optional) Get "Test Voice Over" button to work | + | 8. (optional) Get "Test Voice Over" button to work |
| * Copy VoiceHandler.exe, libvorbis.dll, and libogg.dll from the SOMA directory to your mod's directory, and launch VoiceHandler.exe from your mod directory. Then open your .voice file and you should be able to preview Subjects | * Copy VoiceHandler.exe, libvorbis.dll, and libogg.dll from the SOMA directory to your mod's directory, and launch VoiceHandler.exe from your mod directory. Then open your .voice file and you should be able to preview Subjects | ||