Traktor Racer SAR: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>PXR
No edit summary
imported>Ikskoks
m (Ikskoks moved page Traktor Racer to Traktor Racer SAR)
 
(5 intermediate revisions by 2 users not shown)
Line 16: Line 16:
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(relative to file data start)</font><br>  
: uint32 {4}&nbsp;&nbsp; - File Length <font color=purple>(compressed lenth?)</font><br>  
: uint32 {4}&nbsp;&nbsp; - File Length <font color="red">(compressed lenth?)</font><br>  
: uint32 {4}&nbsp;&nbsp; - File Length <font color=purple>(decompressed lenth?)</font><br>  
: uint32 {4}&nbsp;&nbsp; - File Length <font color="red">(decompressed lenth?)</font><br>  
<br>
<br>
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
Line 52: Line 52:


* [[MultiEx Commander|MultiEx Commander]]<br>
* [[MultiEx Commander|MultiEx Commander]]<br>
[[Category:File Format]]

Latest revision as of 23:47, 24 January 2021

SAR

  • Format Type : Archive
  • Endian Order : Little Endian
  • Date Posted : Jan. 16, 2006


Format Specifications

uint32 {4}   - Header (SARC)
uint32 {4}   - Number Of Files

// for each file

byte {1}     - Filename Length
char {X}     - Filename
byte {1}     - null Filename Terminator
uint32 {4}   - File Offset (relative to file data start)
uint32 {4}   - File Length (compressed lenth?)
uint32 {4}   - File Length (decompressed lenth?)


byte {X}     - File Data

MultiEx BMS Script

IDString 0 SARC ;
Get FILENUM Long 0 ;
SavePos DIRSTART 0 ;
For Z = 1 To FILENUM ;
Get FNSIZE Byte 0 ;
SavePos TEMP 0 ;
Math TEMP += FNSIZE ;
Math TEMP += 13 ;
GoTo TEMP 0 ;
Next Z ;
SavePos DATASTRT 0 ;
GoTo DIRSTART 0 ;
For F = 1 To FILENUM ;
Get FNSIZE Byte 0 ;
GetDString FNAME FNSIZE 0 ;
Get NULL Byte 0 ;
Get FOFFSET Long 0 ;
Get FSIZE Long 0 ;
Get FOOBAR Long 0 ;
Math FOFFSET += DATASTRT ;
Log FNAME FOFFSET FSIZE 0 0 ;
Next F ;

Compatible Programs