Fire Captain PAK BANK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
mNo edit summary
imported>Ikskoks
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== PAK, BANK ==  
* [[GRAFs|Return to the list of games]]
 
Choose archive extension:
 
== PAK, BANK ==  


* ''' Format Type ''':    Archive <br>  
* ''' Format Type ''':    Archive <br>  
Line 6: Line 10:


=== Format Specifications ===  
=== Format Specifications ===  
This is a generic ZIP archive with all PK headers replaced with QL headers.<br>
Below is the basic structure of the archive, allowing you to work through and change all QL headers to PK.<br><br>


<tt><b>
<tt><b>
: <font color="blue"> ''' // for each file ''' </font> <br>  
<font color="blue"> ''' // for each file ''' </font> <br>  
:: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>  
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1311747 = File Entry)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1311747 = File Entry)</font> <br>  
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>  
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>  
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>  
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>  
:: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>  
: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>  
:: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>  
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>  
:: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
:: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
<br>
: <font color="blue"> ''' // for each file ''' </font> <br>
:: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>
:: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(513 = Directory Entry)</font> <br>
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(20)</font> '' </font> <br>
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>
:: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>
:: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>
:: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>
:: uint32 {4}&nbsp;&nbsp; - Filename Length <br>
:: byte {10}&nbsp;&nbsp;&nbsp; - null <br>
:: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(points to QL for this file in the directory)</font> <br>
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
<br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>  
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1541 = Archive Entry)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(513 = Directory Entry)</font> <br>  
: uint16 {2}&nbsp;&nbsp; - null <br>  
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(20)</font> '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>  
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Length Of File Data <font color="purple">(archive size excluding the directory)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>
: uint16 {2}&nbsp;&nbsp; - null <br>  
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>
: byte {10}&nbsp;&nbsp;&nbsp; - null <br>
: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(points to QL for this file in the directory)</font> <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
<br>
char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(QL)</font> <br>
uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1541 = Archive Entry)</font> <br>
uint16 {2}&nbsp;&nbsp; - null <br>
uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Length Of File Data <font color="purple">(archive size excluding the directory)</font> <br>  
uint16 {2}&nbsp;&nbsp; - null <br>  
<br>
<br>
</b></tt>
</b></tt>


=== MultiEx BMS ===  
=== MultiEx BMS Script ===  


Not written yet<br><br>
Not written yet<br><br>
Line 52: Line 53:
=== Notes and Comments ===  
=== Notes and Comments ===  


This is a generic Zip archive with all PK header fields changed to QL header fields<br>
* This is a generic PKZip file with all PK header fields changed to QL header fields.
<br>
<br><br>
=== Supported Programs ===  
=== Compatible Programs ===  
 
* None
 


* [[Game Extractor|Game Extractor]]<br>
[[Category:Extension_pak | Extension: pak]]
[[Category:File Format]]

Latest revision as of 19:27, 29 March 2022

Choose archive extension:

PAK, BANK


Format Specifications

// for each file

char {2}     - Header (QL)
uint32 {4}   - Entry Type (1311747 = File Entry)
uint16 {2}   - Unknown (2)
uint16 {2}   - Unknown (8)
uint64 {8}   - Checksum?
uint32 {4}   - Compressed File Size
uint32 {4}   - Decompressed File Size
uint32 {4}   - Filename Length
char {X}     - Filename
byte {X}     - File Data


// for each file

char {2}     - Header (QL)
uint32 {4}   - Entry Type (513 = Directory Entry)
uint16 {2}   - Unknown (20)
uint16 {2}   - Unknown (2)
uint16 {2}   - Unknown (8)
uint64 {8}   - Checksum?
uint32 {4}   - Compressed File Size
uint32 {4}   - Decompressed File Size
uint32 {4}   - Filename Length
byte {10}    - null
uint32 {4}   - File Offset (points to QL for this file in the directory)
char {X}     - Filename


char {2}     - Header (QL)
uint32 {4}   - Entry Type (1541 = Archive Entry)
uint16 {2}   - null
uint64 {8}   - Checksum?
uint32 {4}   - Length Of File Data (archive size excluding the directory)
uint16 {2}   - null

MultiEx BMS Script

Not written yet

Notes and Comments

  • This is a generic PKZip file with all PK header fields changed to QL header fields.



Compatible Programs

  • None