Home
For Builders
Adding Custom Sounds: Wave Files
Adding Custom Sounds: Wave Files
Intended Audience:
[Printer Friendly Version]
By Robin Mayne and Jonathan Epp
This tutorial will show you how to add a custom .wav sound file to your module using a hak pak. The example below shows how we added the background dance music in the Dance Club Example module.
Steps for Adding Sound
The process we will use is as follows:
- Take your .wav file and add it to a hak pak
- Add you hak pak to your module
- Add the sound to your module by creating a custom blueprint
|
 |
Adding a Wave to a Hak Pak
The first thing you will need to do is add your .wav file(s) to a Hak Pak, which can then be used with your module, and distributed so others can enjoy your creations.
1. The Hak Pak Editor is the 'nwhak.exe' program located in the 'utils' directory where you have installed Neverwinter Nights (The default location is C: \NeverwinterNights \NWN \utils). Double-click the 'nwhak.exe' to start the editor.
2. Add the new .wav sounds to the Hak Pak Editor by selecting
'Resource' -> 'Add'. Browse to the location of the .wav file. Select it and click 'Open'.
3. You will now see the sound file listed as a resource in the Hak Pak. Add a title and description to your Hak Pak, and save it to your 'hak' folder where you have installed Neverwinter Nights (The default location is C: \NeverwinterNights \NWN \hak).
|
 |
Adding a Hak Pak to a Module
1. Now that the Hak Pak is in your 'hak' directory, we can add it to a module. Open an existing or new module in the Toolset. Under the 'Edit' menu select 'module properties', then select the 'Advanced' tab. In the 'HAK File' drop-down select your hak pak.
Note: This is how Hak Paks are added to a module. Remember that if you use a Hak Pak in your module, Players must place the same Hak Pak in their 'hak' directory to play the module, so be sure to bundle the Hak Pak with your module when offering it for download!
Adding the Sound to a Module
Now that the Hak Pak with the new sound has been added, we can add that sound to the module.
1. In the top menu of the Toolset, select 'Wizards' -> 'Sound Wizard'.
2. Assign Pallette Category. Choose the category you want your sound blueprint to appear under. In our example, we placed it under 'Special' -> 'Custom 1'.
|
 |
3. Choose the Timing for your sound (Seamlessly looping or Single-Shots). Since we are creating background music, select Seamlessly looping.
4. Choose the Positioning for your sound. Again, since we are creating background music, select Area-wide.
5. Click the 'Add Sounds...' button to bring up the list of .wav files in the game and in your hak pak. Select 'Hak Pak Resources Only' to list the .wav files you have added to your hak pak. Select the sound you wish to use, and click OK. Click 'Next' to proceed.
|
6. Enter the name for your blueprint (our example is named 'Moozik'), and uncheck the 'Launch Properties Dialog' box. Click 'Finish'.
7. The sound now appears under 'Paint Sounds' -> 'Custom' -> 'Special' -> 'Custom 1'. Select your sound and paint it in your module. In our example, we selected and Area-wide sound, so it does not matter where it is placed.
|
 |
Using the above steps as a guideline, you can add .wav files to your module to spice up your areas with interesting sounds.