Total Annihilation HPI: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Dinoguy1000
m (Reverted edits by 91.121.27.33 (talk) to last revision by Me22)
imported>Ikskoks
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 61: Line 61:
* [http://fileuniverse.com/?p=showitem&ID=1984 HPI Edit]
* [http://fileuniverse.com/?p=showitem&ID=1984 HPI Edit]
* [http://fileuniverse.com/?p=showitem&ID=1985 HPI Edit for Linux]
* [http://fileuniverse.com/?p=showitem&ID=1985 HPI Edit for Linux]
[[Category:File Format]]

Latest revision as of 21:50, 21 January 2021

HPI, UFO, CCX, PCK


Format Specifications

char {4}     - Header (HAPI)
uint32 {4}   - Type -- (BANK) if saved game, usually 0x00010000 otherwise
uint32 {4}   - Directory Length
uint32 {4}   - Directory Key
uint32 {4}   - Main Directory Offset

byte {X}     - File Data

// Main Directory

uint32 {4}   - Number Of Files In This Directory
uint32 {4}   - Directory Offset


// go to this Directory Offset
// for each file in this directory
uint32 {4}   - Filename Offset
uint32 {4}   - File Offset
byte {1}     - Directory/File ID


if (directoryFileID == 1){
// go to the name offset
char {X}     - Directory Name
byte {1}     - null Directory Name Terminator


// go to the offset and repeat from "4 - Number Of Files In This Directory"
}


else {
// go to the name offset
char {X}     - Filename
byte {1}     - null Filename Terminator


// go to the offset
uint32 {4}   - Offset
uint32 {4}   - Length
byte {1}     - Flag
}


As with all Total Annihilation formats, Visual Designs has the community-written format description.

MultiEx BMS Script

Not written yet

Compatible Programs