Sound Problems

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

User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Sound Problems

Post by Kingpin »

I think I am missing an STM file, even though Mav's EFX folder did not have one
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Sound Problems

Post by Anakin »

Can you post a list of all files you have?? (req files, au files,....)

Is there a munge output saying something like could not find, or something like that??

If there is a bnk file in the build/sound/wolrd/.../ folder everythnig is munged correctly and the problem is in the lua. If there is no bnk file something went wrong with the munge.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Sound Problems

Post by AceMastermind »

Kingpin wrote:I think I am missing an STM file, even though Mav's EFX folder did not have one
Sure it does, its named efxcw_music.stm
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Sound Problems

Post by Kingpin »

Oh. I have that. I have all the files from Mav's tutorial.
Eaol
Major
Major
Posts: 510
Joined: Fri Jul 31, 2009 5:49 pm
Games I'm Playing :: SWBF2 and Warframe
Location: Everywhere.

Re: Sound Problems

Post by Eaol »

Anakin, if it munged correctly (has a .bnk), does that mean there are no problems with any of the munged files? That is, the ASFX, the REQs, etc? Is it certain that it is a .lua problem?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Sound Problems

Post by Marth8880 »

Could you please just post the files I mentioned? Thanks.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Sound Problems

Post by Anakin »

Eaol wrote:Anakin, if it munged correctly (has a .bnk), does that mean there are no problems with any of the munged files? That is, the ASFX, the REQs, etc? Is it certain that it is a .lua problem?
As far as i know modtools builds these files:
snd files -> XML Configuration files
req files -> lvl files
st4 and asfx files -> bnk files

So the req files will give you munge errors if there was something wrong. The most not misstakes for me were in the st4/asfx files. They didn't give me a log, or something like that, but the finaly sound lvl file was very small and the sounds didn't work. When i got them working and added some more sounds (the files where bad) i still got the lvl file, no errors, nothing, but there wasn't the sound ingame. The problme was, that in the st4/asfx file was a bad sound file called, modtools stops munging the bnk file, and later when it munge the lvl files, it took the old bnk file from the _BUILD\Sound\worlds\rcm\MUNGED\PC folder. So i recommend to delete this file on every munge you did, to make sure everything is munged right.
Marth8880 wrote:Could you please just post the files I mentioned? Thanks.
Nothing more to say. That would be the best way to find the problem.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Sound Problems

Post by Kingpin »

EFX Req
Hidden/Spoiler:
ucft
{
REQN
{
"stm"
"align=2048"
"efxcw_music"
}
REQN
{
"lvl"
"efxcw"
}

}
EFXcw
Hidden/Spoiler:
ucft
{
REQN
{
"bnk"
"align=2048"
}

REQN
{
"config"
"efxcw_music_config"
"efxcw_music"
}
}
efxcw_music.stm
Hidden/Spoiler:
// ----- Ambient Bleed Music ----------
Streams\music1.wav cis_kam_amb_start
Streams\music1.wav cis_kam_amb_middle
Streams\music1.wav cis_kam_amb_middle02
Streams\music1.wav cis_kam_amb_end
Streams\music1.wav rep_kam_amb_start
Streams\music1.wav rep_kam_amb_middle
Streams\music1.wav rep_kam_amb_middle02
Streams\music1.wav rep_kam_amb_end
// ----- Ambient Vehicle Music ----------
//..\nab\Streams\cis_nab1_amb_veh01.wav cis_kam_amb_veh01
//..\nab\Streams\cis_nab1_amb_veh02.wav cis_kam_amb_veh02
//..\nab\Streams\cis_nab1_amb_veh03.wav cis_kam_amb_veh03
//..\nab\Streams\rep_nab1_amb_veh01.wav rep_kam_amb_veh01
//..\nab\Streams\rep_nab1_amb_veh02.wav rep_kam_amb_veh02
//..\nab\Streams\rep_nab1_amb_veh03.wav rep_kam_amb_veh03
// ----- Win Lose Music ----------
Streams\victory.wav rep_kam_amb_victory
Streams\victory.wav cis_kam_amb_victory
EDIT I uploaded the whole EFX sound world here:
http://www.mediafire.com/download/yx9sx ... 1i/EFX.zip
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Sound Problems

Post by Marth8880 »

Anakin wrote:st4 and asfx files -> bnk files
Just want to point out that .st4 (and .stm) files are munged into .str files, not .bnk files. The .st4 file is almost exactly the same as the .stm file except for the fact that it's used for loading quadraphonic streams instead of stereo or mono streams.


EDIT
Found one problem so far:

Code: Select all

// ----- Win Lose Music ----------
Streams\victory.wav  rep_kam_amb_victory
Streams\victory.wav  cis_kam_amb_victory
You're referencing a file that doesn't exist, or in other words, victory.wav. Either comment out those bottom two lines with // or create victory.wav and put it in the "streams" folder.

Also:

Code: Select all

    REQN
    {
        "stm"
        "align=2048"
	"efxcw_music"
    }
"stm" should be "str".

Also, I don't recall you posting your LUA.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Sound Problems

Post by Anakin »

why are you sure the wavs don't exist??

He don't open the stock sounds. your sound files need to be here:

data_XXX\Sound\worlds\XXX\streams

If you want to call a files lets say in this folder:
data_XXX\Sound\global\streams\hero_battlechatter_vo

you need to write this:

Code: Select all

..\..\global\streams\hero_battlechatter_vo\what_ever.wav  rep_kam_amb_victory
so are in your data_XXX\Sound\worlds\XXX\streams folder ALL sound files that you are calling in the file??
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Sound Problems

Post by Marth8880 »

Because I downloaded the archive and checked. I'd advise you do the same.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Sound Problems

Post by Anakin »

:oops: haven't seen the link
User avatar
LukeBenVader1
Private Recruit
Posts: 20
Joined: Fri Jan 10, 2014 8:28 am
Projects :: Ultimate Laser Tag
Games I'm Playing :: SW Battlefront II
xbox live or psn: No gamertag set

Re: Sound Problems

Post by LukeBenVader1 »

What about selecting shell in the VisualMunge? My sound files wouldn't munge because it couldn't read the shell.sfx file. Would that be the problem?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Sound Problems

Post by Marth8880 »

LukeBenVader1 wrote:What about selecting shell in the VisualMunge? My sound files wouldn't munge because it couldn't read the shell.sfx file. Would that be the problem?
No. Munge errors regarding the shell files when munging sound can be ignored.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Sound Problems

Post by Kingpin »

Well, I changed some of those files, and now it crashes when I load. I managed to fix it, but I don't think that this will work. Thank you guys for trying to help, though.
Post Reply