the ultimate adding missing shipped sounds tutorial!

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

the ultimate adding missing shipped sounds tutorial!

Post 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
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: the ultimate adding missing shipped sounds tutorial!

Post 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.
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: the ultimate adding missing shipped sounds tutorial!

Post 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.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: the ultimate adding missing shipped sounds tutorial!

Post 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:
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: the ultimate adding missing shipped sounds tutorial!

Post by Aman/Pinguin »

Nice Tut' Bantha. :thumbs:


Though I have no idea why people have so much problems with the other tut's. :P
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

Re: the ultimate adding missing shipped sounds tutorial!

Post 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....
Post Reply