Difference between revisions of "FEAR"

From XentaxWiki
Jump to: navigation, search
(Format Specifications)
(Moved file info table bevor directory table)
 
Line 28: Line 28:
 
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>  
 
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>  
 
:: 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>
 
<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>
 
<br>
 
<font color="blue"> ''' // FILE INFO TABLE ''' </font> <br>  
 
<font color="blue"> ''' // FILE INFO TABLE ''' </font> <br>  
Line 43: Line 36:
 
:: uint64 {8}&nbsp;&nbsp; - File Length <br>  
 
:: uint64 {8}&nbsp;&nbsp; - File Length <br>  
 
:: uint32 {4}&nbsp;&nbsp; - null <br>  
 
:: uint32 {4}&nbsp;&nbsp; - null <br>  
 +
<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>
 
<br>
 
<font color="blue"> ''' // FILE DATA ''' </font> <br>  
 
<font color="blue"> ''' // FILE DATA ''' </font> <br>  

Latest revision as of 00:18, 25 August 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


// 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


// 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 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