Small Icon Bug After Adding a Religion

Dual

Gun Mage
Joined
Mar 28, 2005
Messages
492
Location
The Gateway to the West
As part of the modding I've been doing I added Shinto as an eighth religion in my mod folder. And except for one small problem it's working fine.

The problem is that by editing the GameFont file to include the new icon for my religion, it seems I've also confused the game into using a wrong icon under the city.

View attachment 109201

My new icon shows up the way it should under the city and in the pop-up. But the "black tower" icon used to show the city's defense bonus has been changed to the icon for great person points. :confused:

It's not a huge problem, as it doesn't affect the gameplay at all, but I would like to fix it if I can. Does anyone know what the problem is or how to fix it? Here's the GameFont files I edited the new religion icons into, if that helps.

View attachment 109203
 
Following the suggestion from someone else on here when I had the same problem I pulled the gamefont file from the Greek World mod and used that instead of the one that comes with the main game.

The two are substantially different in format (I think the greekworld file is 19x19 for all the icons where the main game was 21x20 or something like that). When I tried to edit the main game gamefont it always seemed like any little change I made would mess all the icons up.
 
Thanks for the suggestion. :) I'll try adding my icons to that other gamefont file tomorrow and see if it works out for me.

And I'm digging the egyptian "eye of Ra" symbol in that greekworld file too. I might have to find some way to fit that into my mod. :egypt:
 
It's actually not too complicated. There is an easier way than what Kael was suggesting. In fact, I think that explaining it through a screenshot can best show you what I would like to explain to you:

gamefont.jpg


Notice the color with the RGB value of (0,255,255). This is what tells the game to search for this icon in the gamefont file. Also note the position. If you don't see it this way in your graphic editor after removing the alpha mask, then you need to use another editor. For instance, I found out the hard way that you can't use GIMP at this point in time to edit these files. What you want to do is add your icon after the others, then add that blue dot to the appropriate position. If you do that, everything will be fine.
 
Thanks for the info about what those blue dots are for, that is useful information for the future.

But I had already added them right from the beginning because I had saw they were behind all the other icons, and figured they were important some how.

BTW, I'm using photoshop 6 to edit the gamefont files, and it seems to be displaying/saving everything properly.


EDIT: I just did a test with adding some extra icons to the Greekworld scenario's gamefont file, and it worked perfectly. I wish I knew why using that file makes the difference. But I guess I shouldn't look a gift horse in the mouth. :D
 
Back
Top Bottom