Index  •  2DA  •  Effects  •  File Formats  •  Actions  •  Identifiers  •  Triggers  •  Appendices  •  Site Info  •  Legal

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

Header


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

Body

This section consists of a pair of bytes for each pixel. The pixel information is stored left to right, bottom to top.
Offset Size (datatype) Description
0x00000 1 (byte) Intensity
0x00001 1 (byte) Colour mapping. The highest bit may be a flag of some sort.