Skip to main content

PAL field reference

File page · Format catalogue · Schema source

This page is generated from the Kaitai schema PAL.ksy each time the site is built. The schema is the authoritative description; statements are established unless marked inferred or unknown, and the evidence is listed on the file page (see the reading guide).

  • Schema: Eye of the Beholder II DOS palettes (PAL, EGA, COL)
  • Byte order: little-endian
  • File extension: pal, ega, col
  • Schema license: MIT

Description​

A palette of 256 colours, three bytes each, 768 bytes in all, with no header. The game reads the 768 bytes into its working palette and sends them to the display driver, which sets colours 0 to 255.

The same layout serves three kinds of file. The .PAL files are the palettes of the VGA display mode: one per dungeon style, named by the level's INF file (AZURE, CRIMSON, DUNG, FOREST, MEZZ, SILVER), PALETTE0 to PALETTE4 for the introduction and FINALE_0 to FINALE_7 for the ending. The .EGA files replace them in the EGA display mode: the level loader reads name.EGA instead of name.PAL, and MENU.EGA and INTRO.EGA serve the start menu and the introduction; the EGA driver maps each colour to the nearest of its own colours. PALETTE.COL is read once at start-up and is byte-for-byte FOREST.PAL. See the format overview.

All 28 original files are 768 bytes long and every component is between 0 and 63, the range of the VGA palette registers.

File structure​

FieldTypeSize, repetition and constraints
colourscolourrepeated 256 times

colours

Colours 0 to 255, in order. In the six dungeon palettes, colour 12 is black.

Type colour​

FieldTypeSize, repetition and constraints
redu1—
greenu1—
blueu1—

red

Red intensity, 0 to 63.

green

Green intensity, 0 to 63.

blue

Blue intensity, 0 to 63.