Patrician CPR: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Ikskoks m (Ikskoks moved page Patrician to Patrician CPR) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 58: | Line 58: | ||
* Patrician 3 *.cpr | * Patrician 3 *.cpr | ||
* Port Royale *.cpr | * Port Royale *.cpr | ||
[[Category:File Format]] | |||
Latest revision as of 12:55, 17 January 2021
CPR
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
char {16} - Header (ASCARON_ARCHIVE )
char {4} - Version (V0.9)
byte {12} - null
uint32 {4} - Directory Length [-16] (including all these archive header fields and the 9 null padding)
uint32 {4} - Directory Length [-15] (not including all these archive header fields or the padding)
uint32 {4} - Number Of Files
uint32 {4} - Unknown
// for each file
- uint32 {4} - Data Offset
- uint32 {4} - Raw File Length
- uint32 {4} - Unknown (1)
- char {X} - Filename
- byte {1} - null Filename Terminator
byte {9} - null
byte {X} - File Data
MultiEx BMS Script
ImpType Standard ; IDString 0 ASCARON_ARCHIVE ; Set D Long 40 ; GoTo D 0 ; Get FC Long 0 ; Get S Long 0 ; For T = 1 To FC ; SavePos FOO 0 ; Get FO Long 0 ; SavePos FSO 0 ; Get FS Long 0 ; Get S Long 0 ; Get FN String 0 ; Log FN FO FS FOO FSO ; Next T ;
Compatible Programs
Other Games
These games also use this file format
- Patrician 2 *.cpr
- Patrician 3 *.cpr
- Port Royale *.cpr