Hitman Contracts TEX

From XentaxWiki
Jump to: navigation, search

TEX

  • Format Type : data file – Texture images
  • Endian Order : Little Endian
  • uk - unknown variable, applicable to the section it’s in.

Format Specifications

Header

uint32 {4}   - address of Table 1
uint32 {4}   - address of Table 2
uint32 {4}   - 0x0000 0003
uint32 {4}   - 0x0000 0004

Table 1

{ repeat 2048 times
uint32 {4}   - if > 0, address (T#A)
}

Table 2

{ repeat 2048 times
uint32 {4}   - if > 0, address (T#B)
}

Address T#A

uint32 {4}   - recLength
uint32 {4}   - recFormat, image format (reversed text) RGBA, PALN, DXT1, DXT3
uint32 {4}   - recFormat, repeated
uint32 {4}   - uk4
uint16 {2}   - Height
uint16 {2}   - Width
uint32 {4}   - noSubMips, number of sub images
uint32 {4}   - uk7
uint32 {4}   - uk8
uint32 {4}   - uk9
string {var} – texName, image name
byte {1}     - 0x00, text deliminator
{ repeat ‘noSubMips’ times
uint32 {4}   - mipLength, length of image data
{recFormat = RGBA
{ repeat ‘mipLength’ times
byte {1}     - red
byte {1}     - green
byte {1}     - blue
byte {1}     - alpha
}
}
{recFormat = PAL
{ repeat ‘mipLength’ times
byte {1}     - refColour, reference in palette
}
uint32 {4}   - noColour, number of colours in palette
{ repeat ‘noColour’ times
byte {1}     - blue
byte {1}     - green
byte {1}     - red
byte {1}     - alpha
}
}
{recFormat = DXT1
}
{recFormat = DXT3
}
}

Address T#B

uint32 {4}   - nREC
{ repeat ‘nREC’ times
uint32 {4}   - uk1
}


MultiEx BMS Script

Not written yet

Notes and Comments

The DXT1 and DXT3 formats are Microsoft formats and are on their website.

Compatible Programs

None Yet