Skip to content

Commit

Permalink
Merge pull request #3 from Neinndall/v.0.4.1.0-Dev
Browse files Browse the repository at this point in the history
DBDAudioRenamer v0.4.1.0
  • Loading branch information
Neinndall authored Sep 8, 2023
2 parents 6baaded + 578ea67 commit 1e641cb
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 8,670 deletions.
38 changes: 4 additions & 34 deletions DBDAudioRenamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time
import shutil
import webbrowser
import subprocess

from datetime import datetime
from colorama import Fore
Expand All @@ -14,7 +15,7 @@
DIR_BNK = "Files/BNK"
DIR_WEM = "Files/WEM"
DIR_XML = "Files/XML"
DIR_OUTPUT = "Files/WEM/Output"
DIR_OUTPUT = "Files/Output"

# Menu Welcome
def display_welcome_menu():
Expand Down Expand Up @@ -127,43 +128,12 @@ def extract_bnk():
input()
display_extract_menu()

# Rename audio files with XML
# Rename audio files with a script
def rename_audio():
print("| A necessary directory called Output will be created!")
os.makedirs(DIR_OUTPUT, exist_ok=True)
print("Done!")
input()

print("| The XML files will be moved to the WEM directory.")
for root, _, files in os.walk(DIR_XML):
for file in files:
if file.endswith(".xml"):
print(f"| Moving file: {file} to: {DIR_WEM}")
shutil.move(os.path.join(root, file), DIR_WEM)
print("Done!")
input()
clear.screen()

print("| Important: It will ask you if you want to overwrite because the files already exist, the recommendation is: a")
input()

for root, _, files in os.walk(DIR_WEM):
for file in files:
if file.endswith(".xml"):
xml_file = os.path.join(root, file)
os.system(f"Tools\quickbms.exe Tools\scripts\parse.bms \"{xml_file}\" \"{DIR_OUTPUT}\"")
subprocess.run(["python", "Tools/scripts/renamer_parse.py"])
print()
print(f"Done! Audio files were renamed in {DIR_OUTPUT} folder.")
input()

print("| The XML files will be taken to their respective directory.")
for root, _, files in os.walk(DIR_WEM):
for file in files:
if file.endswith(".xml"):
print(f"| Moving file: {file} to: {DIR_XML}")
shutil.move(os.path.join(root, file), DIR_XML)
print("Done!")
input()
display_main_menu()

# Menu convert audio files (OGG and more...)
Expand Down
Binary file added Files/BNK/Snusnu_T22.bnk
Binary file not shown.
Binary file removed Files/BNK/ZombieCharacter.bnk
Binary file not shown.
1 change: 0 additions & 1 deletion Files/WEM/WEM FILES

This file was deleted.

5,606 changes: 0 additions & 5,606 deletions Files/XML/Global_Splash.xml

This file was deleted.

