Adding Custom Sounds?

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
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 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: Crifton
Contact:

Adding Custom Sounds?

Post by Tourny »

Hi.

I realize that this is probably the most noobish topic I could possibly post.
Problem is, I read the tutorial by Vyse many times over and no matter what I do, the custom sounds do not show up ingame. I even tried following the tut exactly, but it did not work.

Can somebody please help me understand what the essential steps are and what needs to happen in order to get the sounds ingame?

Your help is appreciated...
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Custom Sounds?

Post by Maveritchell »

What is the sound you're trying to do? We have several other sound tutorials, have you read them? What is your specific problem?
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 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: Crifton
Contact:

Re: Adding Custom Sounds?

Post by Tourny »

Well, I am making units for a group of my friends. One of them asked if I could add these sounds for his guns. I added them in my .sfx, put them in the effects folder, and added them in a new .snd file I made and put the new snd file in the req. Then when I munged and copied it into the addon sound folder, the sounds didn't show up ingame.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Custom Sounds?

Post by Maveritchell »

You've got to be more clear than that - there are any number of steps you could have missed, and you should be using an .asfx file instead of an .sfx - but the question remains, have you read any of the other sound tutorials?
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 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: Crifton
Contact:

Re: Adding Custom Sounds?

Post by Tourny »

I didn't know there were other ones.

I'm setting up the custom sounds in the swbf2 folders... And I haven't seen a asfx file in any of the assets. Don't sfx and asfx do the same thing?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Adding Custom Sounds?

Post by Deviss »

Tourny wrote:I didn't know there were other ones.

I'm setting up the custom sounds in the swbf2 folders... And I haven't seen a asfx file in any of the assets. Don't sfx and asfx do the same thing?
i suggest read the great tuto by Mav is very easy of understand only give some confuse with names http://www.gametoast.com/forums/viewtop ... 27&t=18595 also on that tuto give the asfx file needed for custom sounds and note:
asfx : custom sounds
sfx : missing sounds from game :mrgreen:
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 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: Crifton
Contact:

Re: Adding Custom Sounds?

Post by Tourny »

Ok. I followed Mav's tutorial, and got slightly better results. The sounds do not show up, but none of the other sounds are affected this time.

My map is called EBF.

ebf.req:
Hidden/Spoiler:
ucft
{
REQN
{
"str"
"align=2048"
}
REQN
{
"lvl"
"ebfcw"
}
}
ebfcw.req:
Hidden/Spoiler:
ucft
{
REQN
{
"bnk"
"align=2048"
"ebfcw"
"ebf_effects"
}

REQN
{
"config"
"testcw"
"all_unit_vo"
"imp_unit_vo"
"end1gcw"
"wok_vo"
"all_unit"
"imp_unit"
"gcw_foley_dirt_config"
"gcw_foley_dirt"
"gcw_foley_wood_config"
"gcw_foley_wood"
"gcw_foley_metal_config"
"gcw_foley_metal"
"wok_foley_dirt_config"
"wok_foley_dirt"
"wok_foley_wood_config"
"wok_foley_wood"
"wok_foley_metal_config"
"wok_foley_metal"
"wok_foley_waterdeep_config"
"wok_foley_water"
"fel1"
"fel1cw_foley"
"cw_foley_grass_config"
"cw_foley_grass"
"fel_objective_vo"
"geo1cw"
"geo1cw_foley"
"hot1gcw"
"gcw_foley_snow_config"
"gcw_foley_snow"
"hot1gcw_foley"
"wok_unit_vo"
"kas"
"kas2"
"kas2cw_foley"
"gun_unit_vo"
"nab2"
"nab2cw_foley"
"des_unit_vo"
"tat"
"tat2"
"tat2gcw"
"tat2gcw_foley"
"tat2cw_foley"
"tat3"
"gam_unit_vo"
"tat3gcw_foley"
"all_hover_combatspeeder"
"imp_walk_atboth"
"ebf_config"
}
}
ebf_effects.asfx:
Hidden/Spoiler:
// Naga's Guns
effects\atriflefire.wav -resample xbox 22050 pc 22050
effects\carbinefire.wav -resample xbox 22050 pc 22050
effects\machinegunfire.wav -resample xbox 22050 pc 22050
ebf_config.snd:
Hidden/Spoiler:
SoundProperties()
{
Name("ATRifleFire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("atriflefire", 1.0);
}
}

SoundProperties()
{
Name("CarbineFire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("carbinefire", 1.0);
}
}

SoundProperties()
{
Name("MachineGunFire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("machinegunfire", 1.0);
}
}
This is exactly how both tutorials specified it to be. What am I doing it wrong?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Custom Sounds?

Post by Maveritchell »

Your .req file has way more in it than you need. Remove everything in the "config" section of your ebfcw.req except for the one config (.snd) file you're using. I will assume that you probably just don't have your BF2 tools set up correctly for munging sound. What's the size of your munged file, and did you move it manually to your addon folder?
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 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: Crifton
Contact:

Re: Adding Custom Sounds?

Post by Tourny »

All the other stuff in it is from putting stock sounds in. I found out how to make it work. The problem is in the ebfcw.req, under the first REQN. Whichever file I put first is the one who's sounds make it into the map.
Post Reply