texHeaders.bin File Format: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
  struct TexHeader.bin
  struct TexHeader.bin
  {
  {
   MimeType "0DHT" ; // NOT ascizz. '0' = 0x30
   MimeType "0DHT" ;   // NOT ascizz. '0' = 0x30. This is mimetype "TexHeaDer0"
   ulong    version; // 1
   ulong    version;   // 1
   ulong    SomeOffset; //ce 01 00 00  
   ulong    SomeOffset; //ce 01 00 00  
   TexBody  TexBodies[until end of file];
   TexBody  TexBodies[until end of file];
Line 12: Line 11:
  {
  {
   TexBegin TexBegin;
   TexBegin TexBegin;
   Asciiz  *PaaFile;
   Asciiz  *PaaFile;//"data\icons\m4a3_cco_ca.paa"
   TexEnd  TexEnd;
   TexEnd  TexEnd;
  };
  };
Line 26: Line 25:
   ulong FlagBytes;    // 01 01 00 10 typical
   ulong FlagBytes;    // 01 01 00 10 typical
   ulong SameCount;    // see note
   ulong SameCount;    // see note
   ulong AnotherCount;
   ulong AnotherCount; // typical 0x0A
   byte  Always1;
   byte  Always1;
   byte  Always1;
   byte  Always1;
Line 39: Line 38:
   ushort    AnotherShort;
   ushort    AnotherShort;
  };
  };
* SameCount always == nStructs


  SomeStruct
  SomeStruct
Line 45: Line 46:
   ushort value2;//typical 0020,0100
   ushort value2;//typical 0020,0100
   ushort Always0;
   ushort Always0;
   ushort value3;//typical 0x030a
   ushort value3;//generally 0x030a
   ushort value4;//typical 0x80,4413
   ushort value4;//typical 0x80,4413
   ushort value5;//generally zero
   ushort value5;//generally zero
  };
  };

Revision as of 23:05, 26 June 2010

struct TexHeader.bin
{
 MimeType "0DHT" ;    // NOT ascizz. '0' = 0x30. This is mimetype "TexHeaDer0"
 ulong    version;    // 1
 ulong    SomeOffset; //ce 01 00 00 
 TexBody  TexBodies[until end of file];
};


TexBody
{
 TexBegin TexBegin;
 Asciiz   *PaaFile;//"data\icons\m4a3_cco_ca.paa"
 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; // typical 0x0A
 byte  Always1;
 byte  Always1;
};
TexEnd
{
 ulong      Flag;
 ulong      nStructs; // see note
 SomeStruct SomeStruct[nStructs];
 ushort     SomeShort
 ushort     AnotherShort;
};
  • SameCount always == nStructs
SomeStruct
{
 ushort value1;//typical 0040,0200
 ushort value2;//typical 0020,0100
 ushort Always0;
 ushort value3;//generally 0x030a
 ushort value4;//typical 0x80,4413
 ushort value5;//generally zero
};