Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Neinndall authored Oct 17, 2022
1 parent bb383bc commit 1e1a611
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 15 deletions.
120 changes: 105 additions & 15 deletions Run_This.bat
Original file line number Diff line number Diff line change
@@ -1,51 +1,141 @@
@echo off
title DBDAudioRenamer v0.2.0 for BNK, XML files by Th3Nigh7mare
title DBDAudioRenamer v0.2.1 for BNK, XML files by Th3Nigh7mare
color b
FOR %%F IN ("Files\BNK\*.BNK") DO ("Tools\bnkextr.exe" "%%F" /nodir & MOVE "Files\BNK\*.wem" "Files\WEM")

set dir_bnk=Files\BNK
set dir_wem=Files\WEM

for %%f in ("%dir_bnk%\*.bnk") do ("Tools\bnkextr.exe" "%%f" /nodir & move "%dir_bnk%\*.wem" "%dir_wem%")
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: BNK Files was extracted in Files!
echo. ::: BNK Files was extracted in Files!
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause
mkdir "Files/WEM/Renamed"

cls
set /p dir_folder=Do you want a dir to be created in "%dir_wem%" called renamed [Y/N]?

if "%dir_folder%"=="Y" goto yes
if "%dir_folder%"=="y" goto yes

if "%dir_folder%"=="N" goto nop
if "%dir_folder%"=="n" goto nop

:yes
mkdir "%dir_wem%\renamed"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The renamed directory was created!
echo. ::: The renamed directory was created!
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause
MOVE "Files\XML\*.XML" "Files\WEM\"

:move_files_renamed

set dir_wem=Files\WEM
set dir_xml=Files\XML

MOVE "%dir_xml%\*.XML" "%dir_wem%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The XML files was moved to "Files/Wem" folder
echo. ::: All the XML files was moved to %dir_wem% folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
FOR /R %%F IN (*.xml) DO ("Tools\quickbms.exe" "Tools\scripts\New_parse.bms" "%%F" "Files\WEM\Renamed")
cls
echo.Note: It will ask you if you want to overwrite because the files already exist, the recommendation is: r
pause

for /f %%b in ("%dir_wem%\*.XML") DO ("Tools\quickbms.exe" "Tools\scripts\New_parse.bms" "%%b" "Files\WEM\renamed")
pause

echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The Audio Files was renamed in "Files/WEM/renamed"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause

MOVE "%dir_wem%\*.XML" "%dir_xml%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The XML was moved to "%dir_wem%" folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause

CD Files/WEM/renamed
for /r %%b in ("/*.WEM") do ("../../../ww2ogg/ww2ogg.exe" "%%b" --pcb "../../../ww2ogg/packed_codebooks_aoTuV_603.bin")
pause

echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The Audio Files was converted to OGG and are located in "Files/WEM/renamed" folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause
exit

:nop
set /p dir_called=Then...what do you want the directory to be called?
mkdir "%dir_wem%\%dir_called%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The "%dir_wem%\%dir_called%" directory was created!
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause

:move_files_new

set dir_wem=Files\WEM
set dir_xml=Files\XML

MOVE "%dir_xml%\*.XML" "%dir_wem%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The Audio Files was renamed in "Files/Wem/Renamed"
echo. ::: All the XML files was moved to %dir_wem% folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
cls
echo.Note: It will ask you if you want to overwrite because the files already exist, the recommendation is: r
pause

for /f %%b in ("%dir_wem%\*.XML") do ("Tools\quickbms.exe" "Tools\scripts\New_parse.bms" "%%b" "Files\WEM\%dir_called%")
pause
MOVE "Files\WEM\*.XML" "Files\XML\"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The XML was moved to "Files/Wem" folder
echo. ::: The Audio Files was renamed in "Files/WEM/%dir_called%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
CD Files/WEM/Renamed
FOR /R %%F IN ("*.WEM") DO ("../../../ww2ogg\ww2ogg.exe" "%%F" --pcb "../../../ww2ogg/packed_codebooks_aoTuV_603.bin")
pause

MOVE "%dir_wem%\*.XML" "%dir_xml%"
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The XML was moved to "%dir_wem%" folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause

CD Files/WEM/%dir_called%/
for /r %%b in ("*.WEM") do ("../../../ww2ogg/ww2ogg.exe" "%%b" --pcb "../../../ww2ogg/packed_codebooks_aoTuV_603.bin")
PAUSE
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
echo. :::
echo. ::: The Audio Files was converted to OGG and are located in "Files/Wem/Renamed" folder
echo. ::: The Audio Files was converted to OGG and are located in "Files/WEM/%dir_called%" folder
echo. ::: _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
echo. ::: \____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\\____\
pause
pause
exit
19 changes: 19 additions & 0 deletions changes v0.2.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DBD AudioRenamer v0.2

IMPROVEMENTS AND FEATURES
- Adjusted the WEM audio file parser script to not go to infinity with XML files
- More precise information to the user
- Replaced wwise_parse to another
- Added several lines to the BAT file
- Added BNK audio file to TEST the tool
- Better mobility between cmd to avoid transforming WEM files to inappropriate OGG
- Parser did not allow choosing multiple XML files and the tool stopped
- Minor adjustments


DBD AudioRenamer v0.2.1

IMPROVEMENTS AND FEATURES
- The addresses by the BATCH string have been improved so that it does not cause errors
- Added the ability to name outputs
- Added a help note in the phase of renaming .ogg files

0 comments on commit 1e1a611

Please sign in to comment.