234 changes: 234 additions & 0 deletions Files/XML/Snusnu_T22.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="utf-8"?>
<SoundBanksInfo Platform="Windows" BasePlatform="Windows" SchemaVersion="12" SoundbankVersion="140">
<RootPaths>
<ProjectRoot>Z:\Wwise\DeadByDaylight\Content_Raw\Audio\Wwise_2021_1_12_Wormhole\</ProjectRoot>
<SourceFilesRoot>Z:\Wwise\DeadByDaylight\Content_Raw\Audio\Wwise_2021_1_12_Wormhole\.cache\Windows\</SourceFilesRoot>
<SoundBanksRoot>Z:\DeadByDaylight_Wormhole_UGS\UnrealEngine\DeadByDaylight\Content\WwiseAudio\Windows\</SoundBanksRoot>
<ExternalSourcesInputFile></ExternalSourcesInputFile>
<ExternalSourcesOutputRoot>Z:\Wwise\DeadByDaylight\Content_Raw\Audio\Wwise_2021_1_12_Wormhole\GeneratedSoundBanks\Windows</ExternalSourcesOutputRoot>
</RootPaths>
<SoundBanks>
<SoundBank Id="766358384" GUID="{E471590D-F4CB-40D9-BD43-9C2D152BABF1}" Language="SFX" Hash="965720799">
<ObjectPath>\SoundBanks\OBJECT\OBJECT_DECO\Snusnu_T22</ObjectPath>
<ShortName>Snusnu_T22</ShortName>
<Path>Snusnu_T22.bnk</Path>
<IncludedEvents>
<Event Id="1775344157" Name="AudioEvent_Snusnu_T22_Fall" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Fall" GUID="{0FDFBE8A-F7AD-49BE-BEA7-1E9C941E8ADD}" MaxAttenuation="1700." DurationType="OneShot" DurationMin="0.201662" DurationMax="0.251581">
<ExcludedMemoryFiles>
<File Id="736106564" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_01_9C86077E.wem</Path>
</File>
<File Id="865205933" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_03_8F0C5FC4.wem</Path>
</File>
<File Id="931051763" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_02_764C4C27.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
<Event Id="311462776" Name="AudioEvent_Snusnu_T22_Impact" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Impact" GUID="{767EF082-929D-4262-8164-9E6446BD33AB}" MaxAttenuation="1700." DurationType="OneShot" DurationMin="1.1375" DurationMax="1.1375">
<ExcludedMemoryFiles>
<File Id="13265864" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_02_7FA8D501.wem</Path>
</File>
<File Id="729213771" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_window_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_window_01_7FA8D501.wem</Path>
</File>
<File Id="961621390" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_gore_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_gore_01_9F8B3781.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
<Event Id="3142931032" Name="AudioEvent_Snusnu_T22_Rattle" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Rattle" GUID="{5B575270-30DD-481C-8E3E-CF50AF7C8C30}" MaxAttenuation="1700." DurationType="Infinite">
<ExcludedMemoryFiles>
<File Id="28305028" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_02_7FA8D501.wem</Path>
</File>
<File Id="302946907" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_07.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_07_7FA8D501.wem</Path>
</File>
<File Id="353884585" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_04.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_04_7FA8D501.wem</Path>
</File>
<File Id="523768643" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_03_7FA8D501.wem</Path>
</File>
<File Id="662525100" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_05.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_05_7FA8D501.wem</Path>
</File>
<File Id="768446736" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_01_7FA8D501.wem</Path>
</File>
<File Id="958938722" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_06.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_06_7FA8D501.wem</Path>
</File>
<File Id="1059062794" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_loop_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_loop_01_256CDB0F.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
<Event Id="24021733" Name="AudioEvent_Snusnu_T22_Scream" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Scream" GUID="{DC4910EF-B74B-4ABD-A863-EBFC736DEBBF}" MaxAttenuation="1700." DurationType="OneShot" DurationMin="0.895479" DurationMax="1.006458">
<ExcludedMemoryFiles>
<File Id="295532771" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_01_7FA8D501.wem</Path>
</File>
<File Id="325397874" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_03_7FA8D501.wem</Path>
</File>
<File Id="355794216" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_02_7FA8D501.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
<Event Id="1395529308" Name="AudioEvent_Snusnu_T22_Slip" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Slip" GUID="{8380CE80-0052-41B2-979D-B20488EB1A90}" MaxAttenuation="1700." DurationType="OneShot" DurationMin="2." DurationMax="2.">
<ExcludedMemoryFiles>
<File Id="648482672" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_01_7FA8D501.wem</Path>
</File>
<File Id="776770091" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_03_7FA8D501.wem</Path>
</File>
<File Id="862730760" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_02_7FA8D501.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
<Event Id="1498281864" Name="AudioEvent_Snusnu_T22_Stinger" ObjectPath="\Events\OBJECT\OBJ_DECO\Snusnu_T22\AudioEvent_Snusnu_T22_Stinger" GUID="{9333E43B-912A-467C-B69C-318A03D14041}" DurationType="OneShot" DurationMin="3.848667" DurationMax="3.848667">
<ExcludedMemoryFiles>
<File Id="763928449" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_stinger_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_stinger_01_7FA8D501.wem</Path>
</File>
</ExcludedMemoryFiles>
<AuxBusSends>
<AuxBus Id="1271754253" Name="MENU_OBJECT_AUX" ObjectPath="\Master-Mixer Hierarchy\Default Work Unit\MASTER\SFX\MENU\MENU_OBJECT\MENU_OBJECT_AUX" GUID="{DD8E4190-4DDE-48E2-9D3C-148F503A4966}"/>
</AuxBusSends>
</Event>
</IncludedEvents>
<IncludedMemoryFiles>
<File Id="13265864" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_02_7FA8D501.wem</Path>
</File>
<File Id="28305028" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_02_7FA8D501.wem</Path>
</File>
<File Id="295532771" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_01_7FA8D501.wem</Path>
</File>
<File Id="302946907" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_07.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_07_7FA8D501.wem</Path>
</File>
<File Id="325397874" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_03_7FA8D501.wem</Path>
</File>
<File Id="353884585" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_04.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_04_7FA8D501.wem</Path>
</File>
<File Id="355794216" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_scream_02_7FA8D501.wem</Path>
</File>
<File Id="523768643" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_03_7FA8D501.wem</Path>
</File>
<File Id="648482672" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_01_7FA8D501.wem</Path>
</File>
<File Id="662525100" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_05.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_05_7FA8D501.wem</Path>
</File>
<File Id="729213771" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_window_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_window_01_7FA8D501.wem</Path>
</File>
<File Id="736106564" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_01_9C86077E.wem</Path>
</File>
<File Id="763928449" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_stinger_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_stinger_01_7FA8D501.wem</Path>
</File>
<File Id="768446736" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_01_7FA8D501.wem</Path>
</File>
<File Id="776770091" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_03_7FA8D501.wem</Path>
</File>
<File Id="862730760" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_slip_02_7FA8D501.wem</Path>
</File>
<File Id="865205933" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_03.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_03_8F0C5FC4.wem</Path>
</File>
<File Id="931051763" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_02.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_fall_02_764C4C27.wem</Path>
</File>
<File Id="958938722" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_06.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_rdm_06_7FA8D501.wem</Path>
</File>
<File Id="961621390" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_gore_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_impact_gore_01_9F8B3781.wem</Path>
</File>
<File Id="1059062794" Language="SFX">
<ShortName>Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_loop_01.wav</ShortName>
<Path>SFX\Object\Obj_Deco\Snusnu_T22\sfx_snusnu_t22_rattle_loop_01_256CDB0F.wem</Path>
</File>
</IncludedMemoryFiles>
<GameParameters>
<GameParameter Id="1667051498" Name="AudioRTPC_Listener_Elevation_Object_Relative" ObjectPath="\Game Parameters\RTPC_WORLD\AudioRTPC_Listener_Elevation_Object_Relative" GUID="{A51BBEF3-A598-467B-ADA0-CBCC6E0BB4A4}"/>
</GameParameters>
</SoundBank>
</SoundBanks>
</SoundBanksInfo>
Loading

0 comments on commit 1e641cb

Please sign in to comment.