More Sound Trouble

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
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

More Sound Trouble

Post by Darth_Z13 »

This is really starting to annoy me. :mad:

I've got six .wav files, in the effects folder, all of them 352 kbps, 16 bit, mono, 22 kHz PCM mode.

I've got a BOT.req file:

Code: Select all

ucft
{
	REQN
	{
		"str"
		"align=2048"
	}
	REQN
	{
		"lvl"
		"BOTcw"
	}	
 }
I've got a BOTcw.req file:

Code: Select all

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

	REQN
	{
		"config"
		"swweapons"
	}
 }
I've got a BOT.asfx file:

Code: Select all

effects\dc_15_rifle.wav    -resample xbox 22050 pc 22050
effects\bd_fire.wav    -resample xbox 22050 pc 22050
effects\cis_sniper.wav    -resample xbox 22050 pc 22050
effects\repeater_fire.wav    -resample xbox 22050 pc 22050
effects\sbd_fire.wav    -resample xbox 22050 pc 22050
effects\droideka_fire.wav    -resample xbox 22050 pc 22050
I've got a swweapons.snd file:

Code: Select all

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

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

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

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

SoundProperties()
{
    Name("repeaterfire");
    Group("weapons");
    Inherit("weapon_template");
    Gain(0.9);
    Looping(1);
    RollOff(2.0);
    SampleList()
    {
        Sample("repeater_fire", 1.0);
    }
}

SoundProperties()
{
    Name("droidekafire");
    Group("weapons");
    Inherit("weapon_template");
#ifplatform pc
    Gain(0.7);
#endifplatform pc
#ifplatform xbox ps2
    Gain(0.4);
#endifplatform xbox ps2
    RollOff(3.0);
    SampleList()
    {
        Sample("droideka_fire", 1.0);
    }
}
I've got this line in my LUA where it should be:

Code: Select all

    ReadDataFile("dc:sound\\BOT.lvl;BOTcw")
I've changed the sounds in the weapon ODF's.

And I've made the proper adjustments to the .bat files.

Yet, when I play my map, I don't have any sounds for those weapons. :(

What am I doing wrong?

I think it has to do with my .wav files. When I export them from Nero WaveEditor I use these settings:

Frequency: 22050

Bits: 16

Channel: Mono

If anyone wants to check out my .wav files and see if there's anything wrong with them, here they are. :)
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

RE: More Sound Trouble

Post by authraw »

And when you reference the sounds in the weapon odfs, you use the names without the underscores, right? Those files look right to me.

You might want to try opening your wav files in Windows Sound Recorder (Start>All Programs>Accessories>Entertainment>Sound Recorder) and saving them as new files. I used that program (crappy as it may be) to touch up some of my custom sounds, so I should think that that means that it saves them with the right compression settings.

Sounds are a pain. The only other thing that I can recommend is that you start all over from scratch a couple of times, following the sound tutorial exactly. I think it took me three completely fresh starts, running through that tutorial from beginning to end to get my sounds working properly. Each time all of my files looked right to me, but something must have changed along the way. :P
Post Reply