Kyran wrote:Okay, so I have this graphic in GIMP. What do I need to do to make it colour cycle?
What do you mean by color cycle? Your sprite is currently set as a team color.
In the palette tutorial on this forum it said: "Private palettes didn't support color cycling, this must be simulated with
animation's."
If you are not using a private palette(I'm not sure what that entails), then you can change some of the colors to use some of the following index numbers:
Color cycling info for Warcraft 2:
3 flash red/green(attacked building on minimap)
38-47 cycle (water)
48-56 cycle (water-coast boundary)
202 pulsates red(Circle of Power)
240-244 cycle (water around ships, Runestone, Dark Portal)
Color cycling info for stratagus, (I might be mistaken on this)
38-47 cycle (water)
252 pulsates red
240-244 cycle (water of some sort)
stratagus.lua in wargus says the following:
AddColorCyclingRange(38, 47) -- water
AddColorCyclingRange(205, 207) -- building
AddColorCyclingRange(240, 244) -- icon
To change the index color you are using in the image, you first need to load the 256 color palette ( the one you are using in stratagus) into the image you want to edit(note, this can corrupt your image if you use a poor quality program, I suggest irfanview for this task even if you use another program for image editing). Then open an image of the palette contents with the same 256 color palette loaded into that image:
- image of war2 palette with war2 palette loaded in the image
- war2.png (2.11 KiB) Viewed 4806 times
. Then use a color replacer tool to make sure that you stick the correct color with the correct index in the correct location of the image.
- samp.png (26.93 KiB) Viewed 4806 times
If you want to change the colors that are cycled, then you have to move those colors to the correct indexes by editing the actual palette file like Andrettin suggested, which is not the editing of a graphic of the palette, but rather using a special palette editing tool to reassign different RGB values to different indexes of a palette file.