Installing Leaderhead Tutorial (BtS)

Yippee!! i did it. Finally after hours of meddling and messing up. i have finally figured it. i can now add modular leaderheads!
 
Hiya. I'm want to install Obama to my new mod. I did everything else, but the art is giving me issues. Here's my art defines stuff.

Code:
<Type>ART_DEF_LEADER_OBAMA</Type>
			<Button>,Art/interface/LeaderHeads/Btn_LH_Mali_MansaMusa.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,8,2</Button>
			<NIF>art/LeaderHeads/Obama/obama004.nif</NIF>
			<KFM>art/LeaderHeads/Obama/Zara Yaqob.kfm</KFM>
			<NoShaderNIF>art/LeaderHeads/Zara Yaqob/Zara_Yaqob_NONSHADER.nif</NoShaderNIF>
			<BackgroundKFM>art/LeaderHeads/Washington/Washington_BG.kfm</BackgroundKFM>

My problem is that the leaderhead is Zara, and the little avatar sized non-animated pic is Zara's too. Could anyone help me?

EDIT: YES! I got the leaderhead to work! Just the little pic doesn't work. Anyone know what the problem is?
 
Hiya. I'm want to install Obama to my new mod. I did everything else, but the art is giving me issues. Here's my art defines stuff.

Code:
<Type>ART_DEF_LEADER_OBAMA</Type>
			<Button>,Art/interface/LeaderHeads/Btn_LH_Mali_MansaMusa.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,8,2</Button>
			<NIF>art/LeaderHeads/Obama/obama004.nif</NIF>
			<KFM>art/LeaderHeads/Obama/Zara Yaqob.kfm</KFM>
			<NoShaderNIF>art/LeaderHeads/Zara Yaqob/Zara_Yaqob_NONSHADER.nif</NoShaderNIF>
			<BackgroundKFM>art/LeaderHeads/Washington/Washington_BG.kfm</BackgroundKFM>

My problem is that the leaderhead is Zara, and the little avatar sized non-animated pic is Zara's too. Could anyone help me?

EDIT: YES! I got the leaderhead to work! Just the little pic doesn't work. Anyone know what the problem is?

The little pic is the button. The path you have is
<Button>,Art/interface/LeaderHeads/Btn_LH_Mali_MansaMusa.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,8,2</Button>
A lot of buttons are in similar format, I change them to something like Button>Art/interface/LeaderHeads/Btn_LH_Mali_MansaMusa.dds</Button>

I'm not sure why the commas are there in the original version and the two paths are listed. Just make sure the path matches wherever your small dds picture is of Obama.
 
The leaderhead animations cause Civ IV to seize up on my machine. I'm quite happy to replace them with static images BUT... I tried following Wolfshanze's tutorial but I'm getting nowhere fast. I'm running the WolfRevolution mod (version 1.5 over BTS 1.9) and I think the bundle of mods in there is exceptional. It just means that I'm getting confused as to which set of files I should be altering. There are a lot of Civ4ArtDefines_Leaderhead.xml files in various directories.

According to the tutorial, if I'm understanding it right, I need to find the Civ4ArtDefines_Leaderhead.xml file and repoint the .dds file for each leader to the new, static .dds I'm creating from .bmp files. Since I'm using the WolfRevolution mod, I assume I need to alter Civ IV/Beyond the Sword/Mods/WolfRevolution/Assets/XML/Art / Civ4ArtDefines_Leaderhead.xml (and yes, there is such a file on my system - it's the one I've been working with, without much success so far).

Inside that file there are sections like:

<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_ELIZABETH</Type>
<Button>,Art/interface/LeaderHeads/Btn_LH_England_ElizabethI.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,8,10</Button>
<NIF>art/LeaderHeads/Elizabeth/elizabeth.nif</NIF>
<KFM>art/LeaderHeads/Elizabeth/elizabeth.kfm</KFM>
<NoShaderNIF>art/LeaderHeads/Elizabeth/elizabeth_noshader.nif</NoShaderNIF>
<BackgroundKFM>art/LeaderHeads/Elizabeth/elizabeth_BG.kfm</BackgroundKFM>
</LeaderheadArtInfo>

I'm scratching my head at this point because there is no Art/Interface/LeaderHeads directory... and yet the leader heads appear in the game just fine (well, until my system falls over, but that's not the game's fault. It's my machine). Everywhere I look in the Civ IV install, it's always just Art/LeaderHeads. Am I misunderstanding how XML works?

I'd appreciate any help you guys can offer.


AllRoundGoodEgg
 
Welcome to CFC :).

You're not wrong. The missing folders is sure a thing, which confuses every modding newbie.
In normal civ, and in some mods, all the art is packed in one or more big files, the .fpk files.
For normal civ, you can see them in Civilization IV\Assets folder. To unpack them, you have to use pakBuild.
 
I know, not a leader, but a Unit works the same way so i'm asking here.

I'm trying to figure out what's wrong with this XML:
v5zr5h.png


I am adding a new unit, and it worked (by worked, I mean it loaded properly but there was still some problems like no button and it's info wasn't showing up etc.), but I did some changes afterwards and I loaded the mod, and I got a CTD while loading the mod.

