Difference between revisions of "FEAR"
From XentaxWiki
(→Format Specifications) |
(Moved file info table bevor directory table) |
||
Line 28: | Line 28: | ||
:: byte {1} - null Filename Terminator <br> | :: byte {1} - null Filename Terminator <br> | ||
:: 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"> ''' // FILE INFO TABLE ''' </font> <br> | <font color="blue"> ''' // FILE INFO TABLE ''' </font> <br> | ||
Line 43: | 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