Empire 2: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Ikskoks No edit summary |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 24: | Line 24: | ||
=== MultiEx BMS Script === | === MultiEx BMS Script === | ||
<pre> | |||
Set FILESTART Long 32 ; | |||
Do ; | |||
GoTo FILESTART 0 ; | |||
GetDString FILENAME 6 0 ; | |||
Get FILEOFF Long 0 ; | |||
SavePos FILESTART 0 ; | |||
GetDString FILENAME 6 0 ; | |||
Get FILESIZE Long 0 ; | |||
ReverseLong FILEOFF ; | |||
ReverseLong FILESIZE ; | |||
If FILESIZE = 0 ; | |||
CleanExit ; | |||
EndIf ; | |||
Math FILESIZE -= FILEOFF ; | |||
Log "" FILEOFF FILESIZE 0 0 ; | |||
While NotEOF <> 0 ; | |||
</pre> | |||
=== Compatible Programs === | === Compatible Programs === | ||
* [[MultiEx_Commander|MultiEx Commander]] | |||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
[[Category:File Format]] | |||
Latest revision as of 12:30, 4 January 2021
Choose archive extension:
DAT
- Format Type : Archive
- Endian Order : Big Endian
Format Specifications
byte {32} - Unknown
// for each file
- char {6} - Filename
- uint32 {4} - File Offset
byte {X} - File Data
MultiEx BMS Script
Set FILESTART Long 32 ; Do ; GoTo FILESTART 0 ; GetDString FILENAME 6 0 ; Get FILEOFF Long 0 ; SavePos FILESTART 0 ; GetDString FILENAME 6 0 ; Get FILESIZE Long 0 ; ReverseLong FILEOFF ; ReverseLong FILESIZE ; If FILESIZE = 0 ; CleanExit ; EndIf ; Math FILESIZE -= FILEOFF ; Log "" FILEOFF FILESIZE 0 0 ; While NotEOF <> 0 ;