Page 1 of 1

Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Posted: Tue Mar 06, 2012 6:52 am
by ShinobiMao
Howdy. While there are many tools for these formats, I've only been able to churn out unplayable files from this.

The steps I've taken seem to extract the files okay, but when converting them from an unplayable.wav to .ogg with ww2ogg, it never comes out correctly.

I've uploaded the .bnk in question, as well as a sample .wav output by bnkextr.

http://filesmelt.com/dl/SB_WeaponBank_bnk.rar

http://filesmelt.com/dl/SB_WeaponBank.001_.wav

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Posted: Tue Mar 06, 2012 6:13 pm
by hcs
This uses the new encoder (aoTuV 6.03), ww2ogg by default uses the packed codebooks for the reference encoder (libvorbis). Support for using other files was added in ww2ogg 0.18.

Make sure you get 0.18 or later (newest is 0.19 and I'd recommend that), unzip the packed_codebooks_aoTuV_603.bin as well as the ww2ogg.exe, and run it like this on the .wavs:

ww2ogg --pcb packed_codebooks_aoTuV_603.bin BLAH.wav

One other note: In general you should use revorb ( http://www.hydrogenaudio.org/forums/lof ... 64328.html ) to fix up the granulepos in the files ww2ogg outputs. This is particularly important with short samples like this, otherwise decoders will make the wrong assumptions about the latency and cut off some of the first milliseconds. This is something ww2ogg should be able to do, but it has to handle so many different versions of WWise that it'd take a bit of work, and revorb already exists.

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Posted: Tue Mar 06, 2012 7:34 pm
by ShinobiMao
Thanks! I knew if it were you who replied that a solution would definitely be found. Everything worked perfectly and now I'm able to browse through the files with ease.
For anyone else who'd stumble across this post, you can make and run a .bat file to make it easier. Here's what I did:

Code: Select all

for %%a in (*.wav) do ( ww2ogg --pcb packed_codebooks_aoTuV_603.bin "%%a"
del "%%a" )
for %%a in (*.ogg) do revorb "%%a"
After the .bnk is extracted of course. I used bnkextr.

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Posted: Tue Oct 21, 2014 9:55 am
by MiLØ
I'm stuck at extracting BNK step. bnk files from Zone of the Enders HD Collection. Using bnkextr.exe and nothing happens. I'm doing it with 360 and PS3 version and nothing. I tried drag & drop and command line.

Maybe it's a different type of bnk? Please advice. Here are a couple of samples:

https://mega.co.nz/#!L0NERTKC!nxexgFYg1 ... ab6aug05ss

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Posted: Tue Nov 04, 2014 12:46 pm
by Vosvoy
MiLØ wrote:I'm stuck at extracting BNK step. bnk files from Zone of the Enders HD Collection. Using bnkextr.exe and nothing happens. I'm doing it with 360 and PS3 version and nothing. I tried drag & drop and command line.

Maybe it's a different type of bnk? Please advice. Here are a couple of samples:

https://mega.co.nz/#!L0NERTKC!nxexgFYg1 ... ab6aug05ss
I tested on global_sfx.bnk and it worked (222 sound files).

Just put that in the batch file:

Code: Select all

bnkextr.exe global_sfx.bnk /swap
It's not a different type of .bnk archive 'cause the header is correct and the STID not screwed. The byte order is just originally swapped so you got to swap it back to extract it.

Cordialy.