• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Where can I find the flags' files?

10lire

Prince
Joined
Mar 5, 2003
Messages
304
Location
Milan, Italy, EU
I'd like to create new flags and replace some vanilla's flags, but:

1) I didn't find a tutorial/guide for add new flags (just only flag buttons!!!)

2) I was going crazy to understand where the flags file are.. I can't find them!!

Can anyone help me?
 
I'd like to create new flags and replace some vanilla's flags, but:

1) I didn't find a tutorial/guide for add new flags (just only flag buttons!!!)

2) I was going crazy to understand where the flags file are.. I can't find them!!

Can anyone help me?

CIV4ArtDefines_Civilization (Assets/XML/Art) is what you'd need to edit and lists the location of every flag decal and civ button used in the game.
 
@tsentom1: Thank you! I will try to apply my changes.


A related question, when I changed the colour of England to red - the flag went wierd - what's wrong?

I have read something the file CIV4ArtDefines_Civilization.xml; maybe i am wrong, but you can try to switch from 0 to 1 the value in the tag <bWhiteFlag> of the english flag section.
 
10lire, you said you could need a tuorial about adding flags. It's a while ago that I had to deal with that problem, but I am pretty sure that one or two of these "how to add a new civ" tutorials also cover the flag problem. Sorry, but I have no time to search the right tutorial for you.

Don't know what kind of flags you plan to do... If you want to make a poly colour flag (flag with more then two colours), you need to switch the <bWhiteFlag> tag to 1. Also you may need to play around with the alpha channel. Some users get white flags in the game if the flag has an alpha channel and the flag works normally if it has none. For other users it's exactly vice-versa. AFAIK there is no way to create a flag that works for all users. The easiest way to add an alpha channel is by converting the flag with DDS converter, but that program is buggy. I think there is a description about how to add an alpha channel in one of those tutorials I mentioned above.

Unfortunately I can't help you with bicolour flags, I never made such flags.
 
You may have noticed when reading the other thread, that we plan to write a tutorial about flags. Currently we haven't started the work. I think I'll put something together next weekend. Then, if you have something to add, feel free to do so.

As mentioned the easiest way to add an alpha channel is by using dds converter. I'd try that at least. If it works for you - I heard that for some of the other users it worked fine - it will be no problem for you to find out how the alpha channel stuff works. If not, you can play around with the channel in DXTBMP, GIMP or Photoshop (for the last two you'll need a plugin).
 
Back
Top Bottom