Difference between pages "Main Page" and "FF8/Menu tkmnmes"
(Difference between pages)
Jump to navigation
Jump to search
my_wiki>Sebanisu (basic file file structure for these files.) |
|||
Line 1: | Line 1: | ||
− | + | These files have a good deal of the Menu text. | |
− | + | ===Header=== | |
− | + | {| class="wikitable" | |
− | + | ! Type | |
− | == | + | ! Size |
− | + | ! Value | |
− | * [https:// | + | ! Description |
− | + | |- | |
− | + | | UInt16 | |
− | + | | 2 | |
+ | | Pad_Count | ||
+ | | Always '''16''' | ||
+ | |- | ||
+ | | UInt16[Pad_Count] | ||
+ | | 2 * Pad_count | ||
+ | | Paddings | ||
+ | | The padding value leads to start of string offsets | ||
+ | Can be '''0x00''' ignore those <br/> | ||
+ | First one is usually '''0x36''' | ||
+ | |} | ||
+ | ===String Offsets=== | ||
+ | {| class="wikitable" | ||
+ | ! Type | ||
+ | ! Size | ||
+ | ! Value | ||
+ | ! Description | ||
+ | |- | ||
+ | | UInt16 | ||
+ | | 2 | ||
+ | | Offset_Count | ||
+ | | Number of offsets before strings start | ||
+ | |- | ||
+ | | UInt16[Offset_Count] | ||
+ | | 2 * Offset_count | ||
+ | | Offsets | ||
+ | | The offset value points to start of a string | ||
+ | Can be '''0x00''' ignore those | ||
+ | |} | ||
+ | ===String=== | ||
+ | Strings end with '''0x00'''. [https://sourceforge.net/p/ifrit/code-0/HEAD/tree/trunk%20ifrit-code-0/Resources/textformat.ifr Strings are encoded].<br/> | ||
+ | '''[Start of string location]''' = '''[Start of file]''' + '''[Padding value]''' + '''[String offset value]''' |
Revision as of 05:59, 22 April 2019
These files have a good deal of the Menu text.
Header
Type | Size | Value | Description |
---|---|---|---|
UInt16 | 2 | Pad_Count | Always 16 |
UInt16[Pad_Count] | 2 * Pad_count | Paddings | The padding value leads to start of string offsets
Can be 0x00 ignore those |
String Offsets
Type | Size | Value | Description |
---|---|---|---|
UInt16 | 2 | Offset_Count | Number of offsets before strings start |
UInt16[Offset_Count] | 2 * Offset_count | Offsets | The offset value points to start of a string
Can be 0x00 ignore those |
String
Strings end with 0x00. Strings are encoded.
[Start of string location] = [Start of file] + [Padding value] + [String offset value]