KORT Image Format

From ModdingWiki
Jump to navigation Jump to search
KORT Image Format
KORT Image Format.png
Format typeImage
HardwareVGA
Colour depth8-bit (VGA)
Minimum size (pixels)320×240
Maximum size (pixels)320×240
PaletteShared
Plane count1
Transparent pixels?No
Hitmap pixels?No
Games

The fullscreen images in King Arthur's K.O.R.T. use a simple 8-bit 320x240 image format without header, which is compressed with value-length pair RLE. It uses numeric file extensions from 000 to 017.

Research into the format was done by David Eriksson, aka 'Σdison of 2GooD', who released the information in a document included in his KORT savegame editor.

Format

The file has no header, and is made up of byte pairs that indicate RLE-compressed data, with first a colour index, and then a byte indicating the amount of times this colour should be repeated. This means that the image files always have an even number of bytes.

The full image is always 8-bit and has a size of 320x240 pixels, so the result of the decompression should always yield exactly 76800 bytes. There is no palette included in any external game file; the easiest way to get the game's colour palette is to make a screenshot of the game in DOSBox and extract its colours.

The picture is stored with its origin in the lower left corner, meaning that just like standard BMP format, the final decompressed data should be flipped.

Tools

The following tools are able to work with files in this format.

Name PlatformView images in this format? Convert/export to another file/format? Import from another file/format? Access hidden data? Edit metadata? Notes
Engie File Converter WindowsYesYesYesN/AN/A