Metal Heart - Replicants Rampage

From XentaxWiki
Revision as of 22:07, 9 August 2005 by Rick (talk | contribs) (Notes and Comments)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to index

Choose archive extension:

PKG


Format Specifications

// Header

char {4}   - Header (ARCH)
uint16 {2}   - Version
uint16 {2}   - Unknown
uint32 (4)   - Unknown, possibly archive CRC/Timestamp
uint32 (4)   - Unknown, possibly archive CRC/Timestamp
uint32 (4)   - Size of archive including header
uint32 (4)   - Offset from end of archive file to file index
uint32 (4)   - Unknown
uint16 (2)   - Number of files in archive
uint16 (2)   - Unknown


// For each file

byte {X}   - File data, if file index entry compressed and uncompressed sizes are different, the data is compressed using zlib.


// For each index entry

uint32 (4)   - Unknown, possibly archive CRC/Timestamp
uint32 (4)   - Unknown, possibly archive CRC/Timestamp
uint32 (4)   - Compressed size of data
uint32 (4)   - Uncompressed size of data
uint32 (4)   - Absolute offset of file data in archive. If the offset is 0xFFFFFFFF, the file is actually a directory, and should have compressed and uncompressed sizes of 0.
uint16 (2)   - Length of multibyte string in uint16s.
uint16 (2)   - Unknown.
uint16 (X)   - Multibyte string of filename.


MultiEx BMS

Not written yet


Notes and Comments

The game provides a utility named pkg.exe which can be used to create new PKG archives in the game directory /data/scene. This utility however, does not have the ability to extract PKG archives.

Supported by Programs

None