From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:WAD (Doom engine)" |
|---|
| claim | "A Doom-engine WAD starts with the 4 ASCII bytes IWAD (49 57 41 44, complete game data) or PWAD (50 57 41 44, patch WAD); the engine rejects any other value." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WAD (Doom engine)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "?? 57 41 44" |
|---|
| offset | "0x0" |
|---|
| meaning | ""IWAD" (first byte 0x49) or "PWAD" (first byte 0x50)" |
|---|
| alternatives | | "49 57 41 44" |
| "50 57 41 44" |
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "id-Software/DOOM a77dfb9, linuxdoom-1.10/w_wad.c W_AddFile: strncmp with "IWAD" then "PWAD", else I_Error "doesn't have IWAD or PWAD id"." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "freedoom1.wad and freedoom2.wad (Freedoom 0.13.0) start with IWAD." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "WAD magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:43:15.632Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:46:40.411Z" |
|---|
| summary | "Add the two concrete 4-byte magics as data.alternatives next to the wildcard form." |
|---|
| changed | |
|---|
|
|
|---|