Backyard Football MET: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Mr.Mouse |
||
| Line 39: | Line 39: | ||
=== MultiEx BMS === | === MultiEx BMS === | ||
<pre> | |||
ImpType Standard ; | |||
Get HeaderSize Long 0 ; | |||
Get DataSize Long 0 ; | |||
SavePos COff 0 ; | |||
Do ; | |||
SavePos FOO 0 ; | |||
Get FO Long 0 ; | |||
If FO <> 0 ; | |||
SavePos FSO 0 ; | |||
Get FS Long 0 ; | |||
Get NSize Long 0 ; | |||
GetDString FName NSize 0 ; | |||
SavePos COff 0 ; | |||
Log FName FO FS FOO FSO ; | |||
Else ; | |||
Set COff Long HeaderSize ; | |||
EndIf ; | |||
While COff < HeaderSize ; | |||
</pre><br><br> | |||
=== Notes and Comments === | === Notes and Comments === | ||
Revision as of 21:08, 1 January 2006
MET
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// ARCHIVE HEADER
- uint32 {4} - Files Directory Offset (28)
- uint32 {4} - Files Directory Length
- uint32 {4} - Number Of Files
- uint32 {4} - Filename Directory Offset
- uint32 {4} - Filename Directory Length
- uint32 {4} - First File Offset
- uint32 {4} - File Data Length
// FILES DIRECTORY
- // for each file
- uint32 {4} - Unknown (usually null)
- uint32 {4} - Unknown (dir entries = 0)
- uint32 {4} - Filename Offset
- uint32 {4} - File Offset
- uint32 {4} - File Length
- uint32 {4} - Unknown (usually null)
// FILENAME DIRECTORY
- byte {1} - null
- // for each file
- char {X} - Filename
- byte {1} - null Filename Terminator
- char {X} - Filename
// FILE DATA
- // for each file
- byte {X} - File Data
- byte {X} - File Data
MultiEx BMS
ImpType Standard ; Get HeaderSize Long 0 ; Get DataSize Long 0 ; SavePos COff 0 ; Do ; SavePos FOO 0 ; Get FO Long 0 ; If FO <> 0 ; SavePos FSO 0 ; Get FS Long 0 ; Get NSize Long 0 ; GetDString FName NSize 0 ; SavePos COff 0 ; Log FName FO FS FOO FSO ; Else ; Set COff Long HeaderSize ; EndIf ; While COff < HeaderSize ;
Notes and Comments
- Some files have length=0