Imperium Galactica 2

From XentaxWiki
Revision as of 10:24, 24 May 2005 by Mr.Mouse (talk | contribs) (MultiEx BMS Script)

Jump to: navigation, search

Choose archive extension:

DAT


Format Specifications

byte {X}     - File Data

// Directory

// for each file
char {X}     - Filename
byte {1}     - null Filename Terminator
uint32 {4}   - Data Offset
uint32 {4}   - Unknown
uint32 {4}   - Compressed File Length
uint32 {4}   - Decompressed File Length
uint32 {4}   - Unknown


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

MultiEx BMS Script

ComType ZLib1 ;
GoTo EOF 0 ;
SavePos END 0 ;
Math END -= 3 ;
GoTo END 0 ;
Get TS Long 0 ;
Set ST Long END ;
Math ST -= TS ;
Math ST += 4 ;
Math END -= 4 ;
GoTo END 0 ;
Get FC Long 0 ;
GoTo ST 0 ;
For T = 1 To FC ;
Get FN String 0 ;
Get OFF Long 0 ;
Get COM Long 0 ;
Get PSize Long 0 ;
Get OSize Long 0 ;
Get DL Long 0 ;
CLog FN OFF PSize 0 0 OSize 0 ;
Next T ;

Notes and Comments

  • Files are compressed using ZLib



Compatible Programs