Sound LVL won't munge [Solved]

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Sound LVL won't munge [Solved]

Post by modmaster13 »

Hey GT. I am trying to make a sound LVL file using Rends' tutorial: http://www.gametoast.com/viewtopic.php?f=27&t=4750

For some reason the sound lvl wont munge into the _LVL_PC folder and I really dont know why. :cpu: I have done all the steps neccesary and here's what i've done. If someone could give me a hand on this that'd be great :D


Pics:
Hidden/Spoiler:
Image
Hidden/Spoiler:
Image
Hidden/Spoiler:
Image
munge.bat
Hidden/Spoiler:
@REM WARNING: enabledelayedexpansion means ! is a special character,
@REM which means it isn't available for use as the mungeapp recursive
@REM wildcard character. Use the alternate $ instead.
@setlocal enabledelayedexpansion

@set MUNGE_ROOT_DIR=..\..
@if not "%1"=="" set MUNGE_PLATFORM=%1
@if %MUNGE_PLATFORM%x==x set MUNGE_PLATFORM=PC
@if "%MUNGE_BIN_DIR%"=="" (
@set MUNGE_BIN_DIR=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin
@set PATH=%CD%\..\..\..\ToolsFL\Bin;%PATH%
@echo MUNGE_BIN_DIR=!MUNGE_BIN_DIR!
)

@rem convert to lower case
@if %MUNGE_PLATFORM%==PC set MUNGE_PLATFORM=pc
@if %MUNGE_PLATFORM%==XBOX set MUNGE_PLATFORM=xbox
@if %MUNGE_PLATFORM%==PS2 set MUNGE_PLATFORM=ps2

@if /i %MUNGE_PLATFORM%==pc @set BANKOPT=-template -stub c:\windows\media\chord.wav
@set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%

@set LOCAL_MUNGE_LOG="%CD%\%MUNGE_PLATFORM%_MungeLog.txt"
@if "%MUNGE_LOG%"=="" (
@set MUNGE_LOG=%LOCAL_MUNGE_LOG%
@if exist %LOCAL_MUNGE_LOG% ( del %LOCAL_MUNGE_LOG% )
)
@rem echo ********************************************************************* >> %MUNGE_LOG%
@rem echo Sound\munge.bat %MUNGE_PLATFORM% >> %MUNGE_LOG%
@rem echo MUNGE_BIN_DIR=%MUNGE_BIN_DIR% >> %MUNGE_LOG%
@rem echo ********************************************************************* >> %MUNGE_LOG%

@cd ..\..

@if not exist _LVL_%MUNGE_PLATFORM% mkdir _LVL_%MUNGE_PLATFORM%
@if not exist _LVL_%MUNGE_PLATFORM%\Sound mkdir _LVL_%MUNGE_PLATFORM%\Sound


@call soundmunge.bat %MUNGE_PLATFORM%
@if %SOUNDCLEANLVL%x==1x @del /S /Q _BUILD\sound\*.lvl & @call soundmunge.bat %MUNGE_PLATFORM%

@if /i not "%SOUNDLVL%"=="" (
@for %%A in (%SOUNDLVL%) do @if /i "%%A"=="global" @goto buildglobalbank
@goto skipglobalbank
)
:buildglobalbank
@rem Build a global sound bank...
@set BANKLIST=
@for /R %%A in (*.sfx) do @set BANKLIST=!BANKLIST! %%A
@for /R %%A in (*.asfx) do @set BANKLIST=!BANKLIST! %%A
@if %SOUNDLOG%x==1x ( @set SOUNDOPT=-verbose & @set SOUNDLOGOUT=%LOGDIR%\SoundBankLog.txt ) else ( @set SOUNDOPT= & @set SOUNDLOGOUT=NUL )

@if not %MUNGE_PLATFORM%==pc goto skipglobalbank
@echo Munging common.bnk, this could take a while...
@soundflmunge -platform %MUNGE_PLATFORM% -banklistinput %BANKLIST% -bankoutput _LVL_%MUNGE_PLATFORM%\Sound\common.bnk -checkdate -resample -compact nowarning -checkid noabort -relativepath %SOUNDOPT% 2>>%MUNGE_LOG% 1>>%SOUNDLOGOUT%

:skipglobalbank

@cd _BUILD\Sound

