MY Add a Civ Tutorial

I've managed to make all the errors disapear, but the game persist in showing the name of my civ in the civ selection screen, but not showing the leaderhead or any of my civ's infos. the civ currently crashes the game when i select it
 
thomas.berubeg said:
I've managed to make all the errors disapear, but the game persist in showing the name of my civ in the civ selection screen, but not showing the leaderhead or any of my civ's infos. the civ currently crashes the game when i select it


usually the game crashes when the dds files are the wrong size/type/ etc

check your .dds files and make sure they are the right size...

CIV4 is very particular when it come to that...

and crashing is usually problem with the images used/defined...

hope that helps ;)
 
thomas.berubeg said:
i rechecked/redid all the .dds, but it still deosn't work


well if you post your files I can examine them and help ya better...

however I will be busy until next weds....
 
Praise be womever you beleive in. it finally worked (an unclosed tag somewhee lost deep in the middle of XML land.0
 
thomas.berubeg said:
Praise be womever you beleive in. it finally worked (an unclosed tag somewhee lost deep in the middle of XML land.0


yeah... thats usually the problem :goodjob:

glad you got it working ;)
 
ok before I get into whats causing your problem let me list some other minor problems:

1) some text is missing

ex: TXT_**** instead of Proper Text

you need to add TXT_ definitions and taglines in the Assets\XML\Text folder


not a big deal and not hard to correct

2) some Art sizes are wrong

REVIEW all Unit and Leaderhead Buttons
they should all BE 64x64 in size!

You had the leader button size at 512x512 (which is why the leaders came up so large when reviewing the Civilizations in the Civopedia

Reduce this to 64x64 and this will fix this

REMEMBER this is the button pics NOT the full size pics

Your Custom Units Button Images were not 64x64 and were also messed up

3) XML Tagline

your Rohan Rider would not appear because:


A) Wrong size (see #2)

B) Tagline was wrong in CIV4UnitInfos.xml File

Under this tagline group:
Code:
			<Class>UNITCLASS_KNIGHT</Class>
			<Type>UNIT_RIDEROFROHAN</Type>

you haad this tagline group:


Code:
<Button>,Art/Interface/Buttons/riderofrohan.dds</Button>


it should read:

Code:
<Button>Art/Interface/Buttons/[COLOR="Blue"]Units[/COLOR]/riderofrohan.dds</Button>


The Blue Text emphazises missing folder info

REMEMBER to remove the comma!


NOTE: Your Rohan Rider is named "Knight" in the Civilopedia....
Unless that is your intention... it may get mistaken for the vanilla knight because they have the same name...

to fix that you need to define that tagline in the Text folder (see #1)

Unless you want them both to be named "Knight"


OK that is all I solved at this POINT!

I still have problems loading a new game :mad:

(where it times out and then CTD)

However using this as a reference:

http://forums.civfanatics.com/showthread.php?t=178180

I follow the load order for new games and the only file I think you modified is:

Civ4DiplomacyInfos.xml


therefore I think this new game load problem (my error is it times out and CTD) is isolated to that file....


So you might want to review that FILE and see if there is any mistakes there...


this might not be the final error in the mod... but I think it is a good place to start your File Checking....

sorry I could not help further but I am quite busy IRL and with my own Mod to check it further... :sad:

however I will try to answer any other question you have... if I can :goodjob:


P.S. you can delete those "Deleteme" txt files in your mod


FYI: I noticed you added the CIV4UnitSchema.xml and CIV4CivilizationsSchema.xml to your mod... is there a reason for this?
I am not familiar with those files but Im not sure they need to be edited....
(unless you know what your doing :crazyeye: )

NOTE: These edits are for Vanilla CIV4 ONLY (Not Warlords)

I myself have not edited those files at all.... yet my mod works fine ;)


