Welcome Guest [Log In] [Register]
Welcome to the Heavenly Host Elementary School: A Corpse Party Forum. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Opening a .bnd file?
Topic Started: May 29, 2016, 10:44 pm (311 Views)
logonin
Member Avatar
Corpse Party Fanboy
Hi I am trying to extract some sound files from a game for my programming project I am working on (just to clarify the extracting is not actually my project). I was able to get the game dump online and open the "cpk" file where everything is stored. But now I am stuck. There is a bunch of files in formats I have never heard of. One of them is "sound.bnd" so I can only assume that's where are all the quotes are. But I have no idea how to open a .bnd file. If anyone knows how to can you please tell me how? Thanks.
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
Sometimes the file extension itself is irrelevant, especially when they're ripped out of game packages. A better place to start would be finding out what the header says, if it says anything, using a hex editor.

Things to look out for would be identifiers like:

Spoiler: click to toggle

Where CRI shows it's a Criware format, and the first 5 bytes identify the type. The 3 there at 0x04 show it's an ADX file. That's an example taken from 2U's sound files.

Another thing could be if it's an encrypted or compressed file, such as:

Spoiler: click to toggle

Where the first 5 bytes show the uncompressed file size, as well as a break in the form of "FF" (which I'm not entirely if the FF is more significant or if it IS just a break?) And it still has an identifier here as well: "MIG001XPSP" This is an example of GIM image taken from 11eyes

If the header is gibberish or has no obvious patterns like:

Spoiler: click to toggle

It may actually be a container that you need a specific program to open.. (or a binary file... but I'm pretty sure something named "sounds" wouldn't be a binary file...) at which case... you're beyond me, sorry.

Posted Image
Offline Profile Quote Post Goto Top
 
logonin
Member Avatar
Corpse Party Fanboy
Shinohara_Seiko
May 30, 2016, 12:19 am
Sometimes the file extension itself is irrelevant, especially when they're ripped out of game packages. A better place to start would be finding out what the header says, if it says anything, using a hex editor.

Things to look out for would be identifiers like:

Spoiler: click to toggle

Where CRI shows it's a Criware format, and the first 5 bytes identify the type. The 3 there at 0x04 show it's an ADX file. That's an example taken from 2U's sound files.

Another thing could be if it's an encrypted or compressed file, such as:

Spoiler: click to toggle

Where the first 5 bytes show the uncompressed file size, as well as a break in the form of "FF" (which I'm not entirely if the FF is more significant or if it IS just a break?) And it still has an identifier here as well: "MIG001XPSP" This is an example of GIM image taken from 11eyes

If the header is gibberish or has no obvious patterns like:

Spoiler: click to toggle

It may actually be a container that you need a specific program to open.. (or a binary file... but I'm pretty sure something named "sounds" wouldn't be a binary file...) at which case... you're beyond me, sorry.
So I actually found a program that was able to open the file :) Now I have over 2000 wav files that won't play. I looked into it using notepad and here is what came up

Posted Image

Do you know what kind of program I need to get these working?
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
Progress!
Not immediately, but that's weird for wave files. Things that come to mind could be corruption during unpacking, or some sort of encryption/compression again. Unfortunately, notepad doesn't show much.

Could you throw one or two somewhere I could download it and take a look?

Posted Image
Offline Profile Quote Post Goto Top
 
logonin
Member Avatar
Corpse Party Fanboy
Shinohara_Seiko
May 30, 2016, 5:08 pm
Progress!
Not immediately, but that's weird for wave files. Things that come to mind could be corruption during unpacking, or some sort of encryption/compression again. Unfortunately, notepad doesn't show much.

Could you throw one or two somewhere I could download it and take a look?
Thank you so much :) I forgot to mention that I got the audio files from an awb file so that could be the file. I am trying to upload the awb file but is taking a LONG time so for now here are a few of the empty sound clips I found inside the awb file

https://mega.nz/#!cA5HRRaJ!ruj_jXBUn_rfd40KjMaFqhaYLkg-vtTvVu09_g2Jfbo

https://mega.nz/#!gUo2AKjQ!CfvWE0jqOvQOsu12U08OCx76OsRQWihj0oncywaWN7Q

https://mega.nz/#!wdYXnbxT!_cZ9TVtfeOpcIePWIKZzIo--v1Qdg8tpQQ3dhz-xAkI

https://mega.nz/#!sEB3RTLA!TI-AYgCRh_J4t8sVoqBRFLzjPndk4SzZwXlc5UeUQoY

thanks again.

EDIT- The awb file is finally up https://mega.nz/#!VQJmHDLR!fPrX8vvKlhmeuELhAFqgagffEUkUmt9YJv2SJ-1ZZhw
Edited by logonin, May 30, 2016, 6:40 pm.
Offline Profile Quote Post Goto Top
 
Rohzek
Member Avatar
Leader
First, it doesn't really mean anything I guess, but I find it weird that the awb file reports .dat files...
but extracting it with the script I have automatically outputs wave files haha.

Spoiler: click to toggle


But more importantly, comparing those wave files to standard wave files seems to have a lot more.. uhm.. noise for the lack of a better term.

Spoiler: click to toggle

Which makes me thing it might actually be compressed or encrypted in some way. And the error my player gives me is a "parsing error" implying it doesn't recognize the file type as wave despite the header... Which fits the idea of compression/encryption too. There doesn't seem to be any obvious signs of a type anywhere so the quickest way would be just... running it through some algorithms and see if it matches any?

You say this is related in some way to a school project? How long do you have to figure this out?

Posted Image
Offline Profile Quote Post Goto Top
 
logonin
Member Avatar
Corpse Party Fanboy
Shinohara_Seiko
May 30, 2016, 8:18 pm
First, it doesn't really mean anything I guess, but I find it weird that the awb file reports .dat files...
but extracting it with the script I have automatically outputs wave files haha.

Spoiler: click to toggle


But more importantly, comparing those wave files to standard wave files seems to have a lot more.. uhm.. noise for the lack of a better term.

Spoiler: click to toggle

Which makes me thing it might actually be compressed or encrypted in some way. And the error my player gives me is a "parsing error" implying it doesn't recognize the file type as wave despite the header... Which fits the idea of compression/encryption too. There doesn't seem to be any obvious signs of a type anywhere so the quickest way would be just... running it through some algorithms and see if it matches any?

You say this is related in some way to a school project? How long do you have to figure this out?
Thanks for the help. I also asked for help on a forum specifically for game hacking so hopefully they can shed some more light on this. Also this is not actually part of the project but I need the audio clips for my project. If I can't do it within the next few days I will just give up and rewrite the script for it but I must say so far this experience has taught me a lot more then the project itself has lol.
Edited by logonin, May 30, 2016, 8:42 pm.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Science Lab · Next Topic »
Add Reply