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.

The Croods Prehistoric Party [Wii U] HNK/FILES/RAW

Featured Replies

  • Author
  • Localization

Warthog1336, posted Sun Oct 28, 2018 12:30 pm (39927)


Hi! I need help automatically adding the corresponding DSP ADPCM header and the original filename to each headerless (*.raw) audio files.

In the game files, there's a "sound" folder containing all the *.RAW audio files (headerless) with dialogs, sound effects and music.

Each audio file finds his header and his proper filename inside the *.HNK files which can be found in the "hunkfiles" folder.

For instance, headers list start at offset 0xB7FA20 in the "global.hnk" files.

I must say "global.hnk" isn't the only one that stores the header. There are a lot of other HNK files. This one seems to contain what I need: music headers.

The first one is for "4acda574.raw". We can see its original filename "MUS_slower_loop_01.mus" and just before, the header with coefficients. Without these coefficients, I can't create a GENH header in order to play those because it is unsupported DSP. Plus, each file has a different header.

Music specs:
- 32kHz sample rate
- 2 channels

So my question is: is it possible to add the proper header for each RAW files and to rename them into their original name?

GLOBAL.HNK/GLOBAL.FILES: https://mega.nz/#!29dBCa7Q!hX7TAgvL-iM- ... juO8OWmivs
4ACDA574.RAW: https://mega.nz/#!vkEzQYCL!l1p-W7gjHpHC ... VQP3A4s9oo

Thanks!
  • Author
  • Localization

aaa801, posted Sun Oct 28, 2018 2:06 pm (39929)


This managed to extract the headers under the right names, havn't had any luck getting a usable media file however, likely because im unfamilar with audio formats
viewtopic.php?t=173
  • Author
  • Localization

Warthog1336, posted Sun Oct 28, 2018 2:45 pm (39932)


Thank you! The script correctly extracted the header part. The problem is that I'll have to manually add the header to the original file, which will take hours since I have to do it for 8000 files.
  • Author
  • Localization

aaa801, posted Sun Oct 28, 2018 4:36 pm (39936)


Warthog1336 wrote:
Thank you! The script correctly extracted the header part. The problem is that I'll have to manually add the header to the original file, which will take hours since I have to do it for 8000 files.


I tryed to add the header it extracted to the file but it wouldn't play, what should play this?
  • Author
  • Localization

Warthog1336, posted Sun Oct 28, 2018 4:51 pm (39937)


I created a GENH header with VGMToolbox with these settings

Codec: Nintendo GC DSP 4-bit ADPCM
Header skip: 0x9E
Frequency: 32000 Hz
Raw Data Size: 1
Channels: 2 (Stereo)
Interleave: 0x8000 (it's not the right interleave, I can't find it)
Loop: No Loops

Then I play the resulting GENH with vgmstream.
  • Author
  • Localization

aaa801, posted Sun Oct 28, 2018 4:57 pm (39938)


Yes but you are not giving me enough info here,
Where in the header are the coefficients etc that you are using to make the header.
  • Author
  • Localization

Warthog1336, posted Sun Oct 28, 2018 5:12 pm (39940)


The left channel coeff is at offset 0x40
Right channel 0x70
Coef type: Normal (Big Endian)
  • Author
  • Localization

Warthog1336, posted Mon Oct 29, 2018 4:16 pm (39958)


I found the block size which is 0xA000.

I added the headers manually for each file. Hope there will be a solution for the other games.
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.