DKRDS Palette Bank (File Format)

From Wexos's Wiki
Revision as of 22:52, 26 May 2026 by Atlas (talk | contribs) (Created page with "'''DKRDS Palette Bank''' is a nameless file format used in ''[https://en.wikipedia.org/wiki/Diddy_Kong_Racing_DS Diddy Kong Racing DS]''. It contains BGR555 color data used to render pixels from tile sprites. It exists in two variants depending on the bit-depth of the accompanying DKRDS Texture Tileset file: a 16-palette bank (for 4bpp tiles) or a single 256-color palette (for 8bpp tiles). Both variants are exactly 512 bytes. Other filetypes that are commonly associa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

DKRDS Palette Bank is a nameless file format used in Diddy Kong Racing DS. It contains BGR555 color data used to render pixels from tile sprites. It exists in two variants depending on the bit-depth of the accompanying DKRDS Texture Tileset file: a 16-palette bank (for 4bpp tiles) or a single 256-color palette (for 8bpp tiles). Both variants are exactly 512 bytes. Other filetypes that are commonly associated with palette banks, and necessary to create screen backgrounds, are DKRDS Tile Layout and DKRDS Tilemap. Its type identifier in assets.bin is 0x00.

File Format

The file byte order is always little endian.

Variant A

The first variant is used with 4bpp DKRDS Texture Tileset files. The 512 bytes are divided into 16 palettes of 16 colors each.

Structure

Offset Type Description
0x00 UInt16[16] Palette 0 (colors 0-15).
0x20 UInt16[16] Palette 1 (colors 0-15).
... ... ...
0x1E0 UInt16[16] Palette 15 (colors 0-15).

Variant B

The second variant is used with 8bpp DKRDS Texture Tileset files. The 512 bytes form a single palette of 256 colors; pixel bytes index directly into it.

Structure

Offset Type Description
0x00 UInt16[256] BGR555 colors (colors 0-255).

Notes

Color index 0 of any palette is transparent regardless of the stored BGR555 value.

Tools

The following tools can handle DKRDS Palette Bank:

  • (none)