SBF0: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Ikskoks No edit summary |
||
| (41 intermediate revisions by 5 users not shown) | |||
| Line 6: | Line 6: | ||
=== Format Specifications === | === Format Specifications === | ||
<tt><b> | |||
char {4} - Header <font color="purple">(SBF0)</font> <font color="blue">// note the zero, it is not an O </font><br /> | |||
uint32 {4} - <font color="red"> '' Unknown <font color="purple">(256)</font> '' </font><br /> | |||
uint64 {8} - <font color="red"> '' Type number? <font color="purple">(various)</font> '' </font><br /> | |||
uint32 {4} - <font color="red"> '' Unknown <font color="purple">(24)</font> '' </font><br /> | |||
uint32 {4} - Number Of Files | |||
< | <font color="blue"> ''' // for each file ''' </font> | ||
char { | : char {8} - Filename <font color="purple">(null)</font> | ||
uint32 {4} - <font color="red"> '' Unknown <font color="purple">( | : uint32 {4} - <font color="red"> '' Unknown <font color="purple">(0)</font> '' </font> | ||
: uint32 {4} - Offset | |||
uint32 {4} - <font color="red"> '' Unknown <font color="purple">( | : uint32 {4} - Size | ||
: uint32 {4} - Max segment size <font color="purple">(0x1008 for DF, 0x1000 for TTF)</font> | |||
: uint32 {4} - <font color="red"> '' Unknown <font color="purple">(0)</font> '' </font> | |||
<font color="blue"> ''' // for each | |||
: | byte {X} - File Data | ||
: | : <font color="blue">'''// for each segment'''</font> | ||
:: uint32 {4} - Segment size | |||
: | :: uint8 {1} - <font color="red">''Audio channel? <font color="purple">(0-7)</font>''</font> | ||
< | :: uint8 {1} - <font color="red">''Unknown <font color="purple">(same as previous)</font>''</font> | ||
byte {X} - | :: uint16 {2} - <font color="red">''Flags? <font color="purple">(194 for DFLW, 292 for DFX2)</font>''</font> | ||
:: byte {X} - Segment data | |||
</b></tt> | </b></tt> | ||
==== Type numbers ==== | |||
*Music - 1 | |||
*Data - 17 | |||
=== MultiEx BMS Script === | === MultiEx BMS Script === | ||
<pre>ImpType Standard ; | |||
IDString 0 SBF0 ; | |||
Set TEMP Long 20 ; | |||
GoTo TEMP 0 ; | |||
Get FILENUM Long 0 ; | |||
For F = 1 To FILENUM ; | |||
GetDSTring FNAME 16 0 ; | |||
SavePos FOFFSETX 0 ; | |||
Get FOFFSET Long 0 ; | |||
SavePos FSIZEX 0 ; | |||
Get FSIZE Long 0 ; | |||
Get FOO Long 0 ; | |||
Get BAR Long 0 ; | |||
Log FNAME FOFFSET FSIZE FOFFSETX FSIZEX ; | |||
Next F ;</pre><br> | |||
=== Compatible Programs === | === Compatible Programs === | ||
* [[Game Extractor|Game Extractor]]<br><br> | * [[Game Extractor|Game Extractor]] | ||
* [[MultiEx Commander|MultiEx Commander]]<br><br> | |||
=== Other Games === | === Other Games === | ||
| Line 37: | Line 61: | ||
* Delta Force Land Warrior *.sbf | * Delta Force Land Warrior *.sbf | ||
* Delta Force Xtreme *.sbf | * Delta Force Xtreme *.sbf | ||
* F-16 Multirole Fighter *.sbf | |||
[[Category:File Format]] | |||
Latest revision as of 11:52, 4 January 2021
SBF
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
char {4} - Header (SBF0) // note the zero, it is not an O
uint32 {4} - Unknown (256)
uint64 {8} - Type number? (various)
uint32 {4} - Unknown (24)
uint32 {4} - Number Of Files
// for each file
- char {8} - Filename (null)
- uint32 {4} - Unknown (0)
- uint32 {4} - Offset
- uint32 {4} - Size
- uint32 {4} - Max segment size (0x1008 for DF, 0x1000 for TTF)
- uint32 {4} - Unknown (0)
byte {X} - File Data
- // for each segment
- uint32 {4} - Segment size
- uint8 {1} - Audio channel? (0-7)
- uint8 {1} - Unknown (same as previous)
- uint16 {2} - Flags? (194 for DFLW, 292 for DFX2)
- byte {X} - Segment data
Type numbers
- Music - 1
- Data - 17
MultiEx BMS Script
ImpType Standard ; IDString 0 SBF0 ; Set TEMP Long 20 ; GoTo TEMP 0 ; Get FILENUM Long 0 ; For F = 1 To FILENUM ; GetDSTring FNAME 16 0 ; SavePos FOFFSETX 0 ; Get FOFFSET Long 0 ; SavePos FSIZEX 0 ; Get FSIZE Long 0 ; Get FOO Long 0 ; Get BAR Long 0 ; Log FNAME FOFFSET FSIZE FOFFSETX FSIZEX ; Next F ;
Compatible Programs
Other Games
These games also use this file format
- Delta Force Land Warrior *.sbf
- Delta Force Xtreme *.sbf
- F-16 Multirole Fighter *.sbf