ANIMATED

The ANIMATED lump is a Boom feature for defining additional animated walls and flats. Although some modern editors such as SLADE 3 allow to create and edit this lump directly in binary form, the original method devised by TeamTNT involved creating a text file and converting it with a small utility called swantbls (switch and animation tables).

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). The terminating record does not need to be complete and may be only the first byte; the rest will be ignored.

Swantbls syntax
The swantbls tool converts a plain text file into an ANIMATED and SWITCHES lump. The format of the plain text file prior to conversion is as follows (quoth defswani.dat):

# [SWITCHES] 1      SW1BRCOM        SW2BRCOM ...
 * 1) This file is input for SWANTBLS.EXE, it specifies the switchnames
 * 2) and animated textures and flats usable with BOOM. The output of
 * 3) SWANTBLS is two lumps, SWITCHES.LMP and ANIMATED.LMP that should
 * 4) be inserted in the PWAD as lumps.
 * 1) switches usable with each IWAD, 1=SW, 2=registered DOOM, 3=DOOM2
 * 1) epi   texture1        texture2

[FLATS] 8      NUKAGE3     NUKAGE1 ...
 * 1) animated flats, spd is number of frames between changes
 * 1) spd   last        first

[TEXTURES] 8      BLODGR4     BLODGR1 ...
 * 1) animated textures, spd is number of frames between changes
 * 1) spd   last        first