how to fix your broken gamefont.tga

Mine is still broken.
 
Wait, this is weird. A new analasys has shown that even though the error was during 'Init Fonts', the error was not in the GameFont files.
 
Just out of curiosity - does anyone know what the cyan pixel in the grid really stands for?
So far whenever i needed to use a new slot in my .tga files i usually copy the whole right border grid from an already used slot, to make sure the infamous cyan pixel is included. I do the same for the alpha channel as well (even though its pretty much working in the blind, makes you feel kinda stupid).
I have no problems so far, although I've never tried using the PickColor tool to "manually" put the pixel with the Pencil. But I'm really curious about the sole purpose of that sneaky cyan pixel?
 
I have no real idea, but after reading your post I think you have not yet discovered this utility. Because then you don't have to care anymore about these pixels ;).

Hey, thanx man, that looks great, I'll give it a try. :goodjob:
But the cyan pixel remains an unsovled mystery, I'm gonna write a letter to Discovery Channel :D
 
I always thought the pixel was a leftover from how civ-2 worked. There it was used in almost all graphics and sometimes served as a coded byte or something.
 
Phew, having major problems with the gamefont files for my Pictish mod... which is perplexing as I have been a photoshop specialist for 25 years, but never had to deal with TGA.

I have followed all the advice here... and being a photoshop wiz I have been pretty detailed in my edits, including the alpha channel, but obviously I am still missing something.

I have also tried the file The_J recommended, but it will not work on a Mac, even with Crossover.

What I am attempting seemed pretty simple:

• reordering the religions in the gamefont file (based on founding dates and matching my xml file)
• the addition of a Druidry religion. I used the shinto mod gamefont as my basis, and that file works.
• the creation of a confucianism logo to replace the ugly paper symbol.

I wonder if someone might have the time to take a look?
 
What exactly is not working?
Do you get a crash while starting? Or are the symbols shifted? Or even worse, totally messed up?

Game just crashes on startup. I have just re-created from scratch, but still crashes.

Have made sure the magenta and cyan all all ok, and that they are full black in the alpha... it driving me :crazyeye:

I would use the program you suggested as my changes are very simple, but being on a mac it does not work.
 
...er...the _75.tga is totally messed up.
You did not just resize the normal .tga to save some time, did you :mischief:?
The normal .tga works fine though :).

Ha, yes I did re-size the _75. I didn't even think to create that separately as I am so used to working in graphics were re-creating a file at a different size would be absurd. I didn't realise that re-sizing it would break the file... interesting.

Phew, more work on this file then

Thanks The_J :)
 
You might guess what error I made at the beginning too :D.

Is the 2 icons in there the only thing you need?
Because I guess I could do that faster with asaf's program than you by hand.

Haha, I am glad I am not alone in making that mistake then ;)

Actually yes, its all I need. If you dont mind, that would be cool. Can't believe how long I spent on this compared to other aspects of modding :lol:
 
Okay :), but I hope you're not in a hurry, because I'll then do that tomorrow, because I'm right on my way to bed (it's a bit later in Europe ;)).

No problem... I was contemplating sleep myself.

Thanks for your help :)
 
Okay :), but I hope you're not in a hurry, because I'll then do that tomorrow, because I'm right on my way to bed (it's a bit later in Europe ;)).

Hey, no worries about doing that, I sorted it early this morning. Thanks for offering though! :)
 
Hmmm... came across an interesting problem. Where the author of the Shinto mod had edited the gamefont to include the Shinto religion, they moved Cereal Mills corporation to allow for the 8th religion slot... this means that all corporations now show the incorrect logo on cities they spread in.

This means that I must choose between finding all the relevant .xml files and changing all the corporation numbers to match the gamefont file, OR I need to further edit the gamefont file to match the number order of corporations in the corporation.xml file... Phew, just when I thought I had finished and could get back to skinning unts :hammer2:

I dislike .tga :aargh:
 
I'm not really sure, but I think you could also just move Cereal Mills in the corporationInfos.xml to the last place, that would then again match your gamefonts (this will screw any existing savegames, but I don't think it should cause problems elsewhere).
 
Top Bottom