Post by DarkPikachu on Feb 5, 2011 20:55:04 GMT -5
this template is for use with viewing brawl's TEX0 files:
template name: "_tex0.xml"
please refer to the Basic Knowledge thread for further instructions on what to do
note: this template is not yet finished and will be UD-ing...
(there's still a few unk's)
<?xml version="1.0"?>
<!DOCTYPE binary_file_format SYSTEM "BinaryFileFormat.dtd">
<binary_file_format name="TEX0" type_name="" comment="" expr="{this.name.name} ({this.header.width} X {this.header.height}) [{this.header.format}]" default_byte_order="big" default_read_only="false" default_char_set="ansi">
<struct name="header" type_name="" comment="" expr="(length: {this.data_off})">
<data type="string" name="magic" format="ascii" len="4" display=""/>
<data type="int" name="str_tbl_off" format="unsigned" len="4" display=""/>
<data type="int" name="num_images" format="unsigned" len="4" display=""/>
<data type="int" name="unk" format="unsigned" len="4" display=""/>
<data type="int" name="data_off" format="unsigned" len="4" display=""/>
<data type="int" name="str_off" format="unsigned" len="4" display=""/>
<data type="int" name="tmp3" format="unsigned" len="4" display=""/>
<data type="int" name="width" format="unsigned" len="2" display=""/>
<data type="int" name="height" format="unsigned" len="2" display=""/>
<data type="int" name="format" format="unsigned" len="4" display=""/>
<data type="int" name="channels" format="unsigned" len="4" display=""/>
<data type="none" name="pad" len="data_off - 40"/>
</struct>
<jump offset="header.data_off" comment="" origin="start">
<data type="none" name="data" len="header.str_tbl_off - header.data_off"/>
</jump>
<jump offset="header.str_off - 1" comment="" origin="start">
<struct name="name" type_name="" comment="" expr="">
<data type="int" name="str_len" format="unsigned" len="1" display=""/>
<data type="string" name="name" format="ascii" len="str_len" display=""/>
</struct>
</jump>
<data type="none" name="none"/>
</binary_file_format>
template name: "_tex0.xml"
please refer to the Basic Knowledge thread for further instructions on what to do
note: this template is not yet finished and will be UD-ing...
(there's still a few unk's)