H2v .sound file Guide
by Kills Alone of the H2MT Crew
September 22, 2013
---------------------------------------------------------
I use Audacity; as its small and free.
http://audacity.sourceforge.net/
So install that.
Locate an audio file such as an MP3 or a WAV file.
Open the file with Audacity, you can just drag and drop it if you want.
Down on the bottom make sure the Project Rate (Hz) is set t 22050.
Now go to File and select Export.
Make sure the filetype is set to: WAV (Microsoft) signed 16 bit PCM
---------------------------------------------------------
Halo 2 Vista cannot compile its own .sound files but it can use .sound files compiled for Halo Custom Edition if they are made using the XBOX ADPCM Codec.
Unfortunately (AFAIK) this codec only works on 32-bit (x86) versions of Windows such as Windows XP/2000 and Windows Vista. Getting it to work on Vista may require resetting media settings through Control Panel.
So what I'm doing is using a VM (Virtual Machine) called VMware that allows me to run Windows XP at the same time in as Windows 8 but in a sub-window.
You will need to figure out the best way to make use of this codec based on your available software and hardware .
To install the codec just follow its original guide:
-= INSTALLATION OF XBOX ADPCM CODEC =-
1) Right click "XBADPCMinst.inf", then click install.
2) When installation is complete:
-Go to your Device Manager
-Double click "Audio Codecs"
-Go to the Properties tab
-Double click "Xbox ADPCM Audio CODEC"
-Be sure "Use this audio codec" is enabled
-Change codec priority to 1
-Click "OK"
NOTE: This has only been tested on Windows 2000 Pro and Windows XP Pro.
Also, there may be side effects from changing the priority, but
there have been no reports as of yet.
---------------------------------------------------------
Now go to your Halo Custom Edition folder.
You need to create some folders if they do not exist:
-Under
\data\sounds\music create a sub-folder called 'tunes' (without the quotes).
-In that folder create a sub folder called whatever the desired sound file's name should end up as, so I created a folder called 'intro' (without the quotes).
-In that folder place your exported WAV or multiples WAV files. They can be named however you want as long as they have no spaces or such.
For example; if you had three sounds you wanted to make into permutations you could name them: 0.wav, 1.wav , 2.wav or intro.wav, middle.wav, end.wav.
Open an Admin-Level Command Prompt (Run -> CMD) and type:
tool sounds sound\music\tunes xbox 1
If it says the following only:
Importing sound\music\tunes\intro
...then you have success!
If it says the following:
error 0x000003e6 'Invalid access to memory location. ' ### failed to import: couldn't locate samples in file.
...thats probably because the file is too large or was not saved at 22050 Hz.
---------------------------------------------------------
Make sure you place those same two XBOX ADPCM Codec files under the bin folder in your Halo 2 Editing Kit folder structure. Then you can preview the sound files by clicking one of the play buttons near the end of the tag.
Now just copy the compiled HCE .sound file over and it should work with H2v. Do not attempt to edit the sound file in H2 Guerilla; it will crash. Do your edits in HCE Guerilla. ;)
---------------------------------------------------------
Main Menu Music file specific:
Mono or Stereo is okay.
-In HCE Guerilla set the music .sound file as follows:
Flags
Check to Enable - Fit to ADPCM Blocksize
Check to Enable - Split long sound into permutaions
Class
game_event
-Save the tag then re-run the sound command in the tool console.
-Go back to the tag in HCE Guerilla, close and reopen it if its settings have not refreshed. Now set the following under PITCH RANGES:
Name
|default|
-Save the tag, copy to H2v.
-Navigate H2 Guerilla to:
ui\ui_shared_globals.user_interface_globals_defini tion
-At the bottom of this tag there is the Main menu music section, duplicate the current .sound_looping tag and replace the in and looping .sounds with your own.
-Package the map and it should work.
---------------------------------------------------------
Here is some handy info:
XBOX Sound Codec:
http://forum.halomaps.org/index.cfm?...&topicID=28309
Music/Sound Compilation:
http://forums.gearboxsoftware.com/sh...d.php?p=831709