The Forum is up for sale: XeNTaX Forum looking for new owner

.bnk file any info on this file please

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
gallopinto
ultra-n00b
Posts: 8
Joined: Tue Jan 03, 2012 6:42 am
Has thanked: 4 times

.bnk file any info on this file please

Post by gallopinto »

The contents of this post was deleted because of possible forum rules violation.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 661 times
Contact:

Re: .bnk file any info on this file please

Post by aluigi »

have you already checked the rad game video tools?
they are the official players for the Bink files:
http://www.radgametools.com/bnkdown.htm
gallopinto
ultra-n00b
Posts: 8
Joined: Tue Jan 03, 2012 6:42 am
Has thanked: 4 times

Re: .bnk file any info on this file please

Post by gallopinto »

aluigi,

I did try rad tools. That player works with files where the extension is .BIK it does not work with this bnk file as I think its a container for a wave file. I got a hex editor open up the file and got a some info that said BKHD DIDX DATA RIFX.BSÇWAVEfmt k9yÂ..data.BSq. i got that info im just not sure what it means, do you?
Axsis
advanced
Posts: 48
Joined: Fri Oct 21, 2011 12:55 pm
Has thanked: 2 times
Been thanked: 26 times

Re: .bnk file any info on this file please

Post by Axsis »

It's WWise bank file with big endian byte order and RIFX files in it (from xbox360, probably). Use this bms script to unpack such files. But in file you provided there is only one truncated RIFX file, so the real audio data is somewhere else.

Code: Select all

# WWise BNK unpacker. PC and X360 supported
IDString "BKHD"
Get SECTION_SIZE long
If SECTION_SIZE > 0xFFFF
 ReverseLong SECTION_SIZE
 Endian BIG
EndIf
GoTo SECTION_SIZE 0 SEEK_CUR
Get BNK_SIZE asize

Do
 GetDString SECTION_NAME 4
 Get SECTION_SIZE long
 If SECTION_NAME == "DIDX"
  SavePos DIDX_OFFSET
  Math FILES = SECTION_SIZE
  Math FILES /= 12
 ElseIf SECTION_NAME == "DATA"
  SavePos DATA_OFFSET
 EndIf
 GoTo SECTION_SIZE 0 SEEK_CUR
 SavePos POS
While POS < BNK_SIZE

GoTo DIDX_OFFSET
For I = 0 < FILES
 Get FID long
 Get FOFFSET long
 Get FSIZE long
 String FNAME p= "%08X.wav" FID
 Math FOFFSET += DATA_OFFSET
 Log FNAME FOFFSET FSIZE
Next I
gallopinto
ultra-n00b
Posts: 8
Joined: Tue Jan 03, 2012 6:42 am
Has thanked: 4 times

Re: .bnk file any info on this file please

Post by gallopinto »

Whoa, whoa. Are you telling there is no sound in that file?

Can I tell you how i found that file.
The file is from a wii game. (zumba fitness 2)


I opened the game with wii scrubber
+partition1
+ audio
+soundbanks some .bnks files
+songs ( all the songs are in that .bnk format song 1-44 just like the sample I put up.
+stream (.wem files with a long number. that iam sure are related to the .BNK files.

hopes this makes sense
tnx for the help btw.
Axsis
advanced
Posts: 48
Joined: Fri Oct 21, 2011 12:55 pm
Has thanked: 2 times
Been thanked: 26 times

Re: .bnk file any info on this file please

Post by Axsis »

gallopinto wrote: +stream (.wem files with a long number. that iam sure are related to the .BNK files.
is there a file with name like "104430967" or "2004695302"?
gallopinto
ultra-n00b
Posts: 8
Joined: Tue Jan 03, 2012 6:42 am
Has thanked: 4 times

Re: .bnk file any info on this file please

Post by gallopinto »

The contents of this post was deleted because of possible forum rules violation.
Axsis
advanced
Posts: 48
Joined: Fri Oct 21, 2011 12:55 pm
Has thanked: 2 times
Been thanked: 26 times

Re: .bnk file any info on this file please

Post by Axsis »

When you unpacked Song_027.bnk you've got the file with ID 06397D77 (06397D77.wav, which isn't wav actually).
06397D77 in hex is equal to 104430967 in dec, so the file 104430967.wem contain actual audio stream for file with ID 06397D77. I've seen this before in other games that uses WWise sound engine. Bad news is that I have no idea how to decode 104430967.wem, as I don't know what compression formats usually used in Wii games and what tools needed to decode them.
Just may say it's RIFX with big endian byte order and unknown compression - wFormatTag=0xFFFF.
gallopinto
ultra-n00b
Posts: 8
Joined: Tue Jan 03, 2012 6:42 am
Has thanked: 4 times

Re: .bnk file any info on this file please

Post by gallopinto »

Axsis wrote:When you unpacked Song_027.bnk you've got the file with ID 06397D77 (06397D77.wav, which isn't wav actually).
06397D77 in hex is equal to 104430967 in dec, so the file 104430967.wem contain actual audio stream for file with ID 06397D77. I've seen this before in other games that uses WWise sound engine. Bad news is that I have no idea how to decode 104430967.wem, as I don't know what compression formats usually used in Wii games and what tools needed to decode them.
Just may say it's RIFX with big endian byte order and unknown compression - wFormatTag=0xFFFF.
tnx for the big help. can you give me something to research, to help the cause. should I find out what compression formats are used in wii?

thinking outloud here. tell me if iam wrong
The audio is not in wave format.
the audio is compressed and don't know with what and we don't know what type of audio format the files are in. hmm

should I look into that Bnk file or is it the .wem file that I want open?
Last edited by gallopinto on Wed Jan 11, 2012 2:32 am, edited 1 time in total.
Axsis
advanced
Posts: 48
Joined: Fri Oct 21, 2011 12:55 pm
Has thanked: 2 times
Been thanked: 26 times

Re: .bnk file any info on this file please

Post by Axsis »

There several topics on this forum related to wwise. Search for "wwise" and "rifx" and try tools and scripts given in that topics.
Post Reply