Skip to main content

FADING.DAT field reference

File page · Format catalogue · Schema source

This page is generated from the Kaitai schema FADING_DAT.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 fading tables (FADING.DAT)
  • Byte order: little-endian
  • File extension: dat
  • Schema license: MIT

Description​

Seven colour tables of 256 bytes, 1,792 bytes in all, used by the introduction in the VGA display mode to draw pictures darkened or fading. Each table maps every colour number to another colour number of the palette. See the format overview.

The introduction reads the file when it exists. Otherwise it builds the seven tables itself, table k (0 to 6) towards colour 18 with the weight 36 × (k + 1), and writes FADING.DAT. The tables of the original file are not those that rebuilding them from the introduction's palettes gives; which palette they were made from is unknown.

File structure​

FieldTypeSize, repetition and constraints
tablestablerepeated 7 times

tables

Tables 0 to 6, from the lightest change to the strongest. The introduction draws a shape through table level − 1 for a fade level of 1 to 7.

Type table​

FieldTypeSize, repetition and constraints
colour_mapu1repeated 256 times

colour_map

The colour number drawn for each colour 0 to 255. Entry 0 is 0 in the original file.