Page 1 of 1

Player Color Issue

Posted: Wed Mar 12, 2014 12:23 pm
by shedeen
Hi all, shedeen again.

I'm still familiarizing myself with the resources used with Stratagus and have run into another problem. I'm aware of the special color set used for defining the player colors in each unit and structure, but every time I save a file with a new unit or structure graphic it seems to just use the red used for defining the player color without replacing it. In other words, every player is red because the player colors aren't replacing it. I'm using the exact same RGB values as the files that were included with Aleona's Tales, and I've tried saving them with multiple editors (MS Paint just crashes the game, while Paint.NET works but still has the same color problem); I'm not sure what the problem could be. If the scripts detect the right RGB values for drawing player colors, that should be all I need, right?

This problem is tough to explain, so if you need more information, feel free to just ask.

Regards,

shedeen

Re: Player Color Issue

Posted: Wed Mar 12, 2014 4:33 pm
by Andrettin
Hey shedeen,

The player color isn't really attached to particular RGB values, but to certain palette indexes (in Aleona's Tales I believe those palette indexes are defined to be 208-211). So what you have to do is index your graphics to a palette (GIMP can do that) and make the player colors be colors 208, 209, 210 and 211. Having a non-indexed image tends to crash the game, too.

Keep in mind though that colors 38-47 are used for color cycling, so it would probably be better if you filled those color indexes with a "filler" color, like pure black (000000).

Re: Player Color Issue

Posted: Thu Mar 13, 2014 6:40 am
by shedeen
Ah, that makes sense. Thanks, Andrettin.

Re: Player Color Issue

Posted: Thu Mar 13, 2014 8:01 am
by Kyran
Open an existing AT graphic in GIMP. Copy your unit graphic over the top. Save.