Sorry I couldnt be more of a help.... :(
 
i've been poring over that file, asnd found that i was missing info on one leader in two places, but, when i fixed that, it still didn't work (still CTD)
 
thomas.berubeg said:
i've been poring over that file, asnd found that i was missing info on one leader in two places, but, when i fixed that, it still didn't work (still CTD)


still not sure what else could be causing it...

however (I am not sure) some SDK and Python may use the AI Civs (that you removed) in that CIV4DiplomacyInfos.xml file... therefore it doesnt understand because those civs are removed...

and causes the CTD

like I said I dont know how to code SDK or Python.... this is just a guess


you may want to return those civs in all the appropriate XML files...

also remove your custom civs from the CIV4DiplomacyInfos.xml file (basically just delete it from your mod and the original file will be used)

you can disable all the vanilla civs (where no human players can pick them) in the Civ4CivilizationsInfos.xml file at the code:

Code:
			<Leaders>
				<Leader>
					<LeaderName>LEADER_WASHINGTON</LeaderName>
					<bLeaderAvailability>1</bLeaderAvailability>
				</Leader>
				<Leader>
					<LeaderName>LEADER_FRANKLIN_ROOSEVELT</LeaderName>
					<bLeaderAvailability>1</bLeaderAvailability>
				</Leader>
			</Leaders>



just change:

Code:
					<bLeaderAvailability>[COLOR="Sienna"]1[/COLOR]</bLeaderAvailability>

to

Code:
					<bLeaderAvailability>[COLOR="Blue"]0[/COLOR]</bLeaderAvailability>

NOTE: However you can still pick the vanilla civs for the AIs (just dont pick them or "random" option) :crazyeye:


Remember to add the vanilla civs back to the other XML files ;)


The reason I suggest this is that I never edited that Civ4DiplomacyInfos.xml and yet all my custom CIVs have no problems when they are the AI rivals :mischief:


also I still dont know why you are editing the CIV4UnitSchema.xml and CIV4CivilizationsSchema.xml files :confused:

I never touched those files either and my customs civs work fine :)
 
i'm not editing those files, i just haven't gotten around to deleting them.

about the other things, i will try what you said
 
Finally we have the CivilizationSelectionSound and CivilizationActionSound tags.
I personally am not too sure about sounds (yet), so just leave them.

Not sure if anyone else brought this up yet, but I just wanted to point out that these command lines actually effect the language spoken by units, at least thats what I found out. You can for instance swap in the Spanish lines to other civs and make the other civs speak spanish.
 
Hey I just read through the first page and a bit of the second, so if somebody has already solved this problem I apologize, but I noticed many people were complaining about the TXT XML stuff, as well as errors in the first line of some of their XML documents. I know the solution to this problem. I ran into it once, and all you need to do is replace the <?xml version="1.0" encoding="utf-8"?> or whatever it may be with <?xml version="1.0">. It worked for me, but I'm not sure about other people, but you may as well try it out!
 
excellent tutorial, but i have a little problem...
my civ is playable, flag works good enough, units okay, descriptions, etc.

however, the entire leaderhead and leaderhead button is nothing but pink (just plain hot pink)... does anyone know why?
 
excellent tutorial, but i have a little problem...
my civ is playable, flag works good enough, units okay, descriptions, etc.

however, the entire leaderhead and leaderhead button is nothing but pink (just plain hot pink)... does anyone know why?

well the original leaderhead (animated) CIV4ArtDefines_Leaderhead.xml file should look like this:

Code:
		<LeaderheadArtInfo>
			<Type>ART_DEF_LEADER_ALEXANDER</Type>
			<Button>,Art/interface/LeaderHeads/Btn_LH_Greece_Alexander.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,1,11</Button>
			<NIF>art/LeaderHeads/Alexander_the _Great/alexander.nif</NIF>
			<KFM>art/LeaderHeads/Alexander_the _Great/alexander.kfm</KFM>
			<NoShaderNIF>art/LeaderHeads/Alexander_the _Great/alexander_noshader.nif</NoShaderNIF>
			<BackgroundKFM>art/LeaderHeads/Alexander_the _Great/alexander_BG.kfm</BackgroundKFM>
		</LeaderheadArtInfo>


now a static version in the CIV4ArtDefines_Leaderhead.xml file should look like this:

