XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Nov 16, 2018 3:59 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Tips and Resources on reading .bnk files
PostPosted: Fri Nov 02, 2018 11:46 pm 
Offline
ultra-n00b

Joined: Sun Oct 04, 2015 6:57 pm
Posts: 4
Has thanked: 1 time
Have thanks: 0 time

Hello! So, I've been trying my damnedest to figure this out, going on four days now of researching and fiddling with it, and I've, to an extent, got some of it, but I'm at a loss for reading what is inside sections. I'm not exactly caring for extracting any files here, as I'm dealing with an Init. I've been able to halfway half-ass an understanding of it, but I don't really *know* what I'm doing... It's more a case of, "well, that worked... but *how*?" My biggest frame of reference is, of course, this:

http://wiki.xentax.com/index.php/Wwise_SoundBank_(*.bnk)#HIRC_section

Now, I can understand the identifier of the sections, that part is simple enough, and I can manually find the length of a section by selecting the start of it, up to the start of the next identifier. But, what confuses me is everything actually inside the section. The HIRC is the biggest thing I'm lost on. For the general format of the HIRC, it says this:

Quote:
48 49 52 43 -- HIRC
uint32: length of section
uint32: number of objects
FOR EACH (object) {
byte: single byte identifying type of object
uint32: length of object section (= 4-byte id field and additional bytes)
uint32: id of this object
byte[]: additional bytes, depending on type of object and section length
} END FOR



I understand the first portion just fine - that is the identifier of the section, HIRC, where the section starts. But the thing that is really throwing me off is the unit32. What exactly does it mean here by "uint32: length of section" and "uint32: number of objects"? I know that uint32 is an unsigned int that is 4 bytes long, but I don't know how to apply that here to find the length of the section and the number of objects, not to even mention all the rest at the moment. I have the same issue with the BKHD, where it says "uint32: length of section", "uint32: version number of this SoundBank", and "uint32: id of this SoundBank" (though what I'm trying to tinker with isn't in there, it's the HIRC, but just as a means of figuring it out, I've been looking at it). I simply have no idea what this means, here, I don't know how to get the length, or the id, or anything, really, from uint32.

If it wasn't obvious enough, I'm new to playing with .bnks, which is why I've tried researching so much on it, but I am just at a complete loss with the uint32 and how to find - or use - that whatsoever. I'm used to .lua and (rudimentary).xml coding, but reading this is just out of my spectrum at the moment. If anyone has any tips, advice, or any additional resources, I'd really appreciate it. Thank you.

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Tips and Resources on reading .bnk files
PostPosted: Sat Nov 03, 2018 5:42 am 
Offline
advanced

Joined: Fri Mar 02, 2018 3:05 am
Posts: 71
Has thanked: 0 time
Have thanks: 2 times
Try extracting files that produce proper names for the files instead of numbers, I get that when extracting games that use this sound system.


Top
 Profile  
 
 Post subject: Re: Tips and Resources on reading .bnk files
PostPosted: Sat Nov 03, 2018 6:29 pm 
Offline
ultra-n00b

Joined: Sun Oct 04, 2015 6:57 pm
Posts: 4
Has thanked: 1 time
Have thanks: 0 time
Puterboy1 wrote:
Try extracting files that produce proper names for the files instead of numbers, I get that when extracting games that use this sound system.


Therein lies my problem, here. I've been able to do that for other .bnks, but for the Init - or at least, this Init - there are no actual extractable files in here; it's all settings. I haven't been able to get anything out of this .bnk. Specially, it's acoustic effects and volume - so reverbs, echoes, stuff like that, that simply *modifies* sounds in other existing Soundbanks. Unless... there's something I'm missing or doing wrong with extracting the Init, but I'm able to extract any other .bnk just fine.


Top
 Profile  
 
 Post subject: Re: Tips and Resources on reading .bnk files
PostPosted: Fri Nov 09, 2018 5:25 am 
Offline
beginner

Joined: Fri Jun 12, 2015 5:17 am
Posts: 24
Has thanked: 5 times
Have thanks: 0 time
Have you tried this: https://github.com/eXpl0it3r/bnkextr

Or this: https://github.com/Vextil/Wwise-Unpacker

Maybe these may help you a great deal.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: kenwandou and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group