WHAT YOU NEED:
1) Star Wars Battlefront Mod Tools
2)Main game mission.lvl builder
3)A good audio editor. I recommend GoldWave, I use version 4.25, so I will demonstrate commands from that version.
STEP 1 - Sound Creation
Create a new map. For the purposes of this tut I will call it kam2.
Copy the contents of the Shipped Sound Config/Worlds/kam into the Datakam2/sound/worlds/kam2.
Open kam2.req, and copy the contents of kam.req into there.
Make your audio files. However, to be on the safe side, DO NOT HIT THE PASTE NEW BUTTON - It may save the files as an incorrect type. I found this when experimenting using the MP3s made from the Star Wars Special Edition releases, and the Force Unleashed promo tracks - they will not munge and the game will ignore your sound lvl file. Open a blank sound and the New Sound window will open. Choose the CD preset. Paste your changes into this blank file. Use the file "kamcw_music.stm" to show you what names you need to save the audio as.
SAVE THE FILE. 16bit .wav audio, 44100hz PCM, in the "samples" folder.
Compile the map, and you'll get the desired kam2.lvl file in _lvl_pc/sound. Copy it into your MAIN GAME sound folder.
STEP 2 - Adding to the main game
Open the mission.lvl editor, find the .lua for Kamino, "kam1c.lua". Open it and find the line:
Code: Select all
ReadDataFile("sound\\kam.lvl;kam1cw");Code: Select all
ReadDataFile("sound\\kam2.lvl;kam1cw");Code: Select all
OpenAudioStream("sound\\kam.lvl", "kamcw_music");Code: Select all
OpenAudioStream("sound\\kam2.lvl", "kamcw_music");BACK UP THE MISSION.LVL IN YOUR MAIN FOLDER BEFORE DOING THIS.
Now save the file "kam1c.lua", and use the mission.lvl editor's munge command. Go into the _lvl_pc folder, where you will find the new script. Copy it into your shipped _lvl_pc/sound folder, and play to test!
RULES:
No looping as of yet. i tried to loop but the loops didn't play. If you want to loop it has to be looped and faded out in the sound itself.


