I have decided to try to explain how to change the sounds in ivaud files. First, I will tell you that this is not the only way to go about it, but it is a proven method. I have no experience with any other tools beside the ones mentioned hereafter, and no experience with ivaud files beside the ones containing vehicle engine sound loops. This means that it is possible that not everything explained here will apply to, for example, ivaud files containing music tracks, or sounds that do not loop.
Tools: XVI32; Audacity; SparkIV
1)Find a file you want to replace in the game and export it, along with the ivaud file it's in, using SparkIV.
2)Find a sound which will replace the original one.
3)Right click the original file ( the one you will be replacing) and select properties. Click the "Summary" tab.
4)Open Audacity. On the lower left there will be a button displaying the sample rate. Be sure that matches the one on the summary; if not click on the button and set it. (Note: 44kHz = 44100)
5)Click edit -> Preferences and under the "audio 1/0" tab set the drop-downs to show your sound card and set the channels to match the one displayed on the summary.
6)Under the "file formats" tab set the export format to match the one under summary (Example: WAV Microsoft 16 bit PCM), then click OK.
7)Set the drop-down to the right of the volume slider to "What U Hear."
8)Open your new sound in a media player and record the track in Audacity using the record button. Press the shift key and click play. So far this is how the sound will play in the game. Obviously you will need to edit it. Start by trimming the silent ends off of the track. Now make all of the necessary adjustments to the sound to make it sound how you want when you hold SHIFT and click play. Experiment with the functions.
9)Even if you don't have it exactly where you want it yet it is wise to export it and try it in the game anyhow so you get a better idea of what adjustments will need to be made. Click file and select "export as wav." Do NOT close Audacity yet. Right click your new sound and select properties. Under the General tab look at where it says "size:" and note the number in brackets. This number must be equal to the original sound file's, or be less by only a couple of bytes (like two). To lower the number increase the tempo, or the speed, or the pitch. Each of these functions has its strengths and weaknesses, you'll have to make your own decision. Obviously, to increase the number you can decrease the aforementioned, or you can apply equalization effects. (NOTE: You will have to do further editing after to make the sound loop again).
10)After the tedious process of adjusting and re-exporting until your file is the correct size you are ready to put it in the ivaud. Before you close Audacity go to file "save project as" and save it as an aup. When you go back to edit just double click the aup and Audacity will open the file as it was when you left it.
11)Open the ivaud with XVI32. Now open the original sound file with XVI32 and place them side by side. In the original sound file click on address "2B." Click edit -> Delete to Cursor.
12)In the ivaud; click search -> find. Tick "Hex String" and tick "Case Sensitive" and type the first four or five cubes of data (from the sound file), with spaces in between (caps sensitive), in the search field. Press ok. To be safe, search again down by pressing the F3 key. You should see a message saying "string not found." If not, scroll back to the top and enter more data in the search field.
13)Now close the original sound file (you don't have to save), and open your new sound with XVI32, placing it side by side with the ivaud.
14)Working in your new sound file, click on address "2B" and click edit -> Delete to Cursor. Scroll down to the bottom and click on the second to last cube of data and note the address on the bottom left corner. Scroll all the way to the top and click edit -> block <n> chars and type the address noted (hexadecimal). All but the last cube of data should be red.
15)In the ivaud click edit -> block <n> chars and click OK (should already have the address displayed). Now click the cut button (scissors).
16)In your sound click edit -> clipboard -> copy.
17)In the ivaud click edit -> clipboard -> paste. Then click edit -> block <n> chars and click OK. Scroll down to the last red cube.
18)In the new audio file scroll to the bottom.
19)In the ivaud click the first black cube after the last red cube and manually enter the last byte of data from the sound file and then zero out any other characters from the original sound remaining. (For example if your new sound is two bytes smaller than the original, you'll see two cubes of data after the one you manually entered, change these two cubes to zeros) Click save. Install following the instructions in my sound mods (don't forget to backup).
I expect to hear some great sounds especially considering some of the mediocre responses to my mods. Show me how it's done! I will answer questions here but only if they aren't addressed in this tut. Please put some effort in reading the whole thing before posting questions. Thanks.
Edited by arbitrarymobster, 15 December 2009 - 02:13 AM.