ANIMATED and SWITCHES lumps

These are the same as the ANIMATED and SWITCHES lumps used by BOOM. The following information is from boomref.txt:

ANIMATED

Definition of animated textures and flats recognized

Format:

The ANIMATED lump makes the names of the animated flats and textures known to the engine. It consists of a list of records, each 23 bytes long, terminated by a record (not used) whose first byte is -1 (255).

Length Description
1 byte 255 to terminate list, 0 if a flat, 1 if a texture
9 bytes Null terminated string naming last texture/flat in animation
9 bytes Null terminated string naming first texture/flat in animation
4 bytes Animation speed, number of frames between animation changes

SWITCHES

Definition of switch textures recognized

Format:

The SWITCHES lump makes the names of the switch textures used in the game known to the engine. It consists of a list of records each 20 bytes long, terminated by an entry (not used) whose last 2 bytes are 0.

Length Description
9 bytes Null terminated string naming "off" state texture for switch
9 bytes Null terminated string naming "on" state texture for switch
2 bytes Short integer for tde IWADs switch will work in
1=shareware
2=registered/retail DOOM or shareware
3=DOOM II, registered/retail DOOM, or shareware
0=terminates list of known switches

The utility package contains a program, SWANTBLS.EXE that will generate both the SWITCHES and ANIMATED lumps from a text file. An example is provided, DEFSWANI.DAT that generates the standard set of switches and animations for DOOM.