@REM If the munge log was created locally and has anything in it, view it
@if not %MUNGE_LOG%x==%LOCAL_MUNGE_LOG%x goto skip_mungelog
@set FILE_CONTENTS_TEST=
@if exist %MUNGE_LOG% for /f %%i in (%MUNGE_LOG:"=%) do @set FILE_CONTENTS_TEST=%%i
@if not "%FILE_CONTENTS_TEST%"=="" ( Notepad.exe %MUNGE_LOG% ) else ( if exist %MUNGE_LOG% (del %MUNGE_LOG%) )

:skip_mungelog

@rem convert to upper case
@if %MUNGE_PLATFORM%==pc set MUNGE_PLATFORM=PC
@if %MUNGE_PLATFORM%==xbox set MUNGE_PLATFORM=XBOX
@if %MUNGE_PLATFORM%==ps2 set MUNGE_PLATFORM=PS2

@endlocal
More pics:

(Sound/worlds folder)
Hidden/Spoiler:
Image
Hidden/Spoiler:
Image
tes.req
Hidden/Spoiler:
ucft
{
REQN
{
"str"
"align=2048"
}
REQN
{
"lvl"
"tescw"
}
}
tescw.req
Hidden/Spoiler:
ucft
{
REQN
{
"bnk"
"align=2048"
"tescw"
}

REQN
{
"config"
"imp_walk_atst"
}
}
tescw.sfx
Hidden/Spoiler:
// AT Walker Common -ATAT ATST ATTE -------------------------

..\..\global\effects\hyd_walker01.wav atst_leg_up01 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker02.wav atst_leg_up02 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker03.wav atst_leg_up03 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker04.wav atst_leg_up04 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker05.wav atst_leg_up05 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker06.wav atst_leg_up06 -resample xbox 22050 pc 22050

//------------------------------------------------------------------------------------


// AT Walker Footsteps XBOX and PC ATTE ATAT ATST----------------------------------

..\..\global\effects\fs_walker_layerA01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_layerB01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_layerC01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_low01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_low02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_low03.wav -resample xbox 22050 pc 22050

// ----- ATST Weapons --------------------------------------------------------------------------------------

..\..\gcw\effects\wpn_atat_chinBlaster_fire.wav -resample xbox 22050 pc 44100
..\..\gcw\effects\wpn_atst_headBlaster_fire.wav -resample xbox 22050 pc 44100
soundmunge.bat
Hidden/Spoiler:
@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
@set BF2_SOUNDPATH="c:\Program Files\LucasArts\Star Wars Battlefront II\"

@rem Munge global, shell and side specific sound data
@call soundmungedir _BUILD\sound\cw\%MUNGE_DIR% sound\cw sound\cw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cw
@call soundmungedir _BUILD\sound\gcw\%MUNGE_DIR% sound\gcw sound\gcw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gcw
@call soundmungedir _BUILD\sound\global\%MUNGE_DIR% sound\global sound\global\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound global nolevelfile
@call soundmungedir _BUILD\sound\shell\%MUNGE_DIR% sound\shell sound\shell\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound shell
@rem Munge world specific sound data
@call soundmungedir _BUILD\sound\worlds\cor\%MUNGE_DIR% sound\worlds\cor sound\worlds\cor\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cor
@call soundmungedir _BUILD\sound\worlds\dag\%MUNGE_DIR% sound\worlds\dag sound\worlds\dag\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dag
@call soundmungedir _BUILD\sound\worlds\dea\%MUNGE_DIR% sound\worlds\dea sound\worlds\dea\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dea
@call soundmungedir _BUILD\sound\worlds\end\%MUNGE_DIR% sound\worlds\end sound\worlds\end\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound end
@call soundmungedir _BUILD\sound\worlds\fel\%MUNGE_DIR% sound\worlds\fel sound\worlds\fel\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound fel
@call soundmungedir _BUILD\sound\worlds\gal\%MUNGE_DIR% sound\worlds\gal sound\worlds\gal\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gal
@call soundmungedir _BUILD\sound\worlds\geo\%MUNGE_DIR% sound\worlds\geo sound\worlds\geo\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound geo
@call soundmungedir _BUILD\sound\worlds\hot\%MUNGE_DIR% sound\worlds\hot sound\worlds\hot\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hot
@call soundmungedir _BUILD\sound\worlds\kam\%MUNGE_DIR% sound\worlds\kam sound\worlds\kam\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kam
@call soundmungedir _BUILD\sound\worlds\kas\%MUNGE_DIR% sound\worlds\kas sound\worlds\kas\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kas
@call soundmungedir _BUILD\sound\worlds\mus\%MUNGE_DIR% sound\worlds\mus sound\worlds\mus\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound mus
@call soundmungedir _BUILD\sound\worlds\myg\%MUNGE_DIR% sound\worlds\myg sound\worlds\myg\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound myg
@call soundmungedir _BUILD\sound\worlds\nab\%MUNGE_DIR% sound\worlds\nab sound\worlds\nab\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound nab
@call soundmungedir _BUILD\sound\worlds\pol\%MUNGE_DIR% sound\worlds\pol sound\worlds\pol\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound pol
@call soundmungedir _BUILD\sound\worlds\spa\%MUNGE_DIR% sound\worlds\spa sound\worlds\spa\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound spa
@call soundmungedir _BUILD\sound\worlds\tan\%MUNGE_DIR% sound\worlds\tan sound\worlds\tan\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tan
@call soundmungedir _BUILD\sound\worlds\tat\%MUNGE_DIR% sound\worlds\tat sound\worlds\tat\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tat
@call soundmungedir _BUILD\sound\worlds\uta\%MUNGE_DIR% sound\worlds\uta sound\worlds\uta\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound uta
@call soundmungedir _BUILD\sound\worlds\yav\%MUNGE_DIR% sound\worlds\yav sound\worlds\yav\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound yav
@call soundmungedir _BUILD\sound\worlds\hero\%MUNGE_DIR% sound\worlds\hero sound\worlds\hero\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hero

@rem EDIT THE TWO LINES BELOW TO POINT TO YOUR MOD BY REPLACING SND WITH YOUR WORLD ABBREVIATION
@call soundmungedir _BUILD\sound\worlds\TES\%MUNGE_DIR% sound\worlds\TES sound\worlds\TES\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound TES
xcopy _LVL_%MUNGE_PLATFORM%\sound\* %BF2_SOUNDPATH%GameData\addon\TES\data\_LVL_PC\Sound\ /Y

@goto exit
:noplatform
@echo Platform must be specified as the first argument
:exit
Last edited by modmaster13 on Fri May 29, 2015 1:25 pm, edited 1 time in total.
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 LVL won't munge

Post by Anakin »

Have you tried my soundfiles from the assets??
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound LVL won't munge

Post by modmaster13 »

Anakin wrote:Have you tried my soundfiles from the assets??
No I have not.

Ok, I just downloaded it. I used your files, I got the lvl to munge in the _LVL_PC/Sound folder, but i got this mungelog message:
Hidden/Spoiler:
soundflmunge.exe : Warning : Files line 3 and 4 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias atst_leg_up02
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 5 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias atst_leg_up03
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 6 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias atst_leg_up04
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 7 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias atst_leg_up05
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 8 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias atst_leg_up06
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 15 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA01
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 16 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA02
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 17 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA03
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 18 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA04
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 19 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA05
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 20 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerA06
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 22 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB01
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 23 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB02
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 24 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB03
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 25 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB04
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 26 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB05
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 27 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerB06
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 29 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC01
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 30 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC02
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 31 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC03
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 32 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC04
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 33 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC05
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 34 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_layerC06
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 36 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_low01
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 37 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_low02
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 38 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias fs_walker_low03
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 42 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias wpn_atat_chinBlaster_fire
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
soundflmunge.exe : Warning : Files line 3 and 43 reference the same source file c:\windows\media\chord.wav. atst_leg_up01 will alias wpn_atst_headBlaster_fire
- while munging C:\BF2_ModTools\data_TES\Sound\worlds\tes\tescw.sfx
Here's my tescw.sfx file:
Hidden/Spoiler:
// AT Walker Common -ATAT ATST ATTE -------------------------

..\..\global\effects\hyd_walker01.wav atst_leg_up01 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker02.wav atst_leg_up02 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker03.wav atst_leg_up03 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker04.wav atst_leg_up04 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker05.wav atst_leg_up05 -resample xbox 22050 pc 22050
..\..\global\effects\hyd_walker06.wav atst_leg_up06 -resample xbox 22050 pc 22050

//------------------------------------------------------------------------------------


// AT Walker Footsteps XBOX and PC ATTE ATAT ATST----------------------------------

..\..\global\effects\fs_walker_layerA01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerA06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_layerB01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerB06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_layerC01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC03.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC04.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC05.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_layerC06.wav -resample xbox 22050 pc 22050

..\..\global\effects\fs_walker_low01.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_low02.wav -resample xbox 22050 pc 22050
..\..\global\effects\fs_walker_low03.wav -resample xbox 22050 pc 22050

// ----- ATST Weapons --------------------------------------------------------------------------------------

..\..\gcw\effects\wpn_atat_chinBlaster_fire.wav -resample xbox 22050 pc 44100
..\..\gcw\effects\wpn_atst_headBlaster_fire.wav -resample xbox 22050 pc 44100
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Sound LVL won't munge

Post by thelegend »

These errors mean nothing. They won't cause any problems. Does your soundfile work now?
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound LVL won't munge

Post by modmaster13 »

thelegend wrote:These errors mean nothing. They won't cause any problems. Does your soundfile work now?
My tes.lvl is 3 kb in size, when it should be 10 kb. I put it into GameData\addon\TES\data\_LVL_PC\sound and there's no sound ingame. I used Anakin's sound asset files to help me, and so far they got the lvl to munge.



Oh and in the _LVL_PC/Sound folder, is the tes.lvl supposed to have a tes.lvl.req (Or any other files for tes)?


Here's my updated files if they're of any help to figure this out.

soundmunge.bat
Hidden/Spoiler:
@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\tes\%MUNGE_DIR% sound\worlds\tes sound\worlds\tes\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tes

@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
munge.bat
Hidden/Spoiler:
@REM WARNING: enabledelayedexpansion means ! is a special character,
@REM which means it isn't available for use as the mungeapp recursive
@REM wildcard character. Use the alternate $ instead.
@setlocal enabledelayedexpansion

@set MUNGE_ROOT_DIR=..\..
@if not "%1"=="" set MUNGE_PLATFORM=%1
@if %MUNGE_PLATFORM%x==x set MUNGE_PLATFORM=PC
REM @if "%MUNGE_BIN_DIR%"=="" (
@set MUNGE_BIN_DIR=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin
@set PATH=%CD%\..\..\..\ToolsFL\Bin;%PATH%
@echo MUNGE_BIN_DIR=!MUNGE_BIN_DIR!
REM)

@rem convert to lower case
set MUNGE_PLATFORM=pc

@set BANKOPT=-template -stub c:\windows\media\chord.wav
@set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%

@set LOCAL_MUNGE_LOG="%CD%\%MUNGE_PLATFORM%_MungeLog.txt"
@if "%MUNGE_LOG%"=="" (
@set MUNGE_LOG=%LOCAL_MUNGE_LOG%
@if exist %LOCAL_MUNGE_LOG% ( del %LOCAL_MUNGE_LOG% )
)
@rem echo ********************************************************************* >> %MUNGE_LOG%
@rem echo Sound\munge.bat %MUNGE_PLATFORM% >> %MUNGE_LOG%
@rem echo MUNGE_BIN_DIR=%MUNGE_BIN_DIR% >> %MUNGE_LOG%
@rem echo ********************************************************************* >> %MUNGE_LOG%

@cd ..\..

@if not exist _LVL_%MUNGE_PLATFORM% mkdir _LVL_%MUNGE_PLATFORM%
@if not exist _LVL_%MUNGE_PLATFORM%\Sound mkdir _LVL_%MUNGE_PLATFORM%\Sound


@call soundmunge.bat %MUNGE_PLATFORM%
@if %SOUNDCLEANLVL%x==1x @del /S /Q _BUILD\sound\*.lvl & @call soundmunge.bat %MUNGE_PLATFORM%

@if /i not "%SOUNDLVL%"=="" (
@for %%A in (%SOUNDLVL%) do @if /i "%%A"=="global" @goto buildglobalbank
@goto skipglobalbank
)
:buildglobalbank
@rem Build a global sound bank...
@set BANKLIST=
@for /R %%A in (*.sfx) do @set BANKLIST=!BANKLIST! %%A
@for /R %%A in (*.asfx) do @set BANKLIST=!BANKLIST! %%A
@if %SOUNDLOG%x==1x ( @set SOUNDOPT=-verbose & @set SOUNDLOGOUT=%LOGDIR%\SoundBankLog.txt ) else ( @set SOUNDOPT= & @set SOUNDLOGOUT=NUL )

@if not %MUNGE_PLATFORM%==pc goto skipglobalbank
@echo Munging common.bnk, this could take a while...
@soundflmunge -platform %MUNGE_PLATFORM% -banklistinput %BANKLIST% -bankoutput _LVL_%MUNGE_PLATFORM%\Sound\common.bnk -checkdate -resample -compact nowarning -checkid noabort -relativepath %SOUNDOPT% 2>>%MUNGE_LOG% 1>>%SOUNDLOGOUT%

:skipglobalbank

@cd _BUILD\Sound

@REM If the munge log was created locally and has anything in it, view it
@if not %MUNGE_LOG%x==%LOCAL_MUNGE_LOG%x goto skip_mungelog
@set FILE_CONTENTS_TEST=
@if exist %MUNGE_LOG% for /f %%i in (%MUNGE_LOG:"=%) do @set FILE_CONTENTS_TEST=%%i
@if not "%FILE_CONTENTS_TEST%"=="" ( Notepad.exe %MUNGE_LOG% ) else ( if exist %MUNGE_LOG% (del %MUNGE_LOG%) )

:skip_mungelog

@rem convert to upper case
@if %MUNGE_PLATFORM%==pc set MUNGE_PLATFORM=PC
@if %MUNGE_PLATFORM%==xbox set MUNGE_PLATFORM=XBOX
@if %MUNGE_PLATFORM%==ps2 set MUNGE_PLATFORM=PS2

@endlocal
TESc_con.lua
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}



--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

conquest:Start()

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()

ReadDataFile("ingame.lvl")


SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo


ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:sound\\tes.lvl;tescw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")
ReadDataFile("SIDE\\imp.lvl",
"imp_walk_atst")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")


-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 1) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:TES\\TES.lvl", "TES_conquest")
ReadDataFile("dc:TES\\TES.lvl", "TES_conquest")
SetDenseEnvironment("false")




