Dawn Of War

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

SGA


Format Specifications

char {8}     - Header (_ARCHIVE)
uint32 {4}   - Version (2)
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown
char {128}   - Archive Name (unicode)
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - File Data Offset [+180]
uint32 {4}   - File Data Offset
uint32 {4}   - Descriptions Directory Offset (24) [+180]
uint16 {2}   - Number Of Descriptions (1)
uint32 {4}   - Folders Directory Offset [+180]
uint16 {2}   - Number Of Folders
uint32 {4}   - Files Directory Offset [+180]
uint16 {2}   - Number Of Files
uint32 {4}   - Filename Directory Offset [+180]
uint16 {2}   - Number Of Filenames

// Description Directory

// for each description
char {64}    - Category / Directory (null)
char {64}    - Archive Name (null)
uint16 {2}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown


// Folders Directory

// Note: This directory holds references to folders that contain other folders in them


// for each folder
uint32 {4}   - Folder Name Offset [+filenameDirOffset]
uint16 {2}   - First Sub-Folder Number
uint16 {2}   - Last Sub-Folder Number
// Note: If the 2 fields above = 36, they contain no subfolders
uint16 {2}   - First Filename Number
uint16 {2}   - Last Filename Number


// Files Directory

// for each file
uint32 {4}   - Filename Offset [+filenameDirOffset]
uint32 {4}   - Unknown
uint32 {4}   - File Offset [+fileDataOffset]
uint32 {4}   - Decompressed File Size
uint32 {4}   - Compressed File Size


// Filename Directory

// for each folder and file
char {X}     - Filename
byte {1}     - null


// File Data

// for each file
char {235}   - Filename (null)
uint64 {8}   - File Header (maybe a hash?)
byte {X}     - File Data


MultiEx BMS Script

Not written yet

Notes and Comments

If a file is compressed, it uses ZLib compression

Compatible Programs