Imperium Galactica 2 DAT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Mr.Mouse
Line 30: Line 30:
=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  


Not written yet<br><br>
<pre>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 ;
</pre>


=== Notes and Comments ===  
=== Notes and Comments ===  

Revision as of 08:24, 24 May 2005

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