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.

Need help with .DAT audio file from a Konami Gamecube game.

Featured Replies

  • Author
  • Localization

Metaphantom, posted Fri Feb 17, 2023 2:47 pm (75452)


The game in question is Captain Tsubasa Ougon Sedai No Chousen, a football RPG for the Gamecube released by Konami. I managed to extract these .dat files from the game's str.pac file somehow but I believe these .dat files contain the audio data from the game. I've tried to extract or play it using different ways but couldn't manage to get anywhere. I did try to import the raw data via Audacity and I can hear some of the audio but there's a lot of loud static noise on top which makes it inaudible. If someone can help me with how to extract or play the audio files, that would be amazing.

Here's a sample of one of the .dat files in question. Maybe somebody can have a look at it?

https://www.mediafire.com/file/i6i53s5y ... 4.dat/file
  • Author
  • Localization

BloodRaynare, posted Fri Feb 17, 2023 3:36 pm (75453)


Here's TXTH script to play your sample
You need a vgmstream's commandline tool/media player plugin to use this script below

Code:
channels = @0x04:BE
num_samples = @0x20:BE
sample_rate = @0x28:BE

codec = DSP
start_offset = 0xe0
coef_offset = 0x3c
coef_spacing = 0x20
coef_endianness = BE


Save the script above as ".dat.txth" and put it in the same directory as the dat files you've just extracted.

Note for foobar components: By default, it won't play any files with unsupported extension, so you must enable these options in the preference to making it work:

Image
  • Author
  • Localization

Metaphantom, posted Fri Feb 17, 2023 3:42 pm (75454)


OMG. You are a legend! It's working! I can't thank you enough as to how much I've been wanting to extract this game's audio. You have my thanks x 1000!
  • Author
  • Localization

Metaphantom, posted Fri Feb 17, 2023 4:11 pm (75455)


I'm very thankful for you to help me with this, and pretty much 90% of the dat files I'm able to play. But there's a couple of them which I'm unable to using your method. Would you be able to look into it and let me know what's the issue with these ones?

One of the files in question is this one: https://www.mediafire.com/file/5kyxdtbw ... 1.dat/file

Once again, very grateful for your help.
  • Author
  • Localization

BloodRaynare, posted Sat Feb 18, 2023 12:38 am (75460)


Uh oh, I think I might have hit a roadblock here. You see, the format doesn't have offset/size fields for each sounds, only start-end sample ranges (Sort of like cue sheets for BIN/CUE files). And due to the limitation (or rather, unimplemented stuff) of the TXTH script, looks like the extraction might be impossible for now unless vgmstream implements something like sample_start/sample_end variable.
  • Author
  • Localization

Metaphantom, posted Sat Feb 18, 2023 11:52 am (75468)


Ah I see. Well, many thanks for your amazing help still. Because of you, I've managed to play about 95% of the sound files! That is more than enough to be very happy about! :D
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.