Hitman Contracts TEX: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ra4Oy1
mNo edit summary
imported>Ikskoks
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 7: Line 7:
<tt><b>
<tt><b>
==== Header ====
==== Header ====
uint32 {4}
uint32 {4}&nbsp;&nbsp; - address of Table 1<br>
uint32 {4}&nbsp;&nbsp; - address of Table 2<br>
uint32 {4}&nbsp;&nbsp; - 0x0000 0003<br>
uint32 {4}&nbsp;&nbsp; - 0x0000 0004<br>
 
==== Table 1 ====
: { repeat 2048 times <br>
:: uint32 {4}&nbsp;&nbsp; - if > 0, address (T#A) <br>
: } <br>
 
==== Table 2 ====
: { repeat 2048 times <br>
:: uint32 {4}&nbsp;&nbsp; - if > 0, address (T#B) <br>
: } <br>
 
==== Address T#A ====
: uint32 {4}&nbsp;&nbsp; - recLength<br>
: uint32 {4}&nbsp;&nbsp; - recFormat, image format (reversed text) RGBA, PALN, DXT1, DXT3 <br>
: uint32 {4}&nbsp;&nbsp; - recFormat, repeated <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red">uk4</font> <br>
: uint16 {2}&nbsp;&nbsp; - Height<br>
: uint16 {2}&nbsp;&nbsp; - Width<br>
: uint32 {4}&nbsp;&nbsp; - noSubMips, number of sub images <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red">uk7</font> <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red">uk8</font> <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red">uk9</font> <br>
: string {var} – texName, image name <br>
: byte {1} &nbsp;&nbsp;&nbsp; - 0x00, text deliminator<br>
: { repeat ‘noSubMips’ times
:: uint32 {4}&nbsp;&nbsp; - mipLength, length of image data<br>
:: {<font color="blue">recFormat = RGBA</font>
::: { repeat ‘mipLength’ times
:::: byte {1} &nbsp;&nbsp;&nbsp; - red<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - green<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - blue<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - alpha<br>
::: } <br>
:: } <br>
:: {<font color="blue">recFormat = PAL</font>
::: { repeat ‘mipLength’ times
:::: byte {1} &nbsp;&nbsp;&nbsp; - refColour, reference in palette<br>
::: } <br>
::: uint32 {4}&nbsp;&nbsp; - noColour, number of colours in palette<br>
::: { repeat ‘noColour’ times
:::: byte {1} &nbsp;&nbsp;&nbsp; - blue<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - green<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - red<br>
:::: byte {1} &nbsp;&nbsp;&nbsp; - alpha<br>
::: } <br>
:: } <br>
:: {<font color="blue">recFormat = DXT1</font>
:: } <br>
:: {<font color="blue">recFormat = DXT3</font>
:: } <br>
: } <br>
 
==== Address T#B ====
: uint32 {4}&nbsp;&nbsp; - nREC<br>
: { repeat ‘nREC’ times
:: uint32 {4}&nbsp;&nbsp; - <font color="red">uk1</font> <br>
: } <br>
 
</b></tt>
 
 
=== MultiEx BMS Script ===
 
Not written yet<br><br>
 
=== Notes and Comments ===
 
The DXT1 and DXT3 formats are Microsoft formats and are on their website.
<br><br>
 
=== Compatible Programs ===
 
None Yet
 
 
[[Category:File Format]]

Latest revision as of 14:20, 10 January 2021

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