Turok 11k 22k: Difference between revisions
Jump to navigation
Jump to search
imported>PXR No edit summary |
imported>Ikskoks m (Ikskoks moved page Turok to Turok 11k 22k) |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
<tt><b> | <tt><b> | ||
uint32 {4} - Number Of Files <br> | <font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br> | ||
uint32 {4} - File Data Length <br> | : uint32 {4} - Number Of Files <br> | ||
: uint32 {4} - File Data Length <br> | |||
<br> | <br> | ||
<font color="blue"> ''' // for each file ''' </font> <br> | <font color="blue"> ''' // FILES DIRECTORY ''' </font> <br> | ||
: uint32 {4} - File Offset (relative to the start of the file data) <br> | : <font color="blue"> ''' // for each file ''' </font> <br> | ||
: uint32 {4} - File Length <br> | :: uint32 {4} - File Offset <font color="purple">(relative to the start of the file data)</font> <br> | ||
:: uint32 {4} - File Length <br> | |||
<br> | <br> | ||
uint32 {4} - | : uint32 {4} - Directory End Tag <br> | ||
<br> | <br> | ||
<font color="blue"> ''' // for each file ''' </font> <br> | <font color="blue"> ''' //FILENAME DIRECTORY ''' </font> <br> | ||
: char { | : <font color="blue"> ''' // for each file ''' </font> <br> | ||
: byte | :: char {X} - Filename <br> | ||
:: byte {1} - null Filename Terminator <br> | |||
<br> | <br> | ||
<font color="blue"> ''' // FILE DATA ''' </font> <br> | |||
: <font color="blue"> ''' // for each file ''' </font> <br> | |||
:: byte {X} - File Data <br> | |||
</b></tt> | </b></tt> | ||
| Line 55: | Line 59: | ||
=== Supported by Programs === | === Supported by Programs === | ||
* [[MultiEx Commander|MultiEx Commander]]<br> | * [[MultiEx Commander|MultiEx Commander]]<br> | ||
* [[Game Extractor|Game Extractor]]<br> | |||
[[Category:File Format]] | |||
Latest revision as of 23:52, 24 January 2021
11K, 22K
- Format Type : Archive
- Endian Order : Little Endian
- Date Posted : Dec. 22, 2005
Format Specifications
// ARCHIVE HEADER
- uint32 {4} - Number Of Files
- uint32 {4} - File Data Length
// FILES DIRECTORY
- // for each file
- uint32 {4} - File Offset (relative to the start of the file data)
- uint32 {4} - File Length
- uint32 {4} - File Offset (relative to the start of the file data)
- uint32 {4} - Directory End Tag
//FILENAME DIRECTORY
- // for each file
- char {X} - Filename
- byte {1} - null Filename Terminator
- char {X} - Filename
// FILE DATA
- // for each file
- byte {X} - File Data
- byte {X} - File Data
MultiEx BMS Script
ImpType SFileSize ; Get FILENUM Long 0 ; Get DATASIZE Long 0 ; SavePos DIRSTART 0 ; Set FDIRSTRT Long FILENUM ; Math FDIRSTRT *= 8 ; Math FDIRSTRT += 16 ; GoTo EOF 0 ; SavePos DATASTRT 0 ; Math DATASTRT -= DATASIZE ; Math DATASTRT += 1 ; GoTo DIRSTART 0 ; For X = 1 To FILENUM ; Get FOFFSET Long 0 ; Math FOFFSET += DATASTRT ; SavePos FSIZEX 0 ; Get FSIZE Long 0 ; SavePos NEXTFILE 0 ; GoTo FDIRSTRT 0 ; Get FNAME String 0 ; SavePos FDIRSTRT 0 ; Log FNAME FOFFSET FSIZE 0 FSIZEX ; GoTo NEXTFILE 0 ; Next X ;