The WAD Format¶
Most of you out there are probably very familiar with the WAD file format developed by Id Software. The format was borrowed with their consent and was used for all the data in Rise of the Triad. Remote sound files denoted by the .rts extension are also WADs. They just don't have a .wad extension.
The WAD structure itself is identical to that of other WADs, where the WAD header is as follows:
and the WAD directory is made up of numlumps of:
lumpinfo_t :: struct {
filepos: u32le,
size: u32le,
name: string, //(max length: 8, does not have to be null-terminated, but does have to be padded to 8 bytes with nulls.)
}