Difference between revisions of "FEAR"

From XentaxWiki
Jump to: navigation, search
 
(Format Specifications)
Line 13: Line 13:
 
<tt><b>
 
<tt><b>
 
<font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br>  
 
<font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(LTAR)</font> <br>  
+
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Ident<font color="purple">(always LTAR)</font> <br>  
 
: uint32 {4}&nbsp;&nbsp; - Version <font color="purple">(3)</font> <br>  
 
: uint32 {4}&nbsp;&nbsp; - Version <font color="purple">(3)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - Length Of Filename Directory <br>  
+
: uint32 {4}&nbsp;&nbsp; - Length of Nametable<br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Number Of Directories? <font color="purple">(including root)</font> '' </font> <br>  
+
: uint32 {4}&nbsp;&nbsp; - Number Of Directories <font color="purple">(including rootfolder)</font> <br>  
 
: uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
 
: uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
 
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <br>  
 
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <br>  
Line 23: Line 23:
 
: byte {16}&nbsp;&nbsp;&nbsp; - <font color="red"> '' CRC? '' </font> <br>  
 
: byte {16}&nbsp;&nbsp;&nbsp; - <font color="red"> '' CRC? '' </font> <br>  
 
<br>
 
<br>
<font color="blue"> ''' // FILENAME DIRECTORY ''' </font> <br>  
+
<font color="blue"> ''' // NAMETABLE ''' </font> <br>  
 
: <font color="blue"> ''' // for each file and directory ''' </font> <br>  
 
: <font color="blue"> ''' // for each file and directory ''' </font> <br>  
 
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename/Directory Name <br>  
 
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename/Directory Name <br>  
Line 29: Line 29:
 
:: byte {0-3}&nbsp;&nbsp; - null Padding to a multiple of 4 bytes <br>  
 
:: byte {0-3}&nbsp;&nbsp; - null Padding to a multiple of 4 bytes <br>  
 
<br>
 
<br>
<font color="blue"> ''' // DIRECTORY''' </font> <br>  
+
<font color="blue"> ''' // DIRECTORY INFO TABLE ''' </font> <br>
 +
: <font color="blue"> ''' // for each directory''' </font> <br>
 +
:: uint32 {4}&nbsp;&nbsp; - Filename Offset <font color="purple">(relative to the start of the filename directory, 0xffff for the root folder)</font> <br>
 +
:: uint32 {4}&nbsp;&nbsp; - Index for the first subfolder <font color="purple">(0xffff if no subfolder is available)</font>
 +
:: uint32 {4}&nbsp;&nbsp; - Index for the next folder <font color="purple">(0xffff if no nextfolder is available)</font>
 +
:: uint32 {4}&nbsp;&nbsp; - Number of files for this directory
 +
<br>
 +
<font color="blue"> ''' // FILE INFO TABLE ''' </font> <br>  
 
: <font color="blue"> ''' // for each file ''' </font> <br>  
 
: <font color="blue"> ''' // for each file ''' </font> <br>  
 
:: uint32 {4}&nbsp;&nbsp; - Filename Offset <font color="purple">(relative to the start of the filename directory)</font> <br>  
 
:: uint32 {4}&nbsp;&nbsp; - Filename Offset <font color="purple">(relative to the start of the filename directory)</font> <br>  

Revision as of 16:43, 2 January 2006

Choose archive extension:

ARCH00


Format Specifications

// ARCHIVE HEADER

char {4}     - Ident(always LTAR)
uint32 {4}   - Version (3)
uint32 {4}   - Length of Nametable
uint32 {4}   - Number Of Directories (including rootfolder)
uint32 {4}   - Number Of Files
uint32 {4}   - Unknown (1)
uint32 {4}   - Unknown (0)
uint32 {4}   - Unknown (1)
byte {16}    - CRC?


// NAMETABLE

// for each file and directory
char {X}     - Filename/Directory Name
byte {1}     - null Filename Terminator
byte {0-3}   - null Padding to a multiple of 4 bytes


// DIRECTORY INFO TABLE

// for each directory
uint32 {4}   - Filename Offset (relative to the start of the filename directory, 0xffff for the root folder)
uint32 {4}   - Index for the first subfolder (0xffff if no subfolder is available)
uint32 {4}   - Index for the next folder (0xffff if no nextfolder is available)
uint32 {4}   - Number of files for this directory


// FILE INFO TABLE

// for each file
uint32 {4}   - Filename Offset (relative to the start of the filename directory)
uint64 {8}   - File Offset
uint64 {8}   - File Length
uint64 {8}   - File Length
uint32 {4}   - null


// FILE DATA

// for each file
byte {X}     - File Data

MultiEx BMS

Not written yet

Notes and Comments

  • Some files have length 0
  • It doesn't appear as if compression is used

Supported Programs