Soldier Front SFF: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Baccello
No edit summary
 
imported>Ikskoks
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 12: Line 12:
: <font color="blue"> ''' // for each file ''' </font> <br>  
: <font color="blue"> ''' // for each file ''' </font> <br>  
:: char {128}&nbsp;&nbsp; - Path Filename <font color="purple">(included null and filled with 0xCC char) </font> <br>  
:: char {128}&nbsp;&nbsp; - Path Filename <font color="purple">(included null and filled with 0xCC char) </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Filename length <br>
:: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(start from end of File Directory) </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(start from end of File Directory) </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - File Length <br>  
:: uint32 {4}&nbsp;&nbsp; - File Length <br>  
<br>
<font color="blue"> ''' // FILE DATA ''' </font> <br>
: <font color="blue"> ''' // for each file ''' </font> <br>
:: byte {x}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
<br>
<br>
</b></tt>
</b></tt>
Line 22: Line 25:


=== MultiEx BMS Script ===
=== MultiEx BMS Script ===
{{NoBMSScript}}
<bms author="Baccello" games="'Soldier Front'" ext="sff" platforms="'PC'" verbose="no" silence="no">
ImpType Standard ;
Get NOF Long 0 ;
Set SHIFT Long 136 ;
Math SHIFT *= NOF ;
Math SHIFT += 4 ;
For I = 1 to NOF ;
SavePos T 0 ;
Get PN String 0 ;
Math T += 128 ;
Goto T 0 ;
SavePos OFO 0 ;
Get FO Long 0 ;
Math FO += SHIFT ;
SavePos OFL 0 ;
Get FL Long 0 ;
Log PN FO FL OFO OFL ;
NEXT I ;
</bms>


=== Supported by Programs ===
=== Supported by Programs ===
{{NoProgramSupport}}
{{NoProgramSupport}}
[[Category:File Format]]

Latest revision as of 12:14, 21 January 2021

SFF


Format Specifications

uint32 {4}   - Number Of Files

// FILES DIRECTORY

// for each file
char {128}   - Path Filename (included null and filled with 0xCC char)
uint32 {4}   - File Offset (start from end of File Directory)
uint32 {4}   - File Length


// FILE DATA

// for each file
byte {x}     - File Data


Notes and Comments

None

MultiEx BMS Script

<bms author="Baccello" games="'Soldier Front'" ext="sff" platforms="'PC'" verbose="no" silence="no"> ImpType Standard ; Get NOF Long 0 ; Set SHIFT Long 136 ; Math SHIFT *= NOF ; Math SHIFT += 4 ; For I = 1 to NOF ; SavePos T 0 ; Get PN String 0 ; Math T += 128 ; Goto T 0 ; SavePos OFO 0 ; Get FO Long 0 ; Math FO += SHIFT ; SavePos OFL 0 ; Get FL Long 0 ; Log PN FO FL OFO OFL ; NEXT I ; </bms>

Supported by Programs

Unknown