-- Sound

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")

voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1_emt")

SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)

SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")

SetAmbientMusic(REP, 1.0, "rep_yav_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_yav_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_yav_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_yav_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_yav_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_yav_amb_end", 2,1)

SetVictoryMusic(REP, "rep_yav_amb_victory")
SetDefeatMusic (REP, "rep_yav_amb_defeat")
SetVictoryMusic(CIS, "cis_yav_amb_victory")
SetDefeatMusic (CIS, "cis_yav_amb_defeat")

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")


--OpeningSateliteShot
AddCameraShot(0.908386, -0.209095, -0.352873, -0.081226, -45.922508, -19.114113, 77.022636);

AddCameraShot(-0.481173, 0.024248, -0.875181, -0.044103, 14.767292, -30.602322, -144.506851);
AddCameraShot(0.999914, -0.012495, -0.004416, -0.000055, 1.143253, -33.602314, -76.884430);
AddCameraShot(0.839161, 0.012048, -0.543698, 0.007806, 19.152437, -49.802273, 24.337317);
AddCameraShot(0.467324, 0.006709, -0.883972, 0.012691, 11.825212, -49.802273, -7.000720);
AddCameraShot(0.861797, 0.001786, -0.507253, 0.001051, -11.986043, -59.702248, 23.263165);
AddCameraShot(0.628546, -0.042609, -0.774831, -0.052525, 20.429928, -48.302277, 9.771714);
AddCameraShot(0.765213, -0.051873, 0.640215, 0.043400, 57.692474, -48.302277, 16.540724);
AddCameraShot(0.264032, -0.015285, -0.962782, -0.055734, -16.681797, -42.902290, 129.553268);
AddCameraShot(-0.382320, 0.022132, -0.922222, -0.053386, 20.670977, -42.902290, 135.513001);
end
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Sound LVL won't munge

Post by thelegend »

Hm..I know it's not written in the tutorial but it would probably work if you'll add the imp_walk_atst.snd from Sounds/gcw into your tes folder. I had the same problem and it didn't work because I have missed the .snd file in my sound .lvl.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound LVL won't munge

Post by modmaster13 »

thelegend wrote:Hm..I know it's not written in the tutorial but it would probably work if you'll add the imp_walk_atst.snd from Sounds/gcw into your tes folder. I had the same problem and it didn't work because I have missed the .snd file in my sound .lvl.
I tried that and oh my god it worked! :D I've been trying for so long to get sounds to work :cpu:. This will help me out with my future mods. Thank you so much! :bowdown:
Post Reply