Changes

778 bytes added ,  09:53, 21 March 2009
m
Line 13: Line 13:  
   u32 unk; // Always 0xFE 0xFF 0x 00 0x08.
 
   u32 unk; // Always 0xFE 0xFF 0x 00 0x08.
 
   u32 file_size; // Size of whole file, including the header.
 
   u32 file_size; // Size of whole file, including the header.
βˆ’
   u32 unk2;
+
   u32 num; // number of sections
 
  } brlyt_header;
 
  } brlyt_header;
   Line 23: Line 23:  
   u32 size_header;
 
   u32 size_header;
 
   u32 unk2;
 
   u32 unk2;
βˆ’
   u32 unk3;
+
   u32 width;
βˆ’
   u32 unk4;
+
   u32 height;
 
  } lyt1_header;
 
  } lyt1_header;
   Line 43: Line 43:  
   u32 unk; // Always zero?
 
   u32 unk; // Always zero?
 
  } txl1_offset;
 
  } txl1_offset;
βˆ’
 
+
After the offset list is the names list, all names are null terminated and the section is an even number of bytes in length. An extra '\0' is added to the end if needed.
 
=== mat1 section (Material List) ===
 
=== mat1 section (Material List) ===
 
After the txl1-section comes the mat1-section, this contains information about materials used in the animation. It's a list, almost like the texture-list.
 
After the txl1-section comes the mat1-section, this contains information about materials used in the animation. It's a list, almost like the texture-list.
Line 59: Line 59:  
   u32 offset; // Offset from beginning of mat1-section.
 
   u32 offset; // Offset from beginning of mat1-section.
 
  } mat1_offset;
 
  } mat1_offset;
βˆ’
 
+
After the mat1_offset comes info about the materials
 +
typedef struct
 +
{
 +
    char name[20];
 +
    s16 tev_color[4];
 +
    s16 unk_color[4];
 +
    s16 unk_color_2[4];
 +
    u32 tev_kcolor[4];
 +
    u32 flags;
 +
} mat1_material;
 +
After the mat1_material is more material info based upon the bit values in flags.
 
=== fnl1 section (FileName List(?)) ===
 
=== fnl1 section (FileName List(?)) ===
 
WhoDares : Nov 2008 [Updated] : This appears to be an "include" list for using other files in the banner.
 
WhoDares : Nov 2008 [Updated] : This appears to be an "include" list for using other files in the banner.
Line 79: Line 89:  
   u32 unk; // Hi-order word for the offset?
 
   u32 unk; // Hi-order word for the offset?
 
  } fnl1_offset;
 
  } fnl1_offset;
 +
After the fnl1_offset is the list of filenames null terminated.  If the full fnl section is not an even number of bytes, the section is padded with an extra '\0'.
    
'''TODO: Section incomplete.'''
 
'''TODO: Section incomplete.'''
Line 92: Line 103:  
   u32 size_section;  
 
   u32 size_section;  
 
   u32 unk; // Always 01 04 FF 00?
 
   u32 unk; // Always 01 04 FF 00?
βˆ’
   char pane_name [0x30]; // Pane name in ASCII.
+
   char pane_name [0x18]; // Pane name in ASCII.
βˆ’
   float unk2 [4];
+
   float x;
 +
  float y;
 +
  float z;
 +
  float xFlip;
 +
  float yFlip;
 +
  float xMag;
 +
  float yMag;
 +
  float width;
 +
  float height;
 
  } pan1_header;
 
  } pan1_header;
   Line 119: Line 138:  
   char name[16];
 
   char name[16];
 
   u16 numsubs;
 
   u16 numsubs;
 +
  u16 unk1;
 
  } grp1_header;
 
  } grp1_header;
  
90

edits