PLT file format

Applies to:
BG1, BG1: TotS, BG2, BG2: ToB, PST, IWD, IWD:HoW, IWD:TotL, IWD2

General Description
This file format describes the appearance of paperdolls displayed on the inventory screen. A paperdoll can display several "materials" (e.g. skin, hair, leather, metal) each of which is represented by a different colour set. The colours for each material are set in the CRE file (major and minor colour can be set within the game) which correspond to a colour gradient. Each pixel is mapped to a colour by the colour byte which is then given an intensity by the intensity byte. The colours are listed below:
  • 0 - Skin
  • 1 - Hair
  • 2 - Metal
  • 3 - Leather
  • 4 - Metal
  • 5 - Minor colour
  • 6 - Major colour
  • 7 - 127 Shadow
Colour maps 128 - 255 repeat this pattern.

Detailed Description


Offset Size (datatype) Description
0x00000 4 (char array) Signature ('PLT ')
0x00004 4 (char array) Version ('V1  ')
0x00008 2 (word) Unknown
0x0000a 2 (word) Unknown
0x0000c 2 (word) Unknown
0x0000e 2 (word) Unknown
0x00010 4 (dword) Width
0x00014 4 (dword) Height


This section consists of a pair of bytes for each pixel. The values are row/column lookups into MPAL256.bmp. The pixel information is stored left to right, bottom to top.
Offset Size (datatype) Description
0x00000 1 (byte) Column
0x00001 1 (byte) Row