It looks like everything is alright according to the Civ4art_defines unit file. A little puzzles, i'm going to continue playing with it hoping I get it right, but was hoping anyone who comes to this thread would know.

Edit: False Alarm. Got it to work.
 
It was called ART_DEF_UNIT_POLYNESIAN_KOA. :rolleyes: I fixed it promptly. (My edit was made the same minute you posted)

Sneaky son of a :):):):):) ain't it?
 
Hi! I'm new here and was looking through some of the leaderheads. They all look pretty awesome, and I decided I wanted to use some of them. My first one I wanted to add was Hitler by Ekmek, The Capo, Bernie14, The_Coyote, Smeagolheart, and Chuggi. When I downloaded it, however, I didn't get all the files that you guys talk about here. All that it downloaded was a file called "hitler.rar," which I have no clue what to do with :confused:. Any help would be appreciated (modding files and whatnot is not my forte). Thanks! :)
 
A .rar file is like a .zip file a compressed format. That means, it's not functional, but it saves space.
To get the art files, you have to uncompress it. You need winrar (google it) to extract the files (it's free. After 30 days it just goes on your nerves with a message, but that's not a problem, it still works then).
Install it, and then go to the .rar file, open it (should automatically be connected with winrar) and extract it somewhere.
 
I just cannot get this to work. I tried to make a mod adding Hitler as a leader, but when I try to upload it, I get a whole slew of errors. The mod does load, but is unplayable due to the fact that all of the leaders disappear from the selection screen. Can anyone help me? Or point me to a mod/downloader that has the Hitler mod by Ekmek, The Capo, Bernie14, The_Coyote, Smeagolheart, and Chuggi included? Thanks!
Thought I'd add the file of my mod so someone could look at it.
 

Attachments

You should look closer at your files ;).

In CivilizationsInfos you've added LEADER_HITLER to germany.
But in LeaderHeadInfos you've added LEADER_ADOLF_HITLER.
Also in LeaderHeadInfos your hitler entry references to ART_DEF_LEADER_ADOLF_HITLER, but in your artdefines you have ART_DEF_LEADER_HITLER.
In your artdefines you've also forgot the folder "/Hitler/" in every path, you only have Mods/Hitler/Assets/Art/Leaderheads/Hitler.nif, but you should have Mods/Hitler/Assets/Art/Leaderheads/Hitler/Hitler.nif.

A non obvious error: If you add only ONE button to a button entry, then remove the comma at the beginning, because it will crash with the comma (i guess, every new modder stumbles about this).
 
Hurray! Everything works now! I am soooo happy. Thank you so much!
 
I have a question, I have Civ 4 Complete with all the games on it, but I can't find the files. I may be doing it wrong, but what section of the game to I go into.
 
I want to include some more actual MoO leaderheads in the upcoming MOO2Civ 5.0, but can't seem to find an idiot-proof DDS converter (I've got JPEGs, but that's not the right format for Civ4).

Any suggestion would be welcome. (I've tried DDS Converter and Image Converter, but can't seem to get them to convert to DDS...)
 
The only thing which will not be truly modular is adding the leaderhead to the civ. You can copy the Rome definition of CIV4CivilizationInfos.xml and call it e.g. Rome_CIV4CivilizationInfos.xml and add the leaderhead there the way Wolf described, but it will not be entirely modular.

If you wanted to add a second leaderhead (e.g. Nero), you could not do the same for Nero, the two would need to share the Rome_CIV4CivilizationInfos.xml which then needs to include both leaderheads. For anything else, you could create Nero_... files, just like you did for Caligula.

You should use modular loading, it is superior to regular loading, even though the Wolf fears change ;) If e.g. there is a new patch which changes some xml, you would only need the changes which affect your modular definitions (i.e. which truly affected the Rome civ in this example). With Non-Modular loading, you would need to take care of all changes, so if they changed a regular leaderhead or a civ other than Rome, you would need to include those changes in your version of the definition (which is included in your copy of the original file).
With modular loading, these changes would not affect you, as you inherit the regular (updated) definitions for anything you do not explicitly add to your mod (in this case anything but Rome).

If you use the modular way, you create a dir in which you store the Caligula files, make sure to copy the appropriate schemas used by your files to that dir as well. Each xml file (except for the text ones) contains a line like "<Civ4CivilizationInfos xmlns="x-schema:CIV4CivilizationsSchema.xml">" whatever schema file is mentioned there is needed to load the file.

I have been messing with this for several days now and this is the only place I have found that even talks about it. I am trying to put together some changes to some Civs and Flavor packs that will include additional leaderheads. I am trying to make each leaderhead completely modular so people can delete or move the leaderhead directory without having to edit or even have a CivName_CIV4CivilizationInfos.xml (if it is only flavor to an existing Civ) to make them go away or come back. I know it would be some form of LeaderName_CIV4CivilizationInfos.xml that didn't override the master for that Civ. Have you found a way to do that?

Thanks,
Mason
 
Back
Top Bottom