FEAR: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
(Moved file info table bevor directory table)
(Moved file info table bevor directory table)
(No difference)

Revision as of 23:18, 24 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