scmJS docs

COLR

The colour of each of Players 1 to 8. StarCraft: Remastered can override it with CRGB.

Only a Brood War file's COLR is read (VER 205, and Remastered's 206), at the start of every game, and such a file needs it: without it the map is listed, but every game on it stops with Error loading scenario file. A VER 59 or 63 file's COLR is ignored, and so is a VER 64 file's in Remastered. In 1.16.1 their players get the usual colours; in Remastered only CRGB can change them.

Each byte names a colour slot, and the player takes the colour that slot had before the section was read. Slot 0 is Player 1's, slot 1 Player 2's and so on, and the table below names each by its usual colour. So a byte naming the player's own slot leaves its colour alone, and two players whose bytes name each other's slots swap colours. Only the twelve colours 0 to 11 work here: 1.16.1 gives a wrong colour for 12 and up, and Remastered skips such a value, which leaves the player its usual colour. In Remastered a CRGB Custom colour can give the player any colour.

Name COLR (43 4F 4C 52)
Size 8 bytes.
Read by The game, at the start of every game, in a Brood War file (VER 205, or Remastered's 206). In a VER 59, 63 or 64 file the game never reads it.
Required In a Brood War file (VER 205, or Remastered's 206). Without it every game on the map stops at the start with Error loading scenario file.
The game accepts Exactly 8 bytes. Any other length refuses the map.
More than one copy Each copy rearranges the colours as the copy before left them, so two copies that swap the same two colours put them back.
In scmJS Read, and written again when you change what it holds.

Layout:

Offset Type Holds
0 u8 × 8 The colour of each of Players 1 to 8
Value Colour
0 Red
1 Blue
2 Teal
3 Purple
4 Orange
5 Brown
6 White
7 Yellow
8 Green
9 Pale Yellow
10 Tan
11 Dark Aqua
12 Pale Green
13 Bluish Grey
14 Pale Yellow II
15 Cyan
16 Pink
17 Olive
18 Lime
19 Navy
20 Dark Green
21 Black