Problem getting mod Icons to show up correctly

rhettrongun

Prince
Joined
Mar 19, 2011
Messages
341
Location
TX
Hello, I have run into a new issue recently.

I have included a dozen or so civilization icon changes into my WW2 mod, and there are 2 that do not display correctly in game. I am attempting to use most of pap1723's flag icons btw. His German and Soviet icons were not coming out well on the world view (overland map) screen, so I ended up just modifying flag images I pulled off the internet and putting them into a separate atlas for Germany/Russia to refer to.

The worldview icons look great, but now other screen icons are completely messed up. So, they display correctly in some instances and not in others.

Instances where they work:
-Civ select screen when starting a game (forgot to take a screen shot of this, but take my word for it)
-World view screen (next to city names)
-Civilopedia

Instances where they don't work:
-Diplomacy drop down menu (next to scores etc..)
-Leader interactions diplo screen
-Victory progress (domination check)
-Diplomacy overview screen

I've attached images displaying most of these cases. If anyone can tell me why this might not be working correctly, I would appreciate it.
 

Attachments

  • 2011-07-13_00004.jpg
    2011-07-13_00004.jpg
    270.9 KB · Views: 103
  • 2011-07-13_00006.jpg
    2011-07-13_00006.jpg
    196.4 KB · Views: 75
  • 2011-07-13_00007.jpg
    2011-07-13_00007.jpg
    352.1 KB · Views: 85
  • 2011-07-13_00011.jpg
    2011-07-13_00011.jpg
    169.2 KB · Views: 83
  • 2011-07-13_00009.jpg
    2011-07-13_00009.jpg
    166.8 KB · Views: 99
  • 2011-07-13_00010.jpg
    2011-07-13_00010.jpg
    193.2 KB · Views: 88
That's usually an error in the icon atlas definition for one of the specific resolutions. Maybe you're giving it an 80-pixel icon when it's expecting a 64, or something along those lines. Without seeing the actual code of the mod, there's not really a lot we can tell you.
 
When I first tried adding civ-icons I had the problem where they wouldn't show up in some lists. It turned out I had copy-pasted all the Civlizations-entries without changing the player-color.
 
When I first tried adding civ-icons I had the problem where they wouldn't show up in some lists. It turned out I had copy-pasted all the Civlizations-entries without changing the player-color.

Thanks to both of you for the attempted help.

It seems the player color problem mentioned above is what is causing me trouble. I had changed the player colors on the test map to match what I had in my scenario. The two I changed were Russia and Germany, so I put them back to their defaults and now magically the icons show up correctly on all the screens that were messed up before.

Unfortunately this has introduced the same problem I had ran into with pal1723's German/Soviet Icons on the World map. The flag patterns are basically blended in with the civ colors. This may just be a matter of trial and error at this point at least. I simply need to find the right player color pattern for them that allows the icons to be visible in all cases.
 
You should use COLOR_PLAYER_WHITE as the primary color for major Civilizations.
 

Attachments

  • RedWW2.jpg
    RedWW2.jpg
    403.8 KB · Views: 137
That would have been an easier way to fix it, but I ended up correcting it another way. I changed the inner designs into transparent parts on the icon atlas. They are visible now, although the worldview image for Germany doesn't quite match its flag. Neither does the Japanese 1 for that matter, but it should work for now.

That looks like an awesome map btw. I will have to try it at some point for sure.
 
Back
Top Bottom