Mohawk MHK

From XentaxWiki
Jump to: navigation, search

MHK


Format Specifications

ARCHIVE HEADER

char {4}     - Header (MHWK)
uint32 {4}   - Archive Size [+8]


DIRECTORY HEADER

char {4}     - Directory Header (RSRC)
uint32 {4}   - Length Of All Directories
uint32 {4}   - Archive Size
uint32 {4}   - Type Directory Offset
uint16 {2}   - Entry Directory Offset [+typeDirectoryOffset]
uint16 {2}   - Length of the Entry Directory


TYPE DIRECTORY

uint16 {2}   - Filename Directory Offset
uint16 {2}   - Number Of Types


// for each type
uint32 {4}   - Type Code String
uint16 {2}   - Offset To This Type Details
uint16 {2}   - Unknown


// for each type
uint16 {2}   - Number Of Files Of This Type
// for each file of this type
uint16 {2}   - File ID
uint16 {2}   - File ID 2


ENTRY DIRECTORY

uint32 {4}   - Number Of Files


// for each file
uint32 {4}   - File Offset
byte {3}     - File Length
byte {1}     - Flags
uint16 {2}   - Unknown


FILE DATA

// for each file
byte {X}     - File Data

MultiEx BMS

Not written yet

Notes and Comments

  • Only some files have filenames

Supported Programs

Other Games

These games also use this file format

  • Koala Lumpur: Journey To The Edge *.mhk
  • Myst *.mhk
  • Riven *.mhk