Page 1 of 1

the ultimate adding missing shipped sounds tutorial!

Posted: Tue May 06, 2008 11:31 am
by Bantha55
I had problems with adding sounds for half a year and tried everything.Rends´ and Manderek´s tut didn´t work for me. I almost got crazy but today i have found the ultimate solution!


1.In data_***/sound/worlds you can find the req and sfx files of the shipped maps.In my case I took the yav files. I wanted to add alliance speeder sounds to the gian speeder in my naboo map. So I edited yav1cw.req.

Code: Select all

ucft
{
    REQN
    {
        "bnk"
        "align=2048"
        "yav1cw"
    }

    REQN
    {
        "config"
        "global_world"
        "rep_unit_vo"
        "cis_unit_vo"        
        "global_vo"
        "exp_obj"
        "exp_obj_large"
        "exp_obj_water"
        "yav1"
        "cis_unit"
        "rep_unit"
        "cw_foley_dirt_config"
        "cw_foley_dirt"
        "cw_foley_stone_config"
        "cw_foley_stone"
        "cw_foley_waterdeep_config"
        "cw_foley_water"
        "yavcw_music_config"
        "yavcw_music"
        "yav1cw_foley"
        "rep_hover_speederbike"
        "rep_hover_fightertank"
        "cis_hover_aat"
        "cis_hover_stap"
    	"all_hover_combatspeeder"   <----added!
    }
 }
Then I added the necessary sfx lines to yav1cw.sfx:

Code: Select all

// Combatspeeder -----------------------------------------------------------------------------------------------
#ifplatform xbox pc
..\..\gcw\effects\wpn_cmbtSpdr_blaster_fire.wav  -resample xbox 22050 pc 44100
..\..\gcw\effects\wpn_cmbtSpdr_turret_fire.wav   -resample xbox 22050 pc 44100
..\..\gcw\effects\eng_combatSpeeder_hi_lp.wav    -resample xbox 22050 pc 22050
..\..\gcw\effects\eng_combatSpeeder_mid_lp.wav   -resample xbox 22050 pc 22050
..\..\gcw\effects\eng_combatSpeeder_low_lp.wav   -resample xbox 22050 pc 22050
#endifplatform xbox pc
#ifplatform ps2
..\..\gcw\effects\wp2_cmbtSpdr_blaster_fire.wav  wpn_cmbtSpdr_blaster_fire     -resample ps2 16000
..\..\gcw\effects\wp2_cmbtSpdr_turret_fire.wav   wpn_cmbtSpdr_turret_fire      -resample ps2 16000
..\..\gcw\effects\eP2_combatSpeeder_hi_lp.wav    eng_combatSpeeder_hi_lp       -resample ps2 22050
..\..\gcw\effects\eP2_combatSpeeder_mid_lp.wav   eng_combatSpeeder_mid_lp      -resample ps2 12000
..\..\gcw\effects\eP2_combatSpeeder_low_lp.wav   eng_combatSpeeder_low_lp      -resample ps2 3000
#endifplatform ps2
//
just add the lines you need at the end of the sfx file list.

2. Then go into your lua.(data***/common/scripts/***_con) and edit the ordinary sound line.

Code: Select all

    ReadDataFile("dc:sound\\yav.lvl;yav1cw")   <----dc: added!
    ReadDataFile("dc:SIDE\\cis.lvl",
                             "cis_inf_rifleman",
                             "cis_inf_rocketeer",
                             "cis_inf_engineer",
                             "cis_inf_secdrd",
                             "cis_inf_sniper",
                             "cis_inf_cmd",
                             "cis_hero_darthmaul",
                             "cis_inf_droideka",
                             "cis_hover_aat",
                             "cis_inf_pilot",
                             "cis_hover_stap",
                             "cis_inf_neimoidiangunner",
                             "cis_fly_droidfighter_sc",
                             "cis_hover_mtt") 
3.After that go and munge your map.(Be sure to tick "sound" in the mungebox)

4.Go to data***/_LVL_PC/sound and take the new yav.lvl sound file.Go to BattlefrontII/game_data/addon/***/data/_lvl_pc/sound (create the sound folder if it doesn´t exists) and place the lvl file in it.

DONE!!!!WAHA!!

Try it. if this tut is good enough i would be happy to see it in the allyouneed thread. :D

Re: the ultimate adding missing shipped sounds tutorial!

Posted: Fri May 09, 2008 3:01 pm
by Teancum
I dunno how I missed this, but I may end up using this on a few of the Convo Pack's maps. Most of them Mav and I can find quick workarounds, but others are gonna need specific reqs. Smart idea man. If I use this I'll credit you in the ConvoPack credits.

Re: the ultimate adding missing shipped sounds tutorial!

Posted: Sat May 10, 2008 9:41 am
by Bantha55
Ok that´s cool :D
The only thing you have to pay attention to is that the sounds aren´t working if you have the same sfx line two times in the same sfx.file.

Re: the ultimate adding missing shipped sounds tutorial!

Posted: Sat May 10, 2008 10:20 am
by RepSharpshooter
Wow that's a lot simpler then the other 2-3 tutorials floating out there. It makes so much more sense just to leave the Yavin sound there xD

Nice work :thumbs: I may even get around to fixing the sounds on my map :lol:

Re: the ultimate adding missing shipped sounds tutorial!

Posted: Sun May 11, 2008 12:42 pm
by Aman/Pinguin
Nice Tut' Bantha. :thumbs:


Though I have no idea why people have so much problems with the other tut's. :P

Re: the ultimate adding missing shipped sounds tutorial!

Posted: Sat Jun 07, 2008 4:28 am
by 1z2x3c
it didnt work... i added all ther yav1cw files to the spa2cw files and none of the sounds worked... i cant do it....