Civilization 4 FPK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
 
imported>Ikskoks
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 20: Line 20:
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(each char -= 1)</font> <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(each char -= 1)</font> <br>  
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Filename Padding Length <font color="purple">(including this byte)</font> <br>  
: byte {0-1}&nbsp;&nbsp; - Filename Padding Length <font color="purple">(including this byte)</font> <br>  
: byte {0-3}&nbsp;&nbsp; - null Filename Padding <font color="purple">(to a multiple of 4 bytes)</font> <br>  
: byte {0-3}&nbsp;&nbsp; - null Filename Padding <font color="purple">(to a multiple of 4 bytes)</font> <br>  
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>  
Line 37: Line 37:


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

Latest revision as of 14:15, 3 January 2021

Choose archive extension:

FPK


Format Specifications

uint32 {4}   - Version? (4)
char {4}     - Header (FPK_)
byte {1}     - Version? (1)
uint32 {4}   - Number Of Files?

// for each file

uint32 {4}   - Filename Length
char {X}     - Filename (each char -= 1)
byte {0-1}   - Filename Padding Length (including this byte)
byte {0-3}   - null Filename Padding (to a multiple of 4 bytes)
uint64 {8}   - Checksum?
uint32 {4}   - File Length
uint32 {4}   - File Offset


uint32 {4}   - Unknown (788)
byte {X}     - File Data

MultiEx BMS

Not written yet


Supported Programs