PLTT LFD resources are of variable size, and store a (possibly incomplete) palette used by ANIM and DELT resources.
Note: the .plt extension is a convention adopted by add-on developers when writing conversion programs, there are no real PLT files in DARK FORCES.
PLTT_File IS
{
| First | byte | // first color in the palette |
| Last | byte | // last color in the palette |
| colors | RGB_Color[n] | // n = Last - First + 1 |
| pad1 | byte | // unused = 0 |
}
Where:
RGB_Color Is
{
| R | byte | // Red intensity |
| G | byte | // Green intensity |
| B | byte | // Blue intensity |
}
Note that contrary to the PAL files, the intensities range from 0 to 255 in the PLTT resources.