How to include a custom flag?

Grenouille

Warlord
Joined
Jan 11, 2006
Messages
104
I want to change the flag of Persia to the iranian one for a mod.. now I thought it would work like this:

I put the new flag (FlagDECAL_Iran.dds from the iran module) in the
\Mods\Mod Name\Assets\Art\Interface\TeamColor
directory.

Then I copied the standard CIV4ArtDefines_Civilization.xml
into
\Mods\Mod Name\Assets\XML\Art

Then I edited the artdefines file and changed this line:
<Path>Art/Interface/TeamColor/FlagDECAL_Scimitar.dds</Path>
to this line:
<Path>Art/Interface/TeamColor/FlagDECAL_Iran.dds</Path>

But the flag doesn't show up in the game! What did I do wrong?

Modding CIV4 is really a nightmare.. even easy stuff like changing a flag is complicated as hell.
 
Oh, it's not all that bad once you get past the initial learning curve. Did you set <bWhiteFlag>1</bWhiteFlag> in the civ art defines file? You need to do this if you're using an opaque flag instead of a decal (like the flags that come with the game, who take their color cues from their civilization's color scheme.)

Might want to look at this thread as well -- it covers setting up new flags as well as changing civ colors:

http://forums.civfanatics.com/showthread.php?t=133590&page=2
 
The WhiteFlag command line just keeps the team colors from seeping-through, but it won't prevent the flag from appearing at all (it will just look weird). If he can't see the new flag at all (as opposed to the new flag just looking discolored), the whiteflag command is not his only problem.

I dunno what his problem is though... according to what he said, he did the right things... kinda stupid question here... you do have it in the CORRECT "Mods" directory, right? Civ4 Vanilla, Warlords and BtS each have their own Mods directory.
 
Hey, thanks for your replies.

I think I have it in the correct folder.. otherwise, I couldn't load the mod in BTS, right?. So it's in the BTS mod folder..

I've attached the mod, maybe someone wants to have a look at it and can find the error i made. (it's a rar, had to rename to zip to upload, so you might have to rename it again to decompress)
 

Attachments

Oh, and by flags not showing up I ment that the original ones are still there, not the new ones.
 
Don't know what the problem is. I loaded the mod and can see the flags just fine.

You'll still need to change <bwhiteflag> to "1" for Persia in the ArtDefines XML file, though.
 
Maybe he has "Vista"... that ruins everything!
 
Don't know what the problem is. I loaded the mod and can see the flags just fine.

You'll still need to change <bwhiteflag> to "1" for Persia in the ArtDefines XML file, though.

Oh, wow.. they don't work on my computer, no idea why not.. I don't use Vista but XP.
 
Not to ask a totally stupid question, but you're loading this as a mod, right? You're not just loading the regular game and expecting it to show up? (I'm sure you're doing this right, but might as well eliminate the obvious....)
 
Yeah... you should be seeing the mod name in the top right corner of the main menu screen... if not, you've not loaded your mod!
 
I installed, and loaded up your mod.... I can see your flag just fine, but there is one thing wrong. You need to open up the flag in DXTbmp and bucket paint the alpha channel black... at least thats the way I used to have to do that... maybe white flag set to 1 will fix it. As is right now, the player color mixes in with your flag colors.
 
Back
Top Bottom