Total Annihilation - Kingdoms

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

HPI


Format Specifications

char {4}     - Header (HAPI)
uint32 {4}   - Unknown
uint32 {4}   - Directory Offset
uint32 {4}   - Directory Size
uint32 {4}   - Filename Directory Offset
uint32 {4}   - Unknown (32)
uint32 {4}   - Archive Size? [+78]

byte {X}     - File Data

// Main Directory

uint32 {4}   - null
uint32 {4}   - First Directory Offset


// for each directory
uint32 {4}   - Directory Filename Offset [+filenameDirectoryOffset]
uint32 {4}   - Directory Offset [+dirOffset]
uint32 {4}   - null


// go to each dirOffset

uint32 {4}   - Filename? (starts at 1)
uint32 {4}   - Directory Size
uint32 {4}   - null
uint32 {4}   - Unknown (40)
uint32 {4}   - numFiles in Directory


// for each file
uint32 {4}   - Filename Offset [+filenameDirectoryOffset]
uint32 {4}   - File Offset
uint32 {4}   - File Size
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown


// Filename Directory

byte {X}     - Filename
byte {1}     - null Filename Terminator


MultiEx BMS Script

Not written yet

Compatible Programs