WWE WMXXI: Difference between revisions
Jump to navigation
Jump to search
imported>Mr.Mouse |
imported>Ikskoks No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 67: | Line 67: | ||
=== 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 22:30, 4 February 2021
Choose archive extension:
WAD
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
char {3} - Header (WAD)
uint32 {4} - Version (1)
uint32 {4} - null
uint32 {4} - Number Of Files
// for each file
- uint32 {4} - Hash?
- uint32 {4} - File Offset
- uint32 {4} - null
// for each file
- uint16 {2} - Length of file header [+2 for this field]
- uint32 {4} - Decompressed Length (or null)
- uint32 {4} - null
- byte {1} - Unknown (1)
- char {X} - Filename (determine the filename length from the LengthOfFileHeader field)
- byte {X} - File Data
MultiEx BMS Script
ComType ZLib1 ; IDString 0 WAD ; Get DUM Long 0 ; Get DUM Long 0 ; Get FNUM Long 0 ; For T = 1 To FNUM ; Get DUM Long 0 ; Get FEO Long 0 ; Get DUM Long 0 ; SavePos EO 0 ; GoTo FEO 0 ; Get JP Int 0 ; SavePos SS 0 ; Math SS += JP ; Get UCS Long 0 ; Get DUM Long 0 ; Get B Byte 0 ; SavePos S 0 ; Math SS -= S ; GetDString FN SS 0 ; SavePos FO 0 ; Set FSI Long UCS ; CLog FN FO FSI 0 0 UCS 0 ; GoTo EO 0 ; Next T ;
Notes and Comments
- The files in the directory are in a different order to the files in the archive
- The file data is compressed using ZLib