April 6Apr 6 Hello I am trying to extract the bins for Kamen Rider Atsume here some of the BINs c7.zip Edited April 6Apr 6 by Sirduckdude
April 6Apr 6 Author Just now, MrIkso said: Some bins is png images, start after 22 bytes data Ah any idea how to open them?
April 6Apr 6 Supporter Do a binary cut from %PNG to IEND@B, (included). guess a name Edited April 6Apr 6 by shak-otay
April 6Apr 6 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 6Apr 6 by AngelYan
April 6Apr 6 Localization Solution 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)
April 6Apr 6 Author 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)
April 7Apr 7 Supporter 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 7Apr 7 by shak-otay replaced debug version
Create an account or sign in to comment