Difference between revisions of "FF8/FileFormat TDW"
< FF8
Jump to navigation
Jump to search
my_wiki>Myst6re |
m (4 revisions imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
By myst6re. | By myst6re. | ||
− | == font == | + | == font == |
For the field, this is a file for the japanese PSX version only, it adds text characters. In the PC version, the file ''sysfnt.tdw'' in main.fs is used to know the width of each character, the texture part is not used (you can find the used texture in sysfnt.tex in menu.fs). | For the field, this is a file for the japanese PSX version only, it adds text characters. In the PC version, the file ''sysfnt.tdw'' in main.fs is used to know the width of each character, the texture part is not used (you can find the used texture in sysfnt.tex in menu.fs). | ||
− | {| | + | {| class="wikitable" |
− | ! | + | ! Offset |
− | ! | + | ! Size |
− | ! | + | ! Data |
|- | |- | ||
| 0 | | 0 | ||
Line 20: | Line 20: | ||
| offsetWidths | | offsetWidths | ||
| offsetData - offsetWidths | | offsetData - offsetWidths | ||
− | | [[# | + | | |
+ | [[#Character_widths|Character widths]] | ||
|- | |- | ||
| offsetData | | offsetData | ||
| varies | | varies | ||
− | | [[#Texture|Texture (TIM)]] | + | | |
+ | [[#Texture|Texture (TIM)]] | ||
|} | |} | ||
− | === Character widths === | + | === Character widths === |
Each width is 4 bits (two widths per byte). | Each width is 4 bits (two widths per byte). | ||
− | === Texture === | + | === Texture === |
Texture is a [[PSX/TIM_format|TIM file]] with 8 colors: dark grey, grey, yellow, red, green, blue, purple and white. | Texture is a [[PSX/TIM_format|TIM file]] with 8 colors: dark grey, grey, yellow, red, green, blue, purple and white. | ||
''TODO: Explain the palette mechanism in japanese version (16 pal instead of 8).'' | ''TODO: Explain the palette mechanism in japanese version (16 pal instead of 8).'' |
Latest revision as of 05:24, 23 May 2019
By myst6re.
font
For the field, this is a file for the japanese PSX version only, it adds text characters. In the PC version, the file sysfnt.tdw in main.fs is used to know the width of each character, the texture part is not used (you can find the used texture in sysfnt.tex in menu.fs).
Offset | Size | Data |
---|---|---|
0 | 4 bytes | Offset to widths (always 8) |
4 | 4 bytes | Offset to data |
offsetWidths | offsetData - offsetWidths | |
offsetData | varies |
Character widths
Each width is 4 bits (two widths per byte).
Texture
Texture is a TIM file with 8 colors: dark grey, grey, yellow, red, green, blue, purple and white.
TODO: Explain the palette mechanism in japanese version (16 pal instead of 8).