Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Structure of BIN files inside bpilot.pak
- * BIN files start with the string 'ATMB'.
- * Next 4 bytes indicate the number of entries inside the file (little endian), which equals the number of entries in the pointer table.
- * Each pointer is 4 bytes long (little endian).
- * There's no padding after the pointer table or at the end of the file.
- Each section pointed at by the table will contain one or several battle lines. Supposedly one line is meant to be used after the previous one.
- The structure of a line is as follows:
- bytes 0 - 3: 81 95 82 86 (visibly recognizable since it's SJIS for &f)
- bytes 4 - 7: 00 00 04 00 (maybe it's the duration of the line?)
- bytes 8 - 11: xx xx 00 00 where xx seems to indicate the portrait number for the character.
- bytes 12 - 19: all zeroes
- bytes 20 - 23: xx 00 00 00 where xx seems to indicate the order of the dialogue in the battle: 01 - standing still, 02 - action (not sure if there's more).
- bytes 24 - 25: 81 93 (% in SJIS)
- bytes 26 - 27: character's ID (same ID as in the character pictures)
- bytes 28 - 31: 81 95 82 96 (&v in SJIS)
- bytes 32 - 35: voice's ID
- bytes 36 - 37: flags for the voice? (apparently, always 0)
- bytes 38 - ?: Battle line. Inside a battle line, 0a indicates a carriage return.
- bytes ? - end: There's THREE possible ways of closing the structure:
- a) '0a' - means there's more battle lines in this section.
- b) '0a 0a 00' - means this is the last battle line in this section.
- c) '0a 00' - means it's the last battle line in the section AND the last section of the file.
- * The FIRST line section of the file (just after the pointer table) starts with a '0a'. The pointer in the table points at the 0a byte.
- * Sometimes, before bytes 24 - 25, there's this extra structure:
- bytes 0 - 3: 81 95 82 86 (&f)
- bytes 4 - 5: ?? (usually 01 00)
- bytes 6 - 7: ?? (usually 01 00)
- bytes 8 - 11: ??
- This section might indicate a change of target for the camera or maybe the start of an animation.
- It's present in some combination attacks like Operation V and in normal attacks like Photon Beam or shooting the 180mm cannon with a Ground Gundam.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement