GRAF:Ur-Lympiade: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>PXR
No edit summary
imported>WATTO
Line 8: Line 8:


<tt><b>
<tt><b>
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(NGS + null byte)</font> <br>  
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">("NGS" + null)</font> <br>  
uint16 {2}&nbsp;&nbsp; - ''<font color="red">Unknown</font>''<br>
uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
uint16 {2}&nbsp;&nbsp; - Number of files <br><br>
uint16 {2}&nbsp;&nbsp; - Number Of Files <br>  
<font color="blue"> ''' // for each file ''' </font><br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
: uint16 {2}&nbsp;&nbsp; - ''<font color="red">Unknown</font>''<br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br><br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
<font color="blue"> ''' // for each file ''' </font><br>
<br>
: uint32 {4}&nbsp;&nbsp; - File Offset <br><br>
<font color="blue"> ''' // for each file ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
</b></tt>
</b></tt>



Revision as of 10:23, 20 December 2005

GFX, SFX

  • Format Type : Archive
  • Endian Order : Little Endian
  • Date Posted : Dec. 8, 2005

Format Specifications

char {4}     - Header ("NGS" + null)
uint16 {2}   - Unknown
uint16 {2}   - Number Of Files

// for each file

uint32 {4}   - File Length
uint16 {2}   - Unknown
byte {X}     - File Data


// for each file

uint32 {4}   - File Offset

MultiEx BMS Script

ImpType Standard ;
IDString 0 NGS ;
Set TEMP Long 6 ;
GoTo TEMP 0 ;
Get FILENUM Int 0 ;
SavePos FRSTFILE 0 ;
GoTo EOF 0 ;
SavePos TAILOFF 0 ;
Set TEMP Long FILENUM ;
Math TEMP *= 4 ;
Math TAILOFF -= TEMP ;
Math TAILOFF += 1 ;
GoTo TAILOFF 0 ;
For X = 1 To FILENUM ;
SavePos FOFFSETX 0 ;
Get FOFFSET Long 0 ;
SavePos NEXTFILE 0 ;
Set TEMP Long FOFFSET ;
Math TEMP -= 6 ;
GoTo TEMP 0 ;
SavePos FSIZEX 0 ;
Get FSIZE Long 0 ;
Log "" FOFFSET FSIZE FOFFSETX FSIZEX ;
GoTo NEXTFILE 0 ;
Next X ;

Supported by Programs