First Flight CAT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>PXR
No edit summary
 
imported>Ikskoks
m (Ikskoks moved page First Flight to First Flight CAT)
 
(8 intermediate revisions by 3 users not shown)
Line 8: Line 8:


<tt><b>
<tt><b>
char {3}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(CAT)</font> <br>  
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">("CAT" + null)</font> <br>  
byte {13}&nbsp;&nbsp;&nbsp; - null<br>
byte {12}&nbsp;&nbsp;&nbsp; - null <br>  
uint32 {4}&nbsp;&nbsp; - Number of files <br>
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
uint32 {4}&nbsp;&nbsp; - Number of file types <br>
uint32 {4}&nbsp;&nbsp; - Number Of File Types <br>  
uint32 {4}&nbsp;&nbsp; - Length of the file data <br><br>
uint32 {4}&nbsp;&nbsp; - File Data Length <br>  
<font color="blue"> ''' // for each file ''' </font><br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length (including null terminator) <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <font color="purple">(including null)</font> <br>  
: byte {x}&nbsp;&nbsp;&nbsp;&nbsp; - Filename<br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null<br><br>
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>  
<font color="blue"> ''' // for each file type ''' </font><br>
<br>
: uint32 {4}&nbsp;&nbsp; - File-Type Length (including null terminator) <br>  
<font color="blue"> ''' // for each file type ''' </font> <br>  
: byte {x}&nbsp;&nbsp;&nbsp;&nbsp; - File-Type name<br>
: uint32 {4}&nbsp;&nbsp; - File Type Name Length <font color="purple">(including null)</font> <br>  
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null<br><br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Type Name <br>  
byte {x}&nbsp;&nbsp;&nbsp; - File Data <br><br>
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null File Type Name Terminator <br>  
<br>
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
</b></tt>
</b></tt>
=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  
<pre>
<pre>
Line 54: Line 58:


=== Supported by Programs ===  
=== Supported by Programs ===  
* [[Game Extractor|Game Extractor]]<br>
* [[MultiEx Commander|MultiEx Commander]]<br>
* [[MultiEx Commander|MultiEx Commander]]<br>
[[Category:File Format]]

Latest revision as of 12:57, 6 January 2021

CAT

  • Format Type : Archive
  • Endian Order : Little Endian
  • Date Posted : Dec. 9, 2005

Format Specifications

char {4}     - Header ("CAT" + null)
byte {12}    - null
uint32 {4}   - Number Of Files
uint32 {4}   - Number Of File Types
uint32 {4}   - File Data Length

// for each file

uint32 {4}   - File Offset
uint32 {4}   - Filename Length (including null)
char {X}     - Filename
byte {1}     - null Filename Terminator


// for each file type

uint32 {4}   - File Type Name Length (including null)
char {X}     - File Type Name
byte {1}     - null File Type Name Terminator


byte {X}     - File Data

MultiEx BMS Script

ImpType SFileOff ;
IDString 0 CAT ;
Set TEMP Long 16 ;
GoTo TEMP 0 ;
Get FILENUM Long 0 ;
Get FOOBAR Long 0 ;
Get FOOBAR Long 0 ;
For X = 1 To FILENUM ;
SavePos FOFFSETX 0 ;
Get FOFFSET Long 0 ;
Get FNSIZE Long 0 ;
GetDString FNAME FNSIZE 0 ;
SavePos TEMP 0 ;
If X = FILENUM ;
GoTo EOF 0 ;
SavePos FSIZE 0 ;
Math FSIZE -= FOFFSET ;
Math FSIZE += 1 ;
Else ;
Get FSIZE Long 0 ;
Math FSIZE -= FOFFSET ;
EndIf ;
Log FNAME FOFFSET FSIZE FOFFSETX 0 ;
GoTo TEMP 0 ;
Next X ;

Supported by Programs