texHeaders.bin File Format

From Bohemia Interactive Community
Revision as of 22:59, 26 June 2010 by Mikero (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
struct TexHeader.bin
{
 MimeType "0DHT" ; // NOT ascizz. '0' = 0x30
 ulong    version; // 1
 ulong    SomeOffset; //ce 01 00 00 
 TexBody  TexBodies[until end of file];
};


TexBody
{
 TexBegin TexBegin;
 Asciiz   *PaaFile;
 TexEnd   TexEnd;
};
TexBegin
{
 ulong Always1;
 ulong Always0;
 float Floats[5];
 ulong AlwaysDefault;//0xFFFFFFFF // probably RGBA color specs
 ulong Always0;
 ulong AlwaysDefault;//0xFFFFFFFF
 ulong FlagBytes;    // 01 01 00 10 typical
 ulong SameCount;    // see note
 ulong AnotherCount;
 byte  Always1;
 byte  Always1;
};
TexEnd
{
 ulong      Flag;
 ulong      nStructs; // see note
 SomeStruct SomeStruct[nStructs];
 ushort     SomeShort
 ushort     AnotherShort;
};
SomeStruct
{
 ushort value1;//typical 0040,0200
 ushort value2;//typical 0020,0100
 ushort Always0;
 ushort value3;//typical 0x030a
 ushort value4;//typical 0x80,4413
 ushort value5;//generally zero
};