> > Thanks, I think this will be useful. But which 16 of the original colors are remapped in this way?
> > And about the formats, you can find out more about them via the XCC source code.
> pal16: that 16 bytes
> pal256: the palette from bene.pal/ibm.pal
> sci: some color index from the image data
> rgb = pal256[pal16[sci]] * 4
I didn't understand the * 4 and when I implemented it it didn't work. But now I assume it's because you're using a byte-array as 32-bit palet.
Finally this problem is solved. Do you know how to get the units in the colors of the other houses?
> and well, speaking of the source, where exactly, hum,... :)
> i found out how to read that icon.icn file from dune.pak too (again: uses some sort of indirect palette), if you want information on that, i could try to write some txt file
Please, do so. What is stored inside that file?