Civ 4 XML Tutorial Part 2

BrentRitchie said:
<!-- This tag is a little wierd, because in french and other languages words have genders -->
<!-- In this case "En Traveux" is male, this effects the words that appear around this text -->
<Gender>Male</Gender>

<!-- This simply states if the word is in plural form -->
<Plural>0</Plural>

<!-- End french language definition -->
</French>

<!-- Start German language definition -->
<!-- this is as far as I go I don't want to repeat myself three more times -->
<!-- you should get the basic idea for now -->
<German>
<Text>Bearbeitetes Land</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</German>

I've sent you a Private Message, but maybe someone else will also know this. In some xml's there is a [NUM1:something:something_else] text, which chooses a text depending of <plural> text state (0 or 1). My question is: can I do the same (and if, how?) with the <gender> tag? For now, it seems to me quite useless, because i didn't find any use of <gender> in xml files. Please, correct me if I'm wrong. I'd like to translate Civ4 correctly to Polish, and my language uses genders as well as French.

<Italian>
<Text>Terreno bonificato:Terreni bonificati</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</Italian>
<Spanish>
<Text>Tierra trabajada:Tierras trabajadas</Text>
<Gender>Female</Gender>
<Plural>0:1</Plural>
</Spanish>
</TEXT>

And explain, please, how does Civ4 'know', which one to choose in Italian: Terreno bonificato or Terreni bonificati (first case).
 
I added Chineses characters to section <Chinese></Chinese>, and modified
<?xml version="1.0" encoding="ISO-8859-1"?> to
<?xml version="1.0" encoding="UTF-8"?>
and save xml file in UTF-8 format.
The problem is font, in default, civ4 is using western font, how and where can I config it to use Chinese font in my PC?
 
I loved this explaination! I had made a Civ from another HOW TO guide and they left out a few important things. I knew nothing and what they skipped over caused me to have major problems.

Would you make one of these for adding a unit? I know how to add a UU but to just make my own units is causing me some troubles.

I have made a War Wagon, Warhound and a Milita (fighting worker) but I have having troubles getting them to work without errors.

If you know of another thread like this that could help me I would LOVE a link!
 
BrentRitchie said:
<TEXT>
<Tag>TXT_KEY_CITY_NAME_ST_JOHNS</Tag>
<English>St.John's</English>
</TEXT>

If I want to translate civ4 into fluent Finnish, I have to use grammatical cases:
<Tag>TXT_KEY_UNIT_WOLF</Tag>
<Finnish>susi:suden:sutta</Finnish>
(As you can notice, I can not simply add "'s" after words like in English...)

And so can I write "%s1:2" and it takes "suden".

But when I do the same for city names:

<Tag>TXT_KEY_CITY_NAME_ST_JOHNS</Tag>
<Finnish>St.John:St.Johnin:St.Johnissa</Finnish>

For some reason every new city is then named after the civ's capital. If the first city is London, second is London, third is London, ...

Why's that?
 
I knew the reason, because civ4 will check all city names and compare if the name exists, if there ie no the name, it will prompt. You can try to modify name when build a new city, next when you build another city, the same city name will be displayed.

In your case, the displayed name is compared with name saved in xml file, they have differnt internal code as decode and encode, so Capital name always showed.
 
mikezang said:
In your case, the displayed name is compared with name saved in xml file, they have differnt internal code as decode and encode, so Capital name always showed.

Any possibilities to have grammatical cases with cities? I need them *really*.
 
Hello, everyone. I've been modding Civ4 a little for myself, just for fun, and I actually created this account so that I could find parts 2 and 3 of the tutorial.

I like this guide very, very much, and feel that it would add to the discussion if I were to post links to its other parts, as they are difficult to find without the search function, and they're meant to be done together.

Part 1:
http://forums.civfanatics.com/showthread.php?t=135459

Part 2:
http://forums.civfanatics.com/showthread.php?t=135535

Part 3:
http://forums.civfanatics.com/showthread.php?t=141182

There was supposed to be a part 4, however, I believe that he abandoned the project, unfortunately. I believe all that was left to do were graphics things, which I believe have been covered elsewhere, by others. (If you're reading this, OP, you have done GREAT work here, and I would love to hear more if you're still playing Sid Meier games! You are an amazing teacher.)
 
Back
Top Bottom