Star Wars Galaxy

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

PAK


Format Specifications

char {4}   - Header ("EERT")
uint32 {4}   - Version ("6000")
byte {28}    - null

// for each group

char {4}     - Group Header (FORM)
uint32 {4}   - Group Length (not including these 2 fields)
uint32 {4}   - Group Type Code


if (type == "0000"){
// File Tag
char {4}     - Tag Header (TAG + (byte)4)
uint32 {4}   - Tag Length
char {4}     - Tag Main Header (NIAM)
char {4}     - File Type (MATL)
uint32 {4}   - Tag Data Length (68)
byte {X}     - Tag Data
}


else if (type == "0001"){
// Filename
char {4}     - Filename Header (NAME)
uint32 {4}   - Filename Length (including null)
char {X}     - Filename
byte {1}     - null
}


else if (type == "0002"){
// File Data Details
char {4}     - Data Header (DATA)
uint32 {4}   - Data Length (Decompressed Length?)
char {4}     - Data Main Header (NIAM)
uint32 {4}   - null
uint32 {4}   - File Length (Little Endian!)
char {4}     - Filename Header (NAME)
uint32 {4}   - Filename Length (including null)
char {X}     - Filename
byte {1}     - null
}


else if (type == "TCSS"){
// Padding?
char {4}     - Padding Header (0000)
uint32 {4}   - Padding Length (5)
char {4}     - Padding Main Header (NIAM)
byte {1}     - null
}


else if (type == "ARVS"){
// File Data?
char {4}     - Padding Header (0000)
uint32 {4}   - Padding Length (5)
char {4}     - Padding Main Header (NIAM)
byte {1}     - null
byte {X}     - Compressed File Data (ZLib Compression?)
}


else {
// File Type Code? (SSHT, TXMS, TXM+(byte)4)
// repeat from "Group Header (FORM)"
}

MultiEx BMS

Not written yet

Supported Programs

  • None - More Investigation Needed