Page 2 of 2

Re: Sound Problems

Posted: Sat Mar 22, 2014 4:35 pm
by Kingpin
I think I am missing an STM file, even though Mav's EFX folder did not have one

Re: Sound Problems

Posted: Sat Mar 22, 2014 6:13 pm
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.

Re: Sound Problems

Posted: Sat Mar 22, 2014 8:09 pm
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

Re: Sound Problems

Posted: Sat Mar 22, 2014 10:16 pm
by Kingpin
Oh. I have that. I have all the files from Mav's tutorial.

Re: Sound Problems

Posted: Sat Mar 22, 2014 11:32 pm
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?

Re: Sound Problems

Posted: Sun Mar 23, 2014 2:54 am
by Marth8880
Could you please just post the files I mentioned? Thanks.

Re: Sound Problems

Posted: Sun Mar 23, 2014 6:17 am
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.

Re: Sound Problems

Posted: Sun Mar 23, 2014 10:38 am
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

Re: Sound Problems

Posted: Sun Mar 23, 2014 12:48 pm
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.

Re: Sound Problems

Posted: Sun Mar 23, 2014 1:37 pm
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??

Re: Sound Problems

Posted: Sun Mar 23, 2014 1:42 pm
by Marth8880
Because I downloaded the archive and checked. I'd advise you do the same.

Re: Sound Problems

Posted: Sun Mar 23, 2014 1:57 pm
by Anakin
:oops: haven't seen the link

Re: Sound Problems

Posted: Wed Mar 26, 2014 2:16 pm
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?

Re: Sound Problems

Posted: Wed Mar 26, 2014 2:37 pm
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.

Re: Sound Problems

Posted: Wed Mar 26, 2014 5:53 pm
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.