Get Original Wwise Filenames With SoundbanksInfo.xml

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Get Original Wwise Filenames With SoundbanksInfo.xml

Post by Mygoshi »

Hello, I recently bought Outlast 2 on PC and I saw that, in the same folders of the BNK containers, there was a file called "SoundbanksInfo.xml", that contains the original filenames of each files in the BNKs. The problem is that when I extract the WEM/Wwise, I always get name like this: 81202919.wwise
Is it possible to replace all those boring filenames into original filenames with the XML file? Thanks in advance.
Last edited by Mygoshi on Wed Feb 17, 2021 6:13 pm, edited 1 time in total.
StreamThread
Posts: 54
Joined: Fri May 27, 2016 2:28 pm

Re: Get Original Wwise Filenames With SoundbanksInfo.xml

Post by StreamThread »

If SoundbanksInfo.xml have something like sounds ID's linked to sound sources, on which game engine find using sound files, and BNK containers having same sound ID's which exact point to *.wwise sound file, then is not hard write a 're-namer' tool or script on any programming language.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Get Original Wwise Filenames With SoundbanksInfo.xml

Post by Mygoshi »

Ok, thanks for the answer. So, what do I have to do exactly?
Last edited by Mygoshi on Wed Feb 17, 2021 6:14 pm, edited 1 time in total.
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: Get Original Wwise Filenames With SoundbanksInfo.xml

Post by ponaromixxx »

Mygoshi wrote:Hello, I recently bought Outlast 2 on PC and I saw that, in the same folders of the BNK containers, there was a file called "SoundbanksInfo.xml", that contains the original filenames of each files in the BNKs. The problem is that when I extract the WEM/Wwise, I always get name like this : 81202919.wwise
Is it possible to replace all those boring filenames into original filenames with the XML file? Is this hard? Thanks in advance.


1) First, poison this script with .bnk

Code: Select all

# extracts sound files from Wwise *.bnk soundbanks
# (c) 2013-10-28 by AlphaTwentyThree of Xentax
# script for QuickBMS http://quickbms.aluigi.org

idstring "BKHD"
get SIZE_HEADER long
savepos MYOFF
math MYOFF += SIZE_HEADER
get FSIZE asize
if MYOFF == FSIZE
   print "bnk is empty"
   cleanexit
endif
goto MYOFF
idstring "DIDX"
get SIZE_DIDX long
set FILES SIZE_DIDX
math FILES /= 0xc
set BIAS MYOFF # complete header
math BIAS += SIZE_DIDX
math BIAS += 16
get BNAME basename
for i = 1 <= FILES
   get DIDX long
   get OFFSET long
   math OFFSET += BIAS
   get SIZE long
   set NAME DIDX
   string NAME p= "0x%08x" NAME
   string NAME += ".wav"
   log NAME OFFSET SIZE
next i


2) All files from the archive should be near. Run this WwiseSoundrenamer.exe program and specify the path to extracted .wav, then click Convert Wav 2 Ogg & revorb, when the conversion is finished.

3) Click Rename Oggs. After the file's id is renamed to the original names.

WwiseSoundtools.zip
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Get Original Wwise Filenames With SoundbanksInfo.xml

Post by Mygoshi »

I appreciate you're trying to help, so thanks, but turns out it gives offset names instead of proper ID's, so when it renames, it makes "NoNamefound_X" filenames. I tried to use Ravioli Extractor to get proper filenames and then use the software, but it doesn't rename those.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Get Original Wwise Filenames With SoundbanksInfo.xml

Post by AlphaTwentyThree »

Yes, necro-post but my script here does the work for you:
viewtopic.php?f=17&t=7982&p=68463#p35700