Resources with default pcx background color on map...

Gojira54

The folly of Man
Joined
Apr 22, 2002
Messages
2,240
Location
Monster Island black-sand beaches
Well, this is a first for me. I went to test out the new DR resources to see how they look in-game, and was greeted with this ugliness. I understand it is likely a pallette issue, but I haven't the foggiest on how to get past it. Using GIMP (or MS Paint), how do I fix it?

upload_2020-12-16_12-54-26.png
 
It's most likely that you don't have the magenta in the transparency slot in the palette. My tutorial* (link in signature) explains what the problem is and how to fix this in GIMP. It's a simple fix once you understand what's going on. If you have trouble fixing it, post the actual pcx & I can take a look.

* for the moment you will want to read the opening section on Terminology & skip to the section "To get the Green & Magenta in the proper slots". If you scroll down to the "Summary" that's the TL : DR version, but you gotta know the details to understand it. ;)
 
Last edited:
It's most likely that you don't have the magenta in the transparency slot in the palette. My tutorial* (link in signature) explains what the problem is and how to fix this in GIMP. It's a simple fix once you understand what's going on. If you have trouble fixing it, post the actual pcx & I can take a look.

* for the moment you will want to read the opening section on Terminology & skip to the section "To get the Green & Magenta in the proper slots". If you scroll down to the "Summary" that's the TL : DR version, but you gotta know the details to understand it. ;)

Don't let anyone ever tell you that you are not awesome! This fixed my issue 100%, beautifully and quickly!

I can't believe with all the years I've been messing with resources, I've never hit this issue before. Or if I have, I've long forgotten it. Problem solved. :D
 
Ignore the placements and the other graphics like terrain. I just replaced the art files and haven't updated what resources will go on what terrain yet...

upload_2020-12-16_14-33-0.png
 
With any pcx, the last two colors are transparent. Doesn't matter which colors they are (it's just the norm to use magenta and the intense green one cause you aren't likely to include them in your graphics anyway).
 
With any pcx, the last two colors are transparent. Doesn't matter which colors they are (it's just the norm to use magenta and the intense green one cause you aren't likely to include them in your graphics anyway).
True but I will add that you can also use Any Color that is also in the Graphics IF you index the same Color correctly on the palette... it is simply much easier to use the Magenta and Green for the Transparent Colors because as Kyriakos stated, they are not generally used in the Graphics we use.
 
True but I will add that you can also use Any Color that is also in the Graphics IF you index the same Color correctly on the palette... it is simply much easier to use the Magenta and Green for the Transparent Colors because as Kyriakos stated, they are not generally used in the Graphics we use.

This is explicit throughout the tutorial. It's directly stated in the Terminology, in the Techniques and in the Summary sections of the Tutorial. For those who prefer not to read the tutorial (where fuller explanations can be found) here are the most immediately relevant passages with emphasis added.

...
Terminology


About the use of “Green” and “Magenta”

As has been mentioned many times in many posts in many threads it is the location in the palette/colormap that determines what is invisible in-game – not the particular color. The standard game files use bright Green (RGB 0 255 0 ) and Magenta (RGB 255 0 255). The reason those two colors were used is because they are highly visible and rarely used for in-game content so it is very easy to tell what will be invisible. So most of us use the same for our files. Makes seeing what other people have done in creating graphic files easier. Same goes for understanding illustrations accompanying posted explanations and tutorials. For all of those reasons it has become common practice on the forum to write “green” and “magenta” as shorthand for “the colors in the last two slots of the palette which are reserved for what needs to be invisible in-game.” The explanation below follows the common practice in both text and pictures. But keep in mind any colors can be used. This comes in handy if your pcx includes pinks and greens that are close enough to those colors to be confusing.

...
Techniques
...


The last two slots in the colormap are where the game engine looks for the “invisible colors”.
...


To change colors in the colormap:

This is useful if you want to have green and magenta as the invisible colors but they aren't in the colormap.
...

...

Summary
  • It's whatever colors are in the last two slots of the colormap that are invisible in game. We use and talk about green and magenta as the invisible colors only because they are what Firaxis uses in the original game files.
 
Your tutorial was quite easy to follow and resolved the issue for me very quickly. It might be because I was already fairly familiar with GIMP and graphics, and already figured out it was likely a pallete\transparency issue, and just didn't know the proper steps to fix it.
 
Back
Top Bottom