Difference between revisions of "TOCA Touring Car Championship BFP"

From XentaxWiki
Jump to: navigation, search
 
(Added BMS-script.)
Line 27: Line 27:
 
=== MultiEx BMS Script ===  
 
=== MultiEx BMS Script ===  
  
Not written yet<br><br>
+
<pre>ImpType SFileSize ;
 +
Get FILENUM Long 0 ;
 +
Get DATASTRT Long 0 ;
 +
Get FOOBAR Long 0 ;
 +
For X = 1 To FILENUM ;
 +
GetDString FNAME 16 0 ;
 +
Get FOFFSET Long 0 ;
 +
Math FOFFSET += DATASTRT ;
 +
SavePos FSIZEX 0 ;
 +
Get FSIZE Long 0 ;
 +
Log FNAME FOFFSET FSIZE 0 FSIZEX ;
 +
Next X ;
 +
</pre><br>
  
 
=== Compatible Programs ===  
 
=== Compatible Programs ===  
  
 
* [[Game Extractor|Game Extractor]]<br>
 
* [[Game Extractor|Game Extractor]]<br>
 +
* [[MultiEx Commander|MultiEx Commander]]<br>

Revision as of 04:14, 22 December 2005

Choose archive extension:

BFP


Format Specifications

uint32 {4}   - Number Of Files
uint32 {4}   - First File Offset [+12]
uint32 {4}   - Unknown

// for each file

char {16}    - Filename (null)
uint32 {4}   - Offset (relative to the end of the directory)
uint32 {4}   - Length


byte {X}     - File Data

MultiEx BMS Script

ImpType SFileSize ;
Get FILENUM Long 0 ;
Get DATASTRT Long 0 ;
Get FOOBAR Long 0 ;
For X = 1 To FILENUM ;
GetDString FNAME 16 0 ;
Get FOFFSET Long 0 ;
Math FOFFSET += DATASTRT ;
SavePos FSIZEX 0 ;
Get FSIZE Long 0 ;
Log FNAME FOFFSET FSIZE 0 FSIZEX ;
Next X ;

Compatible Programs