Thats right... thats how the flags are formed, by manipulating the colours in the palette.
Each countries palette maps to the basic palette found on the counter_strip.bmp. Thats ordinarily how you can vary the colour of the counters... e.g. on the counter_strip.bmp, what you see as the pink part of the counter is made up of colour (just for example, I dont know the exact number right off) #59. Therefore whatever colour you make colour #59 on the country specific palette (afg.bmp for example) will be what you actually see in the game.
Clear as mud? ok!
So how they make the flags is the modify the counter_strip.bmp. They make a block of pixels 6x6 or however big the flags are and make each pixel a different colour # in the palette.
Now to make the flag for the specific country you want, you open up that country's palette and change the colours of each of the colour #s that make up the flag.
For example, lets say the flag portion of the counter_strip.bmp looked something like this (block of pixels, the numbers correspong to what colour # from the palette is assigned to that pixel):
21 22 23 24 25 26
27 28 29 30 31 32
33 34 35 36 37 38
39 40 41 42 43 44
45 46 47 48 49 50
51 52 53 54 55 56
Now in the counter_strip.bmp, #21-56 in the palette might all be magenta, in which case you would just see a block of magenta, indistinguishable from the rest of the counter.
But if, in say, fra.bmp, colours 21,22,27,28,33,34,39,40,45,46,51,52 were blue, 23,24,29,30,35,36,41,42,47,48,53,54 were white, and 25,26,31,32,37,38,43,44,49,50,55,56 were red, well then you'd see the flag of France on that 6x6 block of pixels on the counter.
How's that for a primer?
