Tutorial; ImportSound - HWRM/KarosGraveyard GitHub Wiki

How to Import Sound Into Homeworld 2 by Slamoid

  1. Download Audacity, a free sound-editing utility, and install it. Then use it to convert your sound file to a standard ".wav" file.
  2. Download the AIFR Encoder and put it in a folder. You'll have to do some thinking for yourself from here on.
  3. Use the above program on the ".wav" file, with a 512 setting.
  4. Download the Relic Sound Tools and open the ".aifr" file that resulted from the last step with this. Change to the proper settings and save. [Make sure and read the AIFR Encoder Documentation. It gives some explanantion as to what the proper settings should be. --Mikali]
  5. Copy to the proper directory, rename to ".fda", and change scripts [see next section] if necessary!

Note: The ".fda" and ".aifr" formats are the same.

Rock on.

Changing the Sound Scripts by Age2uN.

You need to have the ".fda" file with your music in it. Lets assume its name is "MY.fda".
In your "homeworld2\data" directory create the path "Sound\Music\Mine". Put your "MY.fda" file there.
Create a file with the same name as your ".fda", but with the suffix ".lua" (e.g. "MY.lua") in the same directory and fill it with these commands with your editor (notepad.exe o.e.):

version = 4 volume = 0.70000 randSampContainer = 0

Save it.

Importing HW & Cata sounds/music into HW2 by Mikali

  1. First, extract the ".bnk", ".vce", or ".wxd" files using Penesound.
  2. Write down the bitrate that Penesound reports for each ".aifr" file.
  3. Install the AIF Plugin into the Winamp (preferably version 2.91) plugins directory. In the Winamp preferences menu, select Nullsoft Discwriter as the output plugin.
  4. Play each ".aifr" file in Winamp. You won't hear anything, but a number of ".wav" files will have then been created.
  5. Next, convert the ".wav" files back into ".aifr" files using the AIFR Encoder. The commandline should look something like this:
    enc.exe 001_1_aifr.wav 1.aifr 512
    The number at the end (e.g. 512) should correspond to the bitrate that Penesound reports for each file.
  6. Change each file's extension from ".aifr" to ".fda".
  7. Create a ".lua" script with the same name of each ".fda" file.
  8. Place each pair of ".fda" and ".lua" files into one of the following directories, depending on the type of sound you're adding: "\Data\Sound", "\Data\Speech" or "\Data\Sfx".

Related Pages

Tutorials

SOUND IMPORT HACKED!!! Step-by-step info inside

AIFR Encoder Documentation

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial