Difference between revisions of "Persona 3 and 4/BMD (File Format)"

From Data Crystal
Jump to: navigation, search
m (ThatTrueStruggle moved page Persona 3 and 4:BMD (File Format) to Persona 3 and 4/BMD (File Format): Cleaning.)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
The BMD format contains text for Persona 3/4. The format is in Big Endian.
+
The BMD format contains text for Persona 3/4. The format is in little endian.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 7: Line 7:
 
! Description
 
! Description
 
|-
 
|-
| 0x00
+
| <font color="blue">0x00</font>
| Char
+
| 1 byte
| Probably an identifier, always 0x7
+
| Chunk ID
 
|-
 
|-
| 0x04
+
| <font color="blue">0x04</font>
| Word
+
| 2 bytes
 
| Size of the file
 
| Size of the file
 
|-
 
|-
| 0x08
+
| <font color="blue">0x08</font>
| Dword
+
| 4 bytes
 
| MSG1 Magic Identifier
 
| MSG1 Magic Identifier
 
|-
 
|-
| 0x18
+
| <font color="blue">0x0c</font>
| Char
+
| 4 bytes
 +
| Null
 +
|-
 +
| <font color="blue">0x10</font>
 +
| 2 bytes
 +
| End of text table
 +
|-
 +
| <font color="blue">0x14</font>
 +
| 2 bytes
 +
| Amount of offsets in offset table
 +
|-
 +
| <font color="blue">0x18</font>
 +
| 1 byte
 
| Amount of entries
 
| Amount of entries
 +
|-
 +
| <font color="blue">0x1c</font>
 +
| 4 bytes
 +
| 20000
 
|}
 
|}
  
 
After the header, there is a table with each entry being 2 bytes.
 
After the header, there is a table with each entry being 2 bytes.
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| <font color="blue">0x20</font>
 +
| 4 bytes
 +
| Null
 +
|-
 +
| <font color="blue">0x24</font>
 +
| 2 bytes
 +
| Text offset relative from offset 20
 +
|}
  
First byte is the size of the text and last byte is the identifier.
+
After the table, the text entries begin.
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| <font color="blue">0x00; but can be up to 0x18</font>
 +
| 18 bytes at most
 +
| Identifier of the text
 +
|-
 +
| <font color="blue">0x18</font>
 +
| 2 bytes
 +
| Probably an identifier or maybe unused
 +
|-
 +
| <font color="blue">0x20</font>
 +
| 2 bytes
 +
| Most likely unused
 +
|}

Latest revision as of 00:36, 10 May 2015

The BMD format contains text for Persona 3/4. The format is in little endian.

Offset Size Description
0x00 1 byte Chunk ID
0x04 2 bytes Size of the file
0x08 4 bytes MSG1 Magic Identifier
0x0c 4 bytes Null
0x10 2 bytes End of text table
0x14 2 bytes Amount of offsets in offset table
0x18 1 byte Amount of entries
0x1c 4 bytes 20000

After the header, there is a table with each entry being 2 bytes.

Offset Size Description
0x20 4 bytes Null
0x24 2 bytes Text offset relative from offset 20

After the table, the text entries begin.

Offset Size Description
0x00; but can be up to 0x18 18 bytes at most Identifier of the text
0x18 2 bytes Probably an identifier or maybe unused
0x20 2 bytes Most likely unused