Difference between revisions of "FEAR"
From XentaxWiki
(Moved file info table bevor directory table) |
|||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
<tt><b> | <tt><b> | ||
<font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br> | <font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br> | ||
− | : char {4} - | + | : char {4} - Ident<font color="purple">(always LTAR)</font> <br> |
: uint32 {4} - Version <font color="purple">(3)</font> <br> | : uint32 {4} - Version <font color="purple">(3)</font> <br> | ||
− | : uint32 {4} - Length | + | : uint32 {4} - Length of Nametable<br> |
− | : uint32 {4} - | + | : uint32 {4} - Number Of Directories <font color="purple">(including rootfolder)</font> <br> |
: uint32 {4} - Number Of Files <br> | : uint32 {4} - Number Of Files <br> | ||
: uint32 {4} - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <br> | : uint32 {4} - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <br> | ||
Line 23: | Line 23: | ||
: byte {16} - <font color="red"> '' CRC? '' </font> <br> | : byte {16} - <font color="red"> '' CRC? '' </font> <br> | ||
<br> | <br> | ||
− | <font color="blue"> ''' // | + | <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} - Filename/Directory Name <br> | :: char {X} - Filename/Directory Name <br> | ||
Line 29: | Line 29: | ||
:: byte {0-3} - null Padding to a multiple of 4 bytes <br> | :: byte {0-3} - null Padding to a multiple of 4 bytes <br> | ||
<br> | <br> | ||
− | <font color="blue"> ''' // | + | <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} - Filename Offset <font color="purple">(relative to the start of the filename directory)</font> <br> | :: uint32 {4} - Filename Offset <font color="purple">(relative to the start of the filename directory)</font> <br> | ||
Line 36: | Line 36: | ||
:: uint64 {8} - File Length <br> | :: uint64 {8} - File Length <br> | ||
:: uint32 {4} - null <br> | :: uint32 {4} - null <br> | ||
+ | <br> | ||
+ | <font color="blue"> ''' // DIRECTORY INFO TABLE ''' </font> <br> | ||
+ | : <font color="blue"> ''' // for each directory''' </font> <br> | ||
+ | :: uint32 {4} - Filename Offset <font color="purple">(relative to the start of the filename directory, 0xffff for the root folder)</font> <br> | ||
+ | :: uint32 {4} - Index for the first subfolder <font color="purple">(0xffff if no subfolder is available)</font> | ||
+ | :: uint32 {4} - Index for the next folder <font color="purple">(0xffff if no nextfolder is available)</font> | ||
+ | :: uint32 {4} - Number of files for this directory | ||
<br> | <br> | ||
<font color="blue"> ''' // FILE DATA ''' </font> <br> | <font color="blue"> ''' // FILE DATA ''' </font> <br> |
Revision as of 00:18, 25 August 2006
Choose archive extension:
Contents
ARCH00
- Format Type : Archive
- Endian Order : Little Endian
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
- char {X} - Filename/Directory Name
// 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
- uint32 {4} - Filename Offset (relative to the start of the filename directory)
// 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
- uint32 {4} - Filename Offset (relative to the start of the filename directory, 0xffff for the root folder)
// FILE DATA
- // for each file
- byte {X} - File Data
- 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