Hitman Contracts TEX: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Ra4Oy1
mNo edit summary
Line 7: Line 7:
<tt><b>
<tt><b>
==== Header ====
==== Header ====
uint32 {4}&nbsp;&nbsp; - address of Table 1<br>
uint32 {4}
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

Revision as of 03:22, 7 June 2007

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}