Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[SOLVED] Harry Potter games (console) sound banks ("BNK" ident)

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Tue Feb 01, 2022 8:26 am (69537)


Hello everybody,

I'm again sitting at some HP games and once more stumbled upon those sound banks with header info in the archive TOC. The big problem with these is that every platform is a bit different in the size and information type for each stream.
Here are samples from GC, PS2 and Xbox: https://www.mediafire.com/file/t4ondfbg ... nk.7z/file
I'm fine with a script that just joins the header with the data so I can convert it afterwards. Any help is appreciated!
Thanks.
  • Author
  • Localization

AlphaTwentyThree, posted Fri Feb 04, 2022 3:04 pm (69624)


Nobody up for the task?
  • Author
  • Localization

aluigi, posted Fri Feb 04, 2022 6:50 pm (69635)


So this is the format that I covered in some way in harry_potter_sdt.bms but it's a total mess.
I pass ;)
  • Author
  • Localization

AlphaTwentyThree, posted Sat Feb 05, 2022 5:37 pm (69674)


Hehe, alright, I thought I'd give it a shot. ;)
I'll try to get somewhere with these tomorrow.
  • Author
  • Localization

AlphaTwentyThree, posted Thu Feb 10, 2022 5:19 pm (69802)


Status update

Luigi didn't lie in giving me the warning about the format being a mess. It's unbelievable to me how they implemented such a broken format into their engine... It's just inconsistent throughout with different header lengths, different offset markers that need a work-around, frequency sometimes missing to just name some of the problems.

I've been looking at the X-Box version for now as that platform gives me at least some clue as to what the variables mean. I've managed to extract archives with one and two files so far. Not getting them to play that is, only the raw data. There are two types of codecs: Xbox ADPCM (mono, 0x24 bit interleave) and some other form ADPCM (mono, 0x0f bit interleave). All streams seem to be channel-split, so the number of extracted files is double the number listed in the header. Additionally, the offset markers seem to point to the starting offset of the right channel, the left channel isn't mentioned anywhere. It's possible to calculate those offsets for the first and third stream. Once there are three streams present, I run into a problem as I haven't been able to figure out how to calculate the size of a single channel. Doesn't help that the streams don't start at padded offsets, so rounding isn't any option it seems.
For now, I'm asking for support for the second type of ADPCM I've encountered. Looking at the character distribution it could be IMA ADPCM but I'm not sure since I haven't encountered this structure before:

Image

I've attached a sample of streams extracted from one of the archives plus the origin archive. Has anybody seen this codec before and knows how to add a working header? txth would even be ok for now until I figure out how to construct a working header from the information in the archive's TOC.
  • Author
  • Localization

DKDave, posted Thu Feb 10, 2022 6:18 pm (69803)


Yeah, it's a pain. They play in Foobar/vgmstream - it says it's EAXA ADPCM v2.
  • Author
  • Localization

AlphaTwentyThree, posted Fri Feb 11, 2022 5:48 am (69814)


Wait, how did you get these to play?
  • Author
  • Localization

DKDave, posted Fri Feb 11, 2022 11:45 am (69819)


I just dropped them in and they play fine for me :-)
  • Author
  • Localization

AlphaTwentyThree, posted Sat Feb 12, 2022 6:52 am (69832)


Oh damn, didn't imagine they already added support for these in vgmstream. Welp, there goes my effort - won't invest in this anymore. ;) So: solved.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.