Can Someone Plz Help me With My Custom Background Music

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
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Can Someone Plz Help me With My Custom Background Music

Post by SBF_Dann_Boeing »

I've been trying to get my custom background music to work forever for my pepperland map. I've followed all the tut's and have gotten help from Vyse but I still can't get them to work.

First, is there a limit to the length of the wav?
Second, if i were to send someone my wav files would they be willing to make the sound.lvl i need for me?

My wavs are chunk1.wav chunk2.wav chunk3.wav vic1.wav and def1.wav. Here are the contents of all my sound files.

LSDcw_music_config.snd and LSDgcw_music_config.snd
// ----------------------------------------- LSD Music ------------------------------------

SoundStream()
{
Name("chunk1");
Pitch(1.0);
PitchDev(0.0);
Gain(1.0);
GainDev(0.0);
ReverbGain(0.0);
Bus("ingamemusic");
Looping(1);
Pan(0.0);
Mode3D(0);
CyclePlayback(3);
Stream("LSD");
SegmentList()
{
Segment("chunk1", 1.0, 0.0, 0.0);
}
}

SoundStream()
{
Name("chunk2");
Pitch(1.0);
PitchDev(0.0);
Gain(1.0);
GainDev(0.0);
ReverbGain(0.0);
Bus("ingamemusic");
Looping(1);
Pan(0.0);
Mode3D(0);
CyclePlayback(3);
Stream("LSD");;
SegmentList()
{
Segment("chunk2", 1.0, 0.0, 0.0);
}
}

SoundStream()
{
Name("chunk3");
Pitch(1.0);
PitchDev(0.0);
Gain(1.0);
GainDev(0.0);
ReverbGain(0.0);
Bus("ingamemusic");
Looping(1);
Pan(0.0);
Mode3D(0);
CyclePlayback(0);
Stream("LSD");;
SegmentList()
{
Segment("chunk3", 1.0, 0.0, 0.0);
}
}

SoundStream()
{
Name("vic1");
Pitch(1.0);
PitchDev(0.0);
Gain(1.0);
GainDev(0.0);
ReverbGain(0.0);
Bus("ingamemusic");
Looping(0);
Pan(0.0);
Mode3D(0);
Stream("LSD");
SegmentList()
{
Segment("vic1", 1.0, 0.0, 0.0);
}
}

SoundStream()
{
Name("def1");
Pitch(1.0);
PitchDev(0.0);
Gain(1.0);
GainDev(0.0);
ReverbGain(0.0);
Bus("ingamemusic");
Looping(0);
Pan(0.0);
Mode3D(0);
Stream("LSD");
SegmentList()
{
Segment("def1", 1.0, 0.0, 0.0);
}
}
LSDcw_music.mus and LSDgcw_music.mus
// ----------------- LSD Music ----------------------

Music()
{
Name("chunk1");
Priority(1.0);
FadeInTime(0.0);
FadeOutTime(1.5);
MinPlaybackTime(240.0);
MaxPlaybackTime(720.0);
MinInactiveTime(15.0);
SoundStream("chunk1");
}

Music()
{
Name("chunk2");
Priority(1.0);
FadeInTime(0.0);
FadeOutTime(1.5);
MinPlaybackTime(240.0);
MaxPlaybackTime(720.0);
MinInactiveTime(15.0);
SoundStream("chunk2");
}

Music()
{
Name("chunk3");
Priority(1.0);
FadeInTime(0.0);
FadeOutTime(1.5);
MinPlaybackTime(240.0);
MaxPlaybackTime(720.0);
MinInactiveTime(15.0);
SoundStream("chunk3");
}

Music()
{
Name("vic1");
Priority(9.0);
FadeInTime(0.0);
FadeOutTime(5.0);
MinPlaybackTime(3.0);
MaxPlaybackTime(360.0);
MinInactiveTime(600.0);
SoundStream("vic1");
}

Music()
{
Name("def1");
Priority(9.0);
FadeInTime(0.0);
FadeOutTime(5.0);
MinPlaybackTime(3.0);
MaxPlaybackTime(360.0);
MinInactiveTime(600.0);
SoundStream("def1");
}
LSD.req
ucft
{
REQN
{
"str"
"align=2048"
}
REQN
{
"lvl"
"LSDgcw"
"LSDcw"
}
}
LSDcw.req
ucft
{
REQN
{
"bnk"
"align=2048"
"LSDcw"
}

REQN
{
"config"
"LSDcw_music_config"
"LSDcw_music"
}
}
LSDgcw.req
ucft
{
REQN
{
"bnk"
"align=2048"
"LSDgcw"
}

REQN
{
"config"
"LSDgcw_music_config"
"LSDgcw_music"
}
}
LSD.st4
streams\chunk1.wav chunk1
streams\chunk2.wav chunk2
streams\chunk3.wav chunk3
streams\vic1.wav vic1
streams\def1.wav vic2
I've already shown these to Vyse and he says there's nothing wrong with em.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

I've mastered the technique of adding music the way the game does, so I could make the sound.lvl for you.

Well, I think adding music the way I do seems easier, because it's more organized.

There's no limit to how long the .wav should be, although your MaxPlaybackTime should be as long as the length of the sound in seconds.

I read that you can only have a max of 5 streams, and the .wav's have to be in a certain format (Vyse's tut says what format. Use Sound Recorder to change it.

So, if you want me to set it up in a different way, PM me the files.

- EP-782
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

What is the suggested length for wave file?
Last edited by SBF_Dann_Boeing on Fri Jun 15, 2007 9:18 pm, edited 1 time in total.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

The .wav's should be probably long enough to be 300 seconds at the most, as you probably dont want a gargantuan .lvl. Especially in your case, since the map probably will be a huge download.

Now, onto the next part...

From what I've seen from working with this, once you find how long it is, add the length in the MaxPlaybackTime in the .mus file, but maybe subtract your number by 5-15.
The reason for that is that the stream might restart after it's over, but will cut off after a few seconds.

If you have two streams called in one SoundStream and one is significantly longer than the other, the MaxPlaybackTime should be with the shorter stream, since the same result will happen like above, but uglier.

Hope that helps

- EP-782
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

ah well mine are about twice that length all around 600-700 secs.

grrr now i have to remix everything. When I do, do you mind me sending u the wave files and make the sound.lvl for me? I've been trying to do this for over a month and am tired of trying to fix this.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Sure, I can do it.

Whoa, that's long! You'll definately want to remix them.

- EP-782
Post Reply