|
#25
|
|||
|
|||
|
CallBefore.bat / Can a similar process be set up for Control Resonant? Could I get some help with this? Im not very skilled at these kinds of things.
CallBefore.bat -------------------------------------------------------------------------------------- @ECHO off TITLE DiskSpan GUI Compressor SETLOCAL EnableDelayedExpansion EnableExtensions :: --------------------------------------------------------------------------------- :: ----------------------------- VARIABLES SETTINGS -------------------------------- :: --------------------------------------------------------------------------------- CD /D "%~dp0" SET "Counter=1" :StoreLoop IF !Counter! LEQ 9 IF "%~1" EQU "" ENDLOCAL && EXIT /B SET "ARG!Counter!=%~1" && SHIFT && SET /A "Counter+=1" IF !Counter! LEQ 20 GOTO StoreLoop :MapVariables SET "GameName=!ARG1!" && SET "DataFile=!ARG2!" FOR %%a IN ("!ARG3!") DO SET "GameDir=%%~fa" && SET "BackupDir=%%~fa (Backup)" FOR %%a IN ("!ARG4!") DO SET "OutputDir=%%~fa" && FOR %%a IN ("!ARG5!") DO SET "SetupDir=%%~fa" FOR %%a IN ("!ARG6!") DO SET "MediaDir=%%~fa" && FOR %%a IN ("!ARG7!") DO SET "MainDir=%%~fa" && FOR %%a IN ("!ARG8!") DO SET "TempDir=%%~fa" SET "GameIndex=1" && SET "DataIndex=1" && SET "MediaIndex=1" && FOR /F "tokens=1,2,3" %%a IN ("!ARG9!") DO ( SET /A "GameIndex=%%a" 2>nul && SET /A "DataIndex=%%b" 2>nul && SET /A "MediaIndex=%%c" 2>nul ) FOR /F "tokens=3" %%a IN ( 'REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\Shell Folders" /v "Personal" 2^>nul' ) DO SET "UserDocs=%%a" FOR %%a IN ("%~dp0.") DO SET "SourceDir=%%~fa" && IF "!SourceDir:~-1!" EQU "" SET "SourceDir=!SourceDir:~0,-1!" SET "DatabaseDir=!MainDir!\Resources\DATABASE" && SET "BaseDir=!MainDir!\Resources\Win64" :: --------------------------------------------------------------------------------- :: !GameName! = name of the current game :: !DataFile! = name of the current data file :: !SourceDir! = directory of call after/before .bat/.cmd/.exe file :: !BackupDir! = predefined backup directory :: !GameDir! = current game directory :: !OutputDir! = output directory :: !SetupDir! = setup files folder directory :: !MediaDir! = current media directory like: DISK_1 :: !MainDir! = application DiskSpan_GUI.exe {src} directory :: !DatabaseDir! = database files directory :: !BaseDir! = compressors base directory :: !TempDir! = application DiskSpan_GUI.exe {tmp} directory :: !UserDocs! = user documents directory :: !GameIndex! = index of the current game :: !DataIndex! = index of the current data file :: !MediaIndex! = index of the current media directory :: --------------------------------------------------------------------------------- :: -------------------------------- USER SETTINGS ---------------------------------- :: --------------------------------------------------------------------------------- :Start CLS ECHO. ECHO.---------------------------------------------------------------------- ECHO. The following process uses WEM Packer by SYMM ECHO. https://fileforums.com/showthread.ph...819#post509819 ECHO. ECHO. This step could take a bit longer than usual, approximately up to 2 hours. ECHO. ECHO. Backup files will be made here: ECHO. !BackupDir!\ ECHO.---------------------------------------------------------------------- ECHO. Do you want to process sound files? [Y/N] ECHO.---------------------------------------------------------------------- ECHO. CHOICE /C NY /N IF errorlevel 1 SET "Wwise=Y" IF errorlevel 2 SET "Wwise=N" :Example IF EXIST "!DatabaseDir!\Control Resonant\Lists\Rebuild_example_for_installers (Setup INI).txt" START "" "!DatabaseDir!\Control Resonant\Lists\Rebuild_example_for_installers (Setup INI).txt" :Copy IF NOT EXIST "!BackupDir!\data_pack2\pc" MKDIR "!BackupDir!\data_pack2\pc" IF NOT EXIST "!GameDir!\XTool.exe" COPY /Y "!BaseDir!\PRE\XTool_2020\XTool.exe" "!GameDir!\XTool.exe" >nul IF "%Wwise%"=="Y" ( IF NOT EXIST "!GameDir!\wem-unpacker.exe" COPY /Y "!BaseDir!\TOOLS\WEM\wem-unpacker.exe" "!GameDir!\wem-unpacker.exe" >nul :Wwise CLS CD /D "!GameDir!" SET /A "FileList.Count=17" SET "FileList[1].Name=base-de-000.rmdblob SET "FileList[2].Name=stream0-de-000.rmdblob SET "FileList[3].Name=base-es-000.rmdblob SET "FileList[4].Name=stream0-es-000.rmdblob SET "FileList[5].Name=base-fr-000.rmdblob SET "FileList[6].Name=stream0-fr-000.rmdblob SET "FileList[7].Name=base-it-000.rmdblob SET "FileList[8].Name=stream0-it-000.rmdblob SET "FileList[9].Name=base-ja-000.rmdblob SET "FileList[10].Name=stream0-ja-000.rmdblob SET "FileList[11].Name=base-ptbr-000.rmdblob SET "FileList[12].Name=stream0-ptbr-000.rmdblob SET "FileList[13].Name=base-zhcn-000.rmdblob SET "FileList[14].Name=stream0-zhcn-000.rmdblob SET "FileList[15].Name=base-generic-000.rmdblob SET "FileList[16].Name=stream0-generic-001.rmdblob SET "FileList[17].Name=stream0-generic-002.rmdblob FOR /L %%i IN (1, 1, !FileList.Count!) DO IF EXIST "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" ( IF NOT EXIST "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" MKDIR "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" IF NOT EXIST "!BackupDir!\data_pack2\pc\!FileList[%%i].Name!" ECHO Copying "..\data_pack2\pc\!FileList[%%i].Name!", please wait... IF NOT EXIST "!BackupDir!\data_pack2\pc\!FileList[%%i].Name!" COPY /Z /Y "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" "!BackupDir!\data_pack2\pc" CALL "!BaseDir!\PRE\XTool_2020\XTool.exe" precomp -mwwise -x"!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" CALL "!DatabaseDir!\_COMMON\CALL\ANNO_CallBefore.ex e" /FUNC=SMALL /PATH="!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" /INCL=*.raw /SIZE=102400 CALL "!DatabaseDir!\_COMMON\CALL\ANNO_CallBefore.ex e" /FUNC=REN /PATH="!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" /OLD=*.raw /NEW=*.wem CALL "!BaseDir!\PRE\XTool_2020\XTool.exe" erase "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract\*" "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" "!GameDir!\cr_wwise.xtl" ECHO.------------------------------------------------------------------------------------------------------ ) ) :Bink SET /A "FileList.Count=5" SET "FileList[1].Name=base-generic-002.rmdblob SET "FileList[2].Name=base-generic-004.rmdblob SET "FileList[3].Name=stream0-generic-010.rmdblob SET "FileList[4].Name=stream0-generic-012.rmdblob SET "FileList[5].Name=stream0-generic-014.rmdblob FOR /L %%i IN (1, 1, !FileList.Count!) DO IF EXIST "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" ( IF NOT EXIST "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" MKDIR "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" IF NOT EXIST "!BackupDir!\data_pack2\pc\!FileList[%%i].Name!" ECHO Copying "..\data_pack2\pc\!FileList[%%i].Name!", please wait... IF NOT EXIST "!BackupDir!\data_pack2\pc\!FileList[%%i].Name!" COPY /Z /Y "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" "!BackupDir!\data_pack2\pc" CALL "!BaseDir!\PRE\XTool_2020\XTool.exe" precomp -mbink -x"!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract" "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" CALL "!BaseDir!\PRE\XTool_2020\XTool.exe" erase "!GameDir!\data_pack2\pc\!FileList[%%i].Name!_extract\*" "!GameDir!\data_pack2\pc\!FileList[%%i].Name!" "!GameDir!\cr_bink.xtl" ECHO.------------------------------------------------------------------------------------------------------ ) IF "%Wwise%"=="Y" ( :WemTool CLS TITLE Processing audio files, please wait... REM"!BaseDir!\TOOLS\WEM\wem-packer.exe" -s -czstd-20 "!GameDir!" ) :End ENDLOCAL EXIT /B |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Games Are For Kids | JoyBoy | Chit Chat | 83 | 16-11-2021 14:28 |
| CorePack Compression methods ? Help | ramazan19833 | Conversion Tutorials | 34 | 09-08-2018 06:51 |
| i got the email in the mail about copying ps2 games | EVOEvo | PS2 Games | 7 | 21-11-2003 07:56 |
| Self-booting games on an older Japanese DC? | Named | DC Games | 1 | 26-09-2003 17:48 |
| Having Problems Burning Numerous *Recent* Games....Help is Appreciated | Protosstic | PSX Games | 2 | 15-01-2002 21:27 |