Skip to content
alexeevdv edited this page Jan 29, 2013 · 6 revisions
struct FrmFile {
    unsigned int version; // Version number of FRM file format
    unsigned short framesPerSecond; // Frames per second rate of the animation
    unsigned short actionFrame; // Frames per second rate of the animation
    unsigned short framesPerDirection; // Frame of the animation on which actions occur (shot, open doors, etc.)
    signed short directionShiftX[6]; // Required shift in the X direction
    signed short directionShiftY[6]; // Required shift in the Y direction
    unsigned int directionDataOffset[6]; // First direction frame offset from the beginning of frame area
    unsigned int frameDataSize; // Size of frame area - Could be used to allocating memory for frames
    FrmFrame frames[6][framesPerDirection]; // Data for each direction
}

struct FrmFrame {
    unsigned short width; // frame width in pixels 
    unsigned short height; // frame height in pixels
    unsigned short dataSize; // Number of pixels for frame 
    signed short offsetX; // Offset of this frame from the previous frame in X direction
    signed short offsetY; // Offset of this frame from the previous frame in Y direction
    unsigned char colorIndexes[dataSize]; // Pallet color index  
}

Back to Fallout 2 file formats

Clone this wiki locally