[BTS] Dynamic Flags for new civs

Bangra 7

The Port Of Call
Joined
Aug 28, 2008
Messages
226
Location
Raleigh, North Carolina
Hi, I modded in some new civs to Realism Invictus, but my flag decal which is set to a boolean white flag, turns up empty. I don't know what to change to make it work. I added the "_def" after the flag name, and even toggled on/off the dynamic flag features, but the flags still don't show up. All art files and flags point to the right locations, in Interface/TeamColor.
 
If you want the dynamic component to ignore the flag altogether, just start the file name with "scn_". Also, don't forget to set <bWhiteFlag> to 1 if you are not using teamcolored flags.
 
Then there's something fundamentally wrong you're doing, like pointing to a wrong file.
Sorry for the late reply: I don't know what I'm doing wrong. I pointed to the correct files, I believe:

In art defines, one of my civilizations, CIVILIZATION_CENTRALAMERICA, points to its ART_DEF_CIVILIZATION_CENTRALAMERICA

art def, which in turn, points to art/interface/teamcolor/centralamerica_def.dds

In the python for dynamic civ changes, I added the prerequisite functions copied from America, specifically for this civ. And created the flags with the correct _xyz after them. I hope I don't come off as harsh sounding; its just I worked hard on the symbolism for these flags and would love to showcase that effort. :)
 
That sounds like it should work. Post the relevant code snips here, let's take a look - the principle is right, so there must be a simple technical mistake somewhere I reckon.
 
"CIVILIZATION_CENTRALAMERICA": [ [["CIVIC_DESPOTISM"],
["", "Atlantic Tribal Federation", "", "Atlantic Tribes", "Caribbean", "tri", "1"]],

[["CIVIC_STATE_PROPERTY"],
["", "KEY_ADJ", "Socialist Republic", "KEY_SHORT", "KEY_ADJ", "com", "1"]],
[["CIVIC_AUTOCRACY"],
["", "Democratic Atlantic League", "", "KEY_SHORT", "KEY_ADJ", "dic", "2"]],

[["CIVIC_REPUBLIC"],
["", "Atlantic League", "", "Atlantic Republic", "Central American", "rep", "1"]],

[["CIVIC_HEREDITARY_RULE"],
["", "KEY_ADJ", "United Kingdoms", "KEY_SHORT", "KEY_ADJ", "mon", "1"]],

[["CIVIC_THEOCRACY"],
["Atlantic Covenanted", "KEY_DESC", "", "KEY_SHORT", "KEY_ADJ", "the", "1"]],

[["CIVIC_DEMOCRACY"],
["", "United Atantic Tribal Republic", "", "Central America", "Central American", "dem", "1"]],

[["CIVIC_DICTATORSHIP"],
["", "KEY_ADJ", "Atlantic Council", "KEY_SHORT", "KEY_ADJ", "dic", "1"]],

[["CIVIC_FEDERALISM"],
["", "KEY_ADJ", "Federated Republic", "KEY_SHORT", "KEY_ADJ", "fed", ""]],
],

From the dynamic civ name change python file.


<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_CENTRALAMERICA</Type>
<Button>Art/Interface/TeamColor/Emblem_CentralAmerica.dds</Button>
<Path>Art/Interface/teamcolor/centralamerica_def.dds</Path>
<bWhiteFlag>1</bWhiteFlag>
</CivilizationArtInfo>

From the civilization art defines xml.

The civilization XML links correctly as well:
<ArtDefineTag>ART_DEF_CIVILIZATION_CENTRALAMERICA</ArtDefineTag>
 
The code bits look right too (assuming Python is indented right, as all indentation is gone here). Perhaps there is something wrong with flags themselves? You know that a whiteflag=1 flag should have solid black alpha in the dds, right?
 
I tried it with GIMP, and I'm about to see if it works. I'll post a screenshot if it does!

Thanks for your patience. It's been three years since I touched civ four, and the first time I heard of this fantastic mod.
 
Civ4ScreenShot0005.JPG


Now, I have five other additions who need colored flags. :D Thanks for your help!
 
Top Bottom