Difference between revisions of "WAD IWAD"

From XentaxWiki
Jump to: navigation, search
m
m (Reverted edits by NjcPof (Talk); changed back to last version by J-Dub)
Line 8: Line 8:
  
 
<tt><b>
 
<tt><b>
char {4}
+
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(IWAD)</font> <br>
 +
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>
 +
uint32 {4}&nbsp;&nbsp; - Directory Offset <br>
 +
<br>
 +
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
 +
<br>
 +
<font color="blue"> ''' // Directory ''' </font> <br>
 +
: <font color="blue"> ''' // for each file ''' </font> <br>
 +
:: uint32 {4}&nbsp;&nbsp; - File Offset <br>
 +
:: uint32 {4}&nbsp;&nbsp; - File Length <br>
 +
:: char {8}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
 +
<br>
 +
</b></tt>
 +
 
 +
=== MultiEx BMS Script ===
 +
 
 +
<pre>ImpType Standard ;
 +
IDString 0 IWAD ;
 +
Get FC Long 0 ;
 +
SavePos TailOffOff 0 ;
 +
Get TO Long 0 ;
 +
GoTo TO 0 ;
 +
For TE = 1 To FC ;
 +
SavePos FOO 0 ;
 +
Get FO Long 0 ;
 +
SavePos FSO 0 ;
 +
Get FS Long 0 ;
 +
GetDString FN 8 0 ;
 +
Log FN FO FS FOO FSO ;
 +
Next TE ;
 +
</pre>
 +
 
 +
=== Compatible Programs ===
 +
 
 +
* [[MultiEx Commander]]
 +
* [[Game Extractor|Game Extractor]]
 +
* [[Fusepak]]
 +
* [[zWad]]
 +
 
 +
=== Other Games ===
 +
 
 +
These games use this file format<br>
 +
* Doom *.wad
 +
* Doom 2 *.wad
 +
* Duke Nukem 3D *.wad
 +
* Heretic *.wad
 +
* Hexen *.wad
 +
* Quake 2 *.wad
 +
* Shadow Warrior *.wad
 +
* Strife *.wad

Revision as of 15:57, 14 June 2007

WAD


Format Specifications

char {4}     - Header (IWAD)
uint32 {4}   - Number Of Files
uint32 {4}   - Directory Offset

byte {X}     - File Data

// Directory

// for each file
uint32 {4}   - File Offset
uint32 {4}   - File Length
char {8}     - Filename


MultiEx BMS Script

ImpType Standard ;
IDString 0 IWAD ;
Get FC Long 0 ;
SavePos TailOffOff 0 ;
Get TO Long 0 ;
GoTo TO 0 ;
For TE = 1 To FC ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
GetDString FN 8 0 ;
Log FN FO FS FOO FSO ;
Next TE ;

Compatible Programs

Other Games

These games use this file format

  • Doom *.wad
  • Doom 2 *.wad
  • Duke Nukem 3D *.wad
  • Heretic *.wad
  • Hexen *.wad
  • Quake 2 *.wad
  • Shadow Warrior *.wad
  • Strife *.wad