Traktor Racer SAR: Difference between revisions
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} - Filename <br> | : char {X} - Filename <br> | ||
: byte {1} - null Filename Terminator <br> | : byte {1} - null Filename Terminator <br> | ||
: uint32 {4} - File Offset <br> | : uint32 {4} - File Offset <font color="purple">(relative to file data start)</font><br> | ||
: uint32 {4} - File Length <font color= | : uint32 {4} - File Length <font color="red">(compressed lenth?)</font><br> | ||
: uint32 {4} - File Length <font color= | : uint32 {4} - File Length <font color="red">(decompressed lenth?)</font><br> | ||
<br> | <br> | ||
byte {X} - File Data <br> | byte {X} - 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 ;