Difference between revisions of "Descent HOG2"

From XentaxWiki
Jump to: navigation, search
 
 
Line 48: Line 48:
 
* [[MultiEx_Commander|MultiEx Commander]]
 
* [[MultiEx_Commander|MultiEx Commander]]
 
* [[Game Extractor|Game Extractor]]<br>
 
* [[Game Extractor|Game Extractor]]<br>
 +
 +
 +
[[Category:File Format]]

Latest revision as of 12:54, 4 January 2021

HOG, D3C, D3M, MN3


Format Specifications

char {4}     - Header (HOG2)
uint32 {4}   - Number Of Files
uint32 {4}   - First File Offset
byte {56}    - Padding (all (byte)255's)

// for each file

char {36}    - Filename (null)
uint32 {4}   - null
uint32 {4}   - Size
uint32 {4}   - Timestamp


byte {X}     - File Data

MultiEx BMS Script

IDString 0 HOG2 ;
Get FILECNTL Long 0 ;
Get FILESTART Long 0 ;
SavePos DUMMYL 0 ;
Math DUMMYL += 56 ;
Do ;
GoTo DUMMYL 0 ;
GetDString FILENAME 40 0 ;
Get FILESIZE Long 0 ;
Get DUMMYL Long 0 ;
SavePos DUMMYL 0 ;
GoTo FILESTART 0 ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
SavePos FILESTART 0 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;

Compatible Programs