Emperor - Battle For Dune

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

BAG


Format Specifications

char {4}     - Header (GABA)
uint32 {4}   - Version (4)
uint32 {4}   - Number Of Files
uint32 {4}   - Size Of Each Directory Entry (64)

// for each file

char {32}    - Filename (null)
uint32 {4}   - Offset
uint32 {4}   - Length
uint32 {4}   - Audio Quality (22050)
uint32 {4}   - File Type? (6,28,37)
uint32 {4}   - Unknown
byte {12}    - null


byte {X}     - File Data

MultiEx BMS Script

IDString 0 GABA ;
ImpType Standard ;
GoTo 8 0 ;
Get Filenumber Long 0 ;
Set Start Long 16 ;
For Count = 1 To Filenumber ;
GoTo Start 0 ;
Get Filename String 0 ;
Math Start += 32 ;
GoTo Start 0 ;
SavePos FileOffOff 0 ;
Get FileOff Long 0 ;
SavePos FileSizeOff 0 ;
Get FileSize Long 0 ;
Math Start += 32 ;
Log Filename FileOff FileSize FileOffOff FileSizeOff ;
Next Count ;

Compatible Programs