Nascar Heat

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

RES, TRK


Format Specifications

char {4}     - Header (0TSR) // Note the zero, not the letter "O"
uint32 {4}   - null
uint32 {4}   - Number Of Files
uint32 {4}   - Number Of Files (duplicate)
uint32 {4}   - Archive Length

// for each file

char {36}    - Filename (null)
char {4}     - Type Code (GAMI=*.img, TYAL=*.lyt, PMTS=*.fnt, etc.)
uint32 {4}   - Unknown (1)
uint32 {4}   - File Length [+4]
uint64 {8}   - null


uint32 {4}   - null

// for each file

byte {X}     - File Data
uint32 {4}   - null


MultiEx BMS Script

IDString 0 0TSR ;
Get DUMMYL Long 0 ;
Get FILECNTL Long 0 ;
Get DUMMYL Long 0 ;
Get TAILOFF Long 0 ;
SavePos FILESTART 0 ;
Set DUMMYL Long FILECNTL ;
Math DUMMYL *= 56 ;
Math DUMMYL += 20 ;
Do ;
GoTo FILESTART 0 ;
Get FILENAME String 0 ;
Math FILESTART += 44 ;
GoTo FILESTART 0 ;
Get FILESIZE Long 0 ;
Math FILESTART += 12 ;
Math DUMMYL += 4 ;
Set FILEOFF Long DUMMYL ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
Math DUMMYL += FILESIZE ;
Math DUMMYL += 4 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;

Compatible Programs