Buttons...

WaxonWaxov

Warlord
Joined
Oct 26, 2005
Messages
229
Location
Charlotte, North Carolina
Hello.

Where in the xml are the dds files within (art pack) /art/interface/buttons/civilizations called?

thanks
 
1. Wrong forum
2. They're found in /assets/xml/art/CIV4ArtDefines_Civilization.xml
 
grforum.gif
 
Wow, I love it when I post a question and come back and see there are replies. It makes me think "oh boy, someone answered my question!"

Then all I find is some people saying "wrong forum"

Maybe if the forums were better defined.... maybe if they would reenable search...
 
So... didn't I put this in the Graphics section? It's a graphics question.

Again, if serach was enabled it would be a lot easier.
 
Please don't open a new thread if you don't have file to post! This rule also applies to ALL other files forums. Use the main Creation forum for questions & requests.

As it is said on the first forum, you can see.
 
Well excuse the ____ out of me. Maybe I should just blow my brains out in shame. ;)

The question still remains....

Where in the xml are the dds files within (art pack) /art/interface/buttons/civilizations called?

These are the individual Civ icons within the Civilopedia.

thanks
 
WaxonWaxov said:
Again, if serach was enabled it would be a lot easier.

You can have search enabled, and much worse forum performance(which at times already borders on poor), or you can have search disabled, and be able to browse the forums. The search function was shut off because it was taking too many resources and making the forums unviewable. If you have an issue with that, I suggest you email Thunderfall.
 
Why do you want to change them in the first place? If you can read XML, it shouldn't be too hard to spot them, as they're only a couple of lines down.

Here's where (I'm using America as an example):

<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_AMERICA</Type>
<Button>,Art/Interface/Buttons/Civilizations/America.dds,Art/Interface/Buttons/Civics_Civilizations_Religions_Atlas.dds,1,5</Button>
<Path>Art/Interface/TeamColor/FlagDECAL_Star.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>

Unless you're modifying a python file (I'd have to check which one. It might be hard coded), you're going to have to replace a civilization. I don't see what was so hard about finding that.
 
OK, saved my file, scotland.dds under the folder...

C:\Documents and Settings\Eric\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\Art\Interface\Buttons\Civilizations

and have code within the file CIV4ArtDefines_Civilization.xml...

<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_SCOTLAND</Type>
<Button>,Art/Interface/Buttons/Civilizations/Scotland.dds,Art/Interface/Buttons/Civics_Civilizations_Religions_Atlas.dds,7,5</Button>
<Path>Art/Interface/TeamColor/FlagDECAL_StAndyCross.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>
<CivilizationArtInfo>

Yet it still shows the English button within the Civiopedia...

thoughts?

Help please
 
Like I said above, DON'T rename the type. That's either hard coded or is within the python scripts (I think that it's more likely that it's hard coded). Your mistake is this:

<Type>ART_DEF_CIVILIZATION_SCOTLAND</Type>

Instead, you should have kept it as:

<Type>ART_DEF_CIVILIZATION_ENGLAND</Type>

Don't worry about the tag name. The actual Civ name is found in /assets/xml/text/CIV4GameTextInfos_Objects.xml. You'll need to change the name between the <English> tags for <Tag>TXT_KEY_CIV_ENGLAND_DESC</Tag>, <Tag>TXT_KEY_CIV_ENGLAND_SHORT_DESC</Tag>, <Tag>TXT_KEY_CIV_ENGLAND_ADJECTIVE</Tag>. That's all that will really matter for civ names. And, before you post later, the diplomacy text can be found in CIV4DiplomacyText.xml in the same directory. As long as you don't replace England with Scotland in the description tags, you should be fine.
 
WaxonWaxov said:
OK. I'll try this later... maybe not until tomorrow night as I have to pay attention to the GF tonight.

Thanks.

No. Everybody is misinformed. The game does not use the buttons icons for leaderhead, civics, or civilizations. Those individual files are worthless. Instead, the game looks up the graphics for the civilopedia in the atlas files. You need to edit the following:

art/interface/buttons/actions_builds_leaderheads_specialists_atlas.dds

and

art/interface/buttons/civics_civilizations_religions_atlas.dds

In the art/art_defines_* files you'll find something like this...
<Button>,Art/Interface/Buttons/Civilizations/Arabia.dds,Art/Interface/Buttons/Civics_Civilizations_Religions_Atlas.dds,2,5</Button>

The last two numbers are the column,row where the game looks up the appropriate graphics in the atlas files. If instead of placing new graphics over something in the art atlas files you put new graphics in the black spaces in those files, make sure you change the alpha channel to let the new graphics through.

Hope this helps.
 
Back
Top Bottom