View Full Version : Whats wrong with GameFont.tga?


mvp
Oct 16, 2007, 03:33 PM
Hello,
I have made some changes of GameFont.tga (actually adding cyrillic chars). Almost all was done, and finally made something to the file and now Civ crash when try to load it. Any ideas how to find whats wrong with my GameFont.tga? Nothing interesting in Logs folder. I have done much work to modify it and dont want to start again.

TIA,
Miro.

Molybdeus
Oct 18, 2007, 03:13 PM
That file has a "hidden" alpha channel. You should also make sure to use 32 bit save rather than a 24 bit save.

Personally I hate that file with a passion. Every time I edit the alpha image on that file it messes the game up. I wish they had used "normal" individual files instead of using an image map.

isau
Oct 19, 2007, 10:05 PM
That file is just plain weird. I struggled with it for weeks before finally getting it to work.

Some pointers here:
-The magenta borders around a character have to be exactly that color all the way around. This means if you try to draw your fonts in the bigger of the 2 font files and then shrink it down to the smaller size, it crashes, because the color gets normalized when you shrink the image! Very annoying, and the reason mine kept crashing.
-Look for a bright cyan dot to the right of every character (inside the pink lines). You must put this in place for every character. It must be perfectly cyan and perfectly aligned with all the other dots (I did this by using the select tool to copy and paste the whole magenta line)
-Not a single pixel of your alpha channel that overlaps the pink borders can can be less than 100% black.

I'm sure there some other gotchas. Took me several hours to get my first new icon to work.. very frustrating overall, I doubt I'll be messing with this file much in the future.

IMO, a good way to start debugging in your case is to rename the GameFonts_75.tga file something like old_GameFonts_75.tga and just get one of the 2 working. Once you've done that, go for the second one.

--Isau

TAfirehawk
Oct 19, 2007, 10:09 PM
We really need to get rid of that file and put all those things in DDS....

Somebody needs to come up with this ;)

There has been talk about it in the WoC project, but I have no clue if it can be done without Firaxis.

Gordon Farrell
Oct 20, 2007, 09:58 AM
I have very little problem editing the GameFont files now because I do it in GIMP. Lose the Photoshop already and dl GIMP... it's free!

isau
Oct 20, 2007, 10:25 AM
I have very little problem editing the GameFont files now because I do it in GIMP. Lose the Photoshop already and dl GIMP... it's free!

Words to live by... I'll check it out.

Isau