Difference between revisions of "UFO Aftershock"

From XentaxWiki
Jump to: navigation, search
 
(Format Specifications)
 
Line 8: Line 8:
  
 
<tt><b>
 
<tt><b>
byte {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(0,0,128,63)</font> <br>  
+
byte {4}&nbsp;&nbsp;&nbsp;&nbsp; - Version (Single Float) <font color="purple">(0,0,128,63) $0000803F = 1.0</font> <br>  
 
uint32 {4}&nbsp;&nbsp; - Block Size <font color="purple">(4096)</font> <br>  
 
uint32 {4}&nbsp;&nbsp; - Block Size <font color="purple">(4096)</font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Placement Entries '' </font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(64)</font> '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Maximum Files Per Block <font color="purple">(64)</font> '' </font> <br>  
 
uint32 {4}&nbsp;&nbsp; - null <br>  
 
uint32 {4}&nbsp;&nbsp; - null <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(64)</font> '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Maximum File Length <font color="purple">(64)</font> '' </font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(50000)</font> '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Compression Window <font color="purple">(50000)</font> '' </font> <br>  
byte {16}&nbsp;&nbsp;&nbsp; - <font color="red"> '' Hash? '' </font> <br>  
+
byte {16}&nbsp;&nbsp;&nbsp; - <font color="red"> '' MD5 Hash for File - Header '' </font> <br>  
uint32 {4}&nbsp;&nbsp; - Next Padding Size <font color="purple">(256)</font> <br>  
+
uint32 {4}&nbsp;&nbsp; - Extra Info Size <font color="purple">(256)</font> <br>  
 
byte {256}&nbsp;&nbsp; - null Padding to offset 304 <br>  
 
byte {256}&nbsp;&nbsp; - null Padding to offset 304 <br>  
 
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
 
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  

Latest revision as of 17:18, 20 November 2006

VFS


Format Specifications

byte {4}     - Version (Single Float) (0,0,128,63) $0000803F = 1.0
uint32 {4}   - Block Size (4096)
uint32 {4}   - Placement Entries
uint32 {4}   - Maximum Files Per Block (64)
uint32 {4}   - null
uint32 {4}   - Maximum File Length (64)
uint32 {4}   - Compression Window (50000)
byte {16}    - MD5 Hash for File - Header
uint32 {4}   - Extra Info Size (256)
byte {256}   - null Padding to offset 304
uint32 {4}   - Number Of Files

// for each file

uint32 {4}   - Unknown (1)
uint32 {4}   - File Offset? [*4096] (can be -1)


byte {X}     - null Padding

// for each file

uint32 {4}   - File Length (not always reliable?)
byte {X}     - Compressed File Data
byte {X}     - null Padding to a multiple of 4096 bytes

MultiEx BMS

Not written yet

Notes and Comments

  • Unsure about offsets etc.
  • Compression uses ZLib

Supported Programs

  • None