Page 1 of 1

Possible sound munge error

Posted: Mon Sep 01, 2014 4:35 am
by giftheck
When I munge sounds, I get the following error when executing the batch file:

"munging bfecw.asfx
The system cannot find the file specified"

However, the LVL file is still created, all SFX appear to be present when I import the LVL file into Audacity and no errors are given in the mungelog. Any idea what's going on here?

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 4:39 am
by Anakin
have you changed something after you got the error?? As far as i know (SWBF2 but i think it's simular to SWBF1) the error log file will not be deletet when you get no errors. So it's possible that this error was from an prior munging. Try to delete the error log and remunge.

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 5:41 am
by giftheck
After it? No. As I said, the strange thing here is that it does still create the lvl files. Opening these LVL files show that the SFX in question are in fact present.

Normally, I would have thought that if it genuinely could not find a file, it would appear in the mungelog.txt as "Could not find file"

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 5:53 am
by Anakin
can you show me your bat file??

I think i know what happens:
munging bfecw.asfx <== just an info what is done right now.
The system cannot find the file specified <== That's not an problem of munging i think it's a windows thing

that's what my munge bat looks like. you see the line @Start _BUILD\PC_MungeLog.txt it will open the munge log after munging. But when there are no errors there will be no munge log. So maybe you have something simular. And windows cannot find the file. Or you have an line that should copy the sound lvl to your project and there is a wrong path.

Code: Select all

@if %1x==x goto noplatform
@set MUNGE_PLATFORM=%1
@set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%
@rem EDIT THE LINE BELOW TO POINT TO YOUR BF2 INTSALL PATH

@rem Munge global, shell and side specific sound data
@rem Munge world specific sound data
@call soundmungedir _BUILD\sound\worlds\rcm\%MUNGE_DIR% sound\worlds\rcm sound\worlds\rcm\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound rcm


@rem EDIT THE TWO LINES BELOW TO POINT TO YOUR MOD BY REPLACING SND WITH YOUR WORLD ABBREVIATION

@Start _BUILD\PC_MungeLog.txt

@goto exit
:noplatform
@echo Platform must be specified as the first argument
:exit

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 6:07 am
by giftheck
No, in SWBF1, Mungelog is not referenced at all in the soundmunge.bat file, it is instead called by the munge.bat in the _BUILD_LVL folder.

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 6:16 am
by Anakin
mg but if the sound lvl works ingame where is the problem??

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 6:17 am
by giftheck
Anakin wrote:mg but if the sound lvl works ingame where is the problem??
I have yet to test it to see if it does work.

EDIT: yes, it does seem to work properly, at least on one of the 'affected' sound LVLs. It just seems a bit strange is all. But I haven't tested it on the others that have come up yet.

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 12:51 pm
by Marth8880
Hmm. Is that the *only* error you get? What's your ASFX file look like? :o Are you sure every single WAV file referenced in the ASFX file exists in its appropriate directory?

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 3:14 pm
by giftheck
Marth8880 wrote:Hmm. Is that the *only* error you get? What's your ASFX file look like? :o Are you sure every single WAV file referenced in the ASFX file exists in its appropriate directory?
I'm certain, and it is the only error I get.

Here's a typical ASFX file:

Code: Select all

effects\beamcannon_fire.wav  -resample pc 44100
effects\beamcannon_lp.wav  -resample pc 44100
effects\rep_threeshot_fire.wav  -resample pc 44100
effects\sniper_fire.wav  -resample pc 44100
effects\commpistol_fire.wav  -resample pc 44100
effects\rocket_fire.wav  -resample pc 44100
effects\shotgun_fire.wav  -resample pc 44100
effects\chaingun_fire.wav  -resample pc 44100

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 3:17 pm
by Marth8880
Hmm. That's pretty odd. I assume you applied all of the necessary sound munge fixes? :o

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 3:19 pm
by giftheck
Marth8880 wrote:Hmm. That's pretty odd. I assume you applied all of the necessary sound munge fixes? :o
I believe so, yes.

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 3:20 pm
by Marth8880
Which OS are you running?

Re: Possible sound munge error

Posted: Mon Sep 01, 2014 3:22 pm
by giftheck
Vista Home Premium 32bit. Haven't taken the plunge to newer OS' yet.