Sirduckdude Posted April 6 Posted April 6 (edited) Hello I am trying to extract the bins for Kamen Rider Atsume here some of the BINs c7.zip Edited April 6 by Sirduckdude
Members MrIkso Posted April 6 Members Posted April 6 Some bins is png images, start after 22 bytes data
Sirduckdude Posted April 6 Author Posted April 6 Just now, MrIkso said: Some bins is png images, start after 22 bytes data Ah any idea how to open them?
Engineers shak-otay Posted April 6 Engineers Posted April 6 (edited) Do a binary cut from %PNG to IEND@B, (included). guess a name Edited April 6 by shak-otay
AngelYan Posted April 6 Posted April 6 (edited) File Format: bd.bin (Big-Endian) Here is the structure for anyone who needs it: File structure: 4 bytes - Total Image Data Size 2 bytes - Image Count 6 bytes - Padding 4 bytes - Image 1 Size 4 bytes - Image 2 Size 2 bytes - Unknown (Raw PNG 1 data) (Raw PNG 2 data) Note: The PNG files are not compressed or encrypted. You can just grab the hex data at the bottom of the file based on the sizes defined in the header, copy the raw bytes, and save them directly as .png. They will open perfectly. Edited April 6 by AngelYan
Members Solution NeoGT404 Posted April 6 Members Solution Posted April 6 Here's the actual file structure: #pragma endian big struct e { u32 off; u32 size; char data_start[4] @ (parent.bp+off); char data_end[4] @ (parent.bp+off+size-4); }; struct a { u32 data_size; u16 c; u64 bp = 6 + c*8; e e[c]; }; a a @ 0; and I've also added support for it in my extractor: https://github.com/smiRaphi/UniPyX (https://github.com/smiRaphi/UniPyX/commit/b9b75292ff49a0b8d33d5371081fe1545762653c)
Sirduckdude Posted April 6 Author Posted April 6 2 hours ago, NeoGT404 said: Here's the actual file structure: #pragma endian big struct e { u32 off; u32 size; char data_start[4] @ (parent.bp+off); char data_end[4] @ (parent.bp+off+size-4); }; struct a { u32 data_size; u16 c; u64 bp = 6 + c*8; e e[c]; }; a a @ 0; and I've also added support for it in my extractor: https://github.com/smiRaphi/UniPyX (https://github.com/smiRaphi/UniPyX/commit/b9b75292ff49a0b8d33d5371081fe1545762653c) this is cool! but I really don't know how to use python (using 3.11.1)
Members NeoGT404 Posted April 6 Members Posted April 6 then read the readme and use google or something like that
Engineers shak-otay Posted April 7 Engineers Posted April 7 (edited) Testapp, checked one bin only, so don't blame me, just in case. Apart from 28 valid pngs bx.bin contains 58 "empty" png blocks (no pixel data), example: CollectPNGs.zip Edited April 7 by shak-otay replaced debug version
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now