impervius said:
How can i add Impervius, my leader, as an additional leaderhead for the romans? I am fine to use the roman UU as i dont want to simply have no uu at all.
<<<EDIT: Okay this may be unclear below as i had some trouble formatting my post, but follow the indentation conventions of the file you are editing wherever possible. This makes it easier to edit and to troubleshoot later. Thanks>>>
Firstly, if you havnt created a Mod personal to you i would suggest doing this now. Basically, just open the 'Mods' folder in the Civ4 directory folder, and Create a New Folder called whatever you want (referred to by me from now on as <YourMod>). Now, inside that create a "Assets" folder.
Now, from the main "Assets" folder (Program Files/Firaxis Games/Sid Meiers Civilization 4/Assets in my case) copy and paste the "XML" folder and the "Art" folder into '<YourMod>/Assets/'.
Im only going to deal with the actual XML modifications. If you have Artwork for the leader (i.e. a button and a leaderhead, whether animated or still) i would suggest carefully reading earlier in this post so you know how to add them.
In <YourMod>/Assets/XML/Civilizations/
find the Civ4CivilizationInfos.xml file, and the Civ4LeaderHeadInfos.xml file
Open Civ4CivilizationInfos.xml and find <Type>CIVILIZATION_ROME</Type>. Near the bottom of this entry, you will find a line that says:
<Leaders>
<Leader>
<LeaderName>LEADER_JULIUS_CAESAR</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
</Leaders>
Add this to the file, so it reads:
<Leaders>
<Leader>
<LeaderName>LEADER_JULIUS_CAESAR</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_IMPERVIUS</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
</Leaders>
Save the file (making sure it is the one in your Mod's Assets folder, rather than the main Assets folder.
Then open Civ4LeaderHeadInfos.xml file
Find the <Type>JULIUS_CAESAR</Type>, copy all the information from the <LeaderHeadInfo> just above it to the </LeaderHeadInfo> at the bottom of it's entry (just after all the diplomacy music), and paste at the bottom of the file (after the last </LeaderHeadInfo> but before the last </LeaderHeadInfos>.
Change the <Type> tag to read <Type>LEADER_IMPERVIUS</Type>, and change the following two lines so they read:
<Description>TXT_KEY_LEADER_IMPERVIUS</Description>
<Civiliopedia>TXT_KEY_LEADER_IMPERVIUS_PEDIA</Civilopedia>
The next line is more complicated. If you have Art and you have added it to the appropriate folder (see some of the first posts), you will write something like the following:
<ArtDefineTag>ART_DEF_LEADER_IMPERVIUS</ArtDefineTag>
If not, I would suggest leaving it as 'ART_DEF_LEADER_JULIUS_CAESAR'. You can always edit this later.
Next is the rather more complicated matter of adjusting the AI for the leaders preferences, but i havnt got time to write them all here. Best just to experiment, and if youre really no idea what a tag does, then ask on the main Civ4 C&C forums.
Save this, again making sure it is in your mod folder rather than the main Civ4 folder.
You can now use this unit in the game, presuming you have used the default graphics for Julius Caesar. If not, you may want to re-read the part earlier in this thread about Art Defines. You may also want to edit the Text files, because the leader currently is called "TXT_KEY_LEADER_IMPERVIUS" in the game, and you may want to create a text file that tells the computer to replace wherever it sees this with the actual text "Impervius". Again, this is very well structured earlier in the thread, and i am running out of time.
If you do have any questions, feel free to PM me, and i will do my best to answer youre questions. But for now my patience has goneand im bored, and hungry.
Hopefully this helped in some small way at least
mrkingkong