DAOC's MPK files: partial spec
The following partial spec is reproduced from this post
on the Dawn of Light forum by PlayerX.
For more information about this file format, see dempak.c.
To download free programs (executable and source code) that unpack MPKs, click here.
The next 16 bytes are XOR'ed with their index, ie. offset 5 is
XOR'ed with 0, offset 6 is XOR'ed with 1, etc. up to 15
CRC32 of deflated directory section
Compressed size of directory section
Compressed size of archive name section
No. of files in archive
Name of archive (deflated)
Files (individually deflated)
Each directory entry is 0x11C in size:
Timestamp of entry (time_t)
Unknown, usually 4
Offset in memory (only applicable if you unpack everything into one big memory block)
Offset in file of deflated data (indexed from after directory)
Compressed size of file
CRC32 of compressed data
This page was first published on September 26, 2014 and last modified on October 2, 2019