FILM (FLM Files)

A FILM LFD resource handles the scripting of a scene.

It specifies the PLTT to use as palette, the DELT to use as background, the ANIM to play, and the VOIC to play during the ANIM.

The PLTT, DELT and ANIM are in the same LFD as the FILM, while all the VOIC seem to refer to jedisfx.lfd

Note: the .flm extension is a convention adopted by add-on developers when writing conversion programs, there are no real FLM files in DARK FORCES.

First comes a header :

FILM_Header IS

{

u1 int // unknown
u2 int // unknown
nbENTRIES int // number of entries

}

Then follow a series of entries:

FILM_Entry IS

{

TYPE char[4] // type of the resource
NAME char[8] // name of the resource
LENGTH long // length of the resource
// including this structure

}

Note that this structure is identical to the LFD_IX_Entry structure.

Each entry may be:

Section Description
ANIM animation, this is a collection of DELT
DELT static image in delta format
PLTT palette used for ANIM and DELT
VOIC VOC (standard Creative Labs format)
VIEW First entry in the FILM
CUST Custom

The first entry is of type VIEW.

The PLTT entry seems to be of fixed size, and the ANIM entry depends on the number of frames in the animation.

See Carl Kenner's Description for more details on these entries.

Then comes a trailer:

FILM_Trailer IS

{

MAGIC char[4] // = 'END' + 0x00
u1 int // unknown
u2 int // unknown
u3 int // unknown

}

See Carl Kenner's description