Code:
		<LeaderheadArtInfo>
			<Type>ART_DEF_LEADER_ALEXANDER</Type>
			<Button>,Art/interface/LeaderHeads/Btn_LH_Greece_Alexander.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,1,11</Button>
			<NIF>art/interface/LeaderHeads/[COLOR="Blue"]Alex.dds[/COLOR]</NIF>
			<KFM/>
			<NoShaderNIF/>
			<BackgroundKFM/>
		</LeaderheadArtInfo>

note Alex.dds is the dds file that replaces the animated part

make sure your dds files is in the right path of your mod...

art/interface/leaderheads folder

also this works the same for the button BUT instead of this:

Code:
			<Type>ART_DEF_LEADER_ALEXANDER</Type>
			<Button>,Art/interface/LeaderHeads/Btn_LH_Greece_Alexander.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,1,11</Button>

...
...
...

it should read:


Code:
		<LeaderheadArtInfo>
			<Type>ART_DEF_LEADER_ALEXANDER</Type>
			<Button>Art/interface/LeaderHeads/[COLOR="Blue"]ALEXbutton.dds[/COLOR]</Button>
...
...
...


with ALEXbutton.dds being your new static button (dds file)

NOTE: the comma removed and not "atlas" file referenced

also the dds file should be in this path of your mod:

Art/interface/leadeheads folder


make sure your dds files are the right size

button : 64x64
portrait (Civilopedia) : 512x512 but remember CIV stretches that pic so make your original image 384x512 then resize it to 512x512. (It will look distorted but in game it will look normal)

PS In the example above I put both static images in the SAME folder for convienence... but the Vanilla version the animated leaderheads go in a different folder (because each leaderhead animation has a lot of files)

It doesnt matter where you put the files... as long as the path exists and you define it correctly in the XML files

Hope that helps ;)


NOTE: This is for vanilla version... Im not sure if it changes in warlords (XML)... but it should be the same... disclaimer
 
thanks, it did help. i think i just did some typos... some of the pictures are still pinnk, but i'm sure i can fix it
 
Hello, Im new on the board....and to the world of mods.

Ive figured out how to change a few things in game so far but the one thingi cant seem to do is simply change the name of HATSHEPSUT to NEFERTITI....i just want a more familiar name to use for egypt for peronal enjoyment. the closes i came so that the name appeared as a leader option in the selection screen was KEY_TEXT_NEFERTITI or something like that. I just want it to say NEFERTITI only. Is this possible?

can someone post a very simple step by step guide on how to just change the leader name? Or if it is easier to just add a new leader under EGYPT even using the same pictures as HATSHEPSUT. I play in single player mode by the way.

thanks for any help!!!
 
Hello, Im new on the board....and to the world of mods.

Ive figured out how to change a few things in game so far but the one thingi cant seem to do is simply change the name of HATSHEPSUT to NEFERTITI....i just want a more familiar name to use for egypt for peronal enjoyment. the closes i came so that the name appeared as a leader option in the selection screen was KEY_TEXT_NEFERTITI or something like that. I just want it to say NEFERTITI only. Is this possible?

can someone post a very simple step by step guide on how to just change the leader name? Or if it is easier to just add a new leader under EGYPT even using the same pictures as HATSHEPSUT. I play in single player mode by the way.

thanks for any help!!!



go to CIV4GameTextInfos_Objects.xml file


Path = Assets\XML\Text folder

copy that file into your mod


add this code to the end of that copied file:
(following the format)

Code:
	<TEXT>
		<Tag>[COLOR="Blue"]TXT_KEY_TEXT_NEFERTITI[/COLOR]</Tag>
		<English>Nefertiti</English>
		<French/>
		<German/>
		<Italian/>
		<Spanish/>
	</TEXT>

make sure your entry is before this tagline:

</Civ4GameText> (which is the end of the tagline entries)

also make sure you replace TXT_KEY_LEADER_HATSHEPSUT with TXT_KEY_TEXT_NEFERTITI in the leaderheadinfos.xml file for her

(which you probably already did)

you should be all set :goodjob:

hope that helps ;)
 
Top Bottom