Difference between revisions of "FTEX (File Format)"

From MK8
Jump to navigation Jump to search
m
Line 2: Line 2:
  
 
The '''FTEX''' texture format is a format for textures which appears as a subfile of a '''[[BFRES (File Format)|BFRES file]]'''.
 
The '''FTEX''' texture format is a format for textures which appears as a subfile of a '''[[BFRES (File Format)|BFRES file]]'''.
 +
 +
== Header (FTEX) ==
 +
 +
Every FTEX file begins with an 0xC0 byte '''FTEX''' header.
 +
{| class="wikitable"
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x00
 +
| 4
 +
| "'''FTEX'''" File identifier, ASCII string.
 +
|-
 +
| 0x04
 +
| 4
 +
| {{Unknown|'''Unknown''' has value '''0x01''' in examined files. May be version number.}}
 +
|-
 +
| 0x08
 +
| 4
 +
| {{'''Texture Width''' Width of the texture in pixels.}}
 +
|-
 +
| 0x0C
 +
| 4
 +
| {{'''Texture Height''' Height of the texture in pixels.}}
 +
|-
 +
| 0x10
 +
| 4
 +
| {{Unknown|'''Unknown''' has value '''0x01''' in examined files. May be a count of some form.}}
 +
|-
 +
| 0x0
 +
| 0x90
 +
| '''{{Unknown|'''Unknown''' - This is a big block of rarely changing data. More investigation later. }}
 +
 +
|-
 +
| 0xC0
 +
| colspan="2" {{Unknown|End of '''FTEX''' header}}
 +
|}
 +
 +
Incomplete header documentation. Last 8 words (32 bytes) seem to change per file. Offset 160 (dec) from FTEX header always seems to be zero, followed by a single byte (value of 1), 3 padding bytes, then a relative offset to the string table, then a relative offset to UnknownDataA, a relative offset to UnknownDataB, a relative offset to unknown DataC, and then two more unknowns (usually zero).
 +
 +
  
 
[[Category:File Format]]
 
[[Category:File Format]]

Revision as of 06:27, 25 January 2015

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling. Please do not add speculation here.

The FTEX texture format is a format for textures which appears as a subfile of a BFRES file.

Header (FTEX)

Every FTEX file begins with an 0xC0 byte FTEX header.

Offset Size Description
0x00 4 "FTEX" File identifier, ASCII string.
0x04 4 Unknown has value 0x01 in examined files. May be version number.
0x08 4 Template:'''Texture Width''' Width of the texture in pixels.
0x0C 4 Template:'''Texture Height''' Height of the texture in pixels.
0x10 4 Unknown has value 0x01 in examined files. May be a count of some form.
0x0 0x90 Unknown - This is a big block of rarely changing data. More investigation later.
0xC0 End of FTEX header

Incomplete header documentation. Last 8 words (32 bytes) seem to change per file. Offset 160 (dec) from FTEX header always seems to be zero, followed by a single byte (value of 1), 3 padding bytes, then a relative offset to the string table, then a relative offset to UnknownDataA, a relative offset to UnknownDataB, a relative offset to unknown DataC, and then two more unknowns (usually zero).