Advertisement
Civilization Fanatics' Center  

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Strategy & Tips > Civ4 Strategy Articles

Reply
 
Thread Tools
Old Feb 28, 2006, 11:32 PM   #1
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
Leader personality matrix

Diplomatism is very important in CIV, you must know the personality of other country leader to do good Diplomatism.
The personality of leaders is defined in Assets\XML\Civilizations\CIV4LeaderHeadInfos.xml. However, it is in XML format, very hard to get a clear version and very hard to compare aspect among leader.
I Have write a small Java application convert the xml to a excel file (another reason is to practice my XML programming). and I make some comment to some important attribute and to some leader. maybe the comment incomplete or inaccurate, your comment are welcome.
If somebody think this table is useful, I will try to convert and post more matrix, right now I'm think about handicap matrix.
-------------------------------------------------------------------------
@March 20 2006
3 more matrix uploaded:Handcaip, Technology and Unit.
Acturely, only Handicap.zip are very useful, other 2 zip file isn't so useful.
Attached Files
File Type: zip LeaderChar.zip (20.8 KB, 5633 views)
File Type: zip HandiCap.zip (5.6 KB, 1959 views)
File Type: zip Technology.zip (7.9 KB, 1402 views)
File Type: zip Unit.zip (27.7 KB, 1119 views)

Last edited by fengertao; Mar 19, 2006 at 10:33 PM.
fengertao is offline   Reply With Quote
Old Feb 28, 2006, 11:46 PM   #2
kingjoshi
King
 
kingjoshi's Avatar
 
Join Date: May 2002
Location: Columbus, OH
Posts: 1,747
Thanks. Btw, could you also give the source? Did you use xerces xml parser?
kingjoshi is offline   Reply With Quote
Old Mar 01, 2006, 12:49 AM   #3
NeverMind
Proud to be Russian
 
NeverMind's Avatar
 
Join Date: Apr 2005
Location: Moscow, Russia
Posts: 601
Very interesting, fengertao! I also made Excel spreadsheets of LeaderheadInfos and HandicapInfo, you can find the links in my sig. Any chance that you provide us this xml-xls convertor?
NeverMind is offline   Reply With Quote
Old Mar 01, 2006, 02:54 AM   #4
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
Very glad to see that some friend like see my source.
As my code, acturely it is ugly because it is write for quick result.
(1)this application cannot run on DB other than excel, the reason is I'm to lazy to calculate the max length of each column, so I hard code the column length to 50. if some column longer than 50, in Excel it will run okey, but other DB maybe trunked or crushed.
(2)still need a little manual analsys on XML, to find out the "Composit Element" and the maximam element number. Also because I'm too lazy. Maybe I can do it in future.
(3)lot of variable/method of a bad name, very few comment and lots of duplicated code

the attachment is the source code.
the logic is defined in PlainXML2Table.java and Column.java.
the parameter is hardcoded in LeaderChar2Table.java

I run the App in SUN JDK 1.4.2, write Excel file by JDBC-ODBC bridge.
to run it:
(1) define ODBC source by windows control panel
(2) modify the parameter of LeaderChar2Table.java (at least you need modify xmlPath and dbUrl)
(3) compile and run LeaderChar2Table
Attached Files
File Type: zip LeaderCharMatrixSrc.zip (9.3 KB, 478 views)

Last edited by fengertao; Mar 02, 2006 at 02:30 AM.
fengertao is offline   Reply With Quote
Old Mar 01, 2006, 08:36 AM   #5
Zombie69
Emperor
 
Zombie69's Avatar
 
Join Date: Nov 2005
Posts: 1,898
Can't Excel import XML already?
Zombie69 is offline   Reply With Quote
Old Mar 01, 2006, 06:22 PM   #6
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
@Zombie69
I have Office 2000 in my PC, and I Havn't find the "import" function.
Is this a new feature of Office XP? or this feature is hided too depth to find out in Office 2000.
fengertao is offline   Reply With Quote
Old Mar 01, 2006, 06:32 PM   #7
kingjoshi
King
 
kingjoshi's Avatar
 
Join Date: May 2002
Location: Columbus, OH
Posts: 1,747
Office XP can open up an XML file. But it's quite different in it's output.

It becomes a 3MB file that's horrendous...
kingjoshi is offline   Reply With Quote
Old Mar 01, 2006, 07:40 PM   #8
DaveMcW
Deity
 
DaveMcW's Avatar
 
Join Date: Oct 2002
Posts: 6,487
You can count on any leader with 8+ iBasePeaceWeight to leave you alone.
__________________
. Cottages! . GP Bulb Techs . Vaporize Stupid People
Build at least 6 cities . Press Ctrl R to turn on resource bubbles . Build 1.5 workers per city . Check F9 Demographics often . Stay near the top in soldiers

. Rush Buying Formula
DaveMcW is offline   Reply With Quote
Old Mar 01, 2006, 09:46 PM   #9
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
If you have too weak army, and bad attitude, there are chance even Gandhi (iBasePeaceWeight = 10)will declare war against you
fengertao is offline   Reply With Quote
Old Mar 02, 2006, 02:33 AM   #10
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
Sorry to everybody, yesterday attached LeaderCharMatrixSrc.zip cannot run at all because I do a bad modify before upload.
I have fixed it and uploaded agin.
this version still cannot process tag format as
<Goodies>
<GoodyType>GOODY_HIGH_GOLD</GoodyType>
</Goodies>
I will fix it and upload new version.
fengertao is offline   Reply With Quote
Old Mar 02, 2006, 10:50 AM   #11
Zombie69
Emperor
 
Zombie69's Avatar
 
Join Date: Nov 2005
Posts: 1,898
Quote:
Originally Posted by fengertao
@Zombie69
I have Office 2000 in my PC, and I Havn't find the "import" function.
Is this a new feature of Office XP? or this feature is hided too depth to find out in Office 2000.
I only have Office 2000 myself and i'm pretty sure you can do it there.
Zombie69 is offline   Reply With Quote
Old Mar 03, 2006, 04:42 AM   #12
PieceOfMind
Drill IV Defender
 
PieceOfMind's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 9,291
Thanks fengertao! This looks really handy.
PieceOfMind is offline   Reply With Quote
Old Mar 19, 2006, 10:33 PM   #13
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12
3 more matrix uploaded into this thread
fengertao is offline   Reply With Quote
Old Mar 20, 2006, 08:06 AM   #14
cabert
Big mouth
 
cabert's Avatar
 
Join Date: Dec 2005
Location: France
Posts: 7,710
someone cares to explain the different values (thanks for the first one DaveMcW for iBasePeaceWeight)
What is iWarmongerRespect? you get +2 from alexander if your army is strong?

some are obvious :
iTechTradeKnownPercent
* Mansa Musa 0
* Tokugawa 100
__________________
Cabert
need happiness?; need health?

Last edited by cabert; Mar 20, 2006 at 08:14 AM.
cabert is offline   Reply With Quote
Old Mar 22, 2006, 08:15 PM   #15
maltz
King
 
maltz's Avatar
 
Join Date: Jan 2006
Posts: 942
In the personality matrix I can see that Monty is stated as "never build wonders".

In my current game actually Monty did so well that he built both the Pantheon and the Oracle. Here is the screenshot.

Click image for larger version

Name:	monty_wonder.jpg
Views:	1270
Size:	132.4 KB
ID:	120671
maltz is offline   Reply With Quote
Old Mar 22, 2006, 08:57 PM   #16
atreas
King
 
Join Date: Jan 2006
Location: Greece
Posts: 799
Quote:
Originally Posted by maltz
In the personality matrix I can see that Monty is stated as "never build wonders".

In my current game actually Monty did so well that he built both the Pantheon and the Oracle. Here is the screenshot.
It's strange - it's true that Monty is on "never build wonders". Perhaps the Deity level that you play affects him maltz . (Btw, it's Parthenon).

Another thing: the easier way to import an XML file in Office is just to use Access (and then, if you like it, you can export them to Excel).
atreas is offline   Reply With Quote
Old Mar 22, 2006, 10:57 PM   #17
fengertao
Chieftain
 
Join Date: Feb 2006
Posts: 12

Quote:
Originally Posted by maltz
In the personality matrix I can see that Monty is stated as "never build wonders".

In my current game actually Monty did so well that he built both the Pantheon and the Oracle. Here is the screenshot.

Attachment 120671
The Oracle are building in Teotihuacan & Tenochtitlan, So Monty build it by self instead of highjack from somebody else.

In the screenshot the cost of Oracle are 450 Hammers, so this is a marathon speed game. don't know other game setting.

Maybe there are modifier for "'iWonderConstructRand" base on game setting (map type, map size, game speed, diffculty ...). I havn't the game in hand, will try to check this later.
fengertao is offline   Reply With Quote
Old Mar 23, 2006, 01:49 AM   #18
cabert
Big mouth
 
cabert's Avatar
 
Join Date: Dec 2005
Location: France
Posts: 7,710
for the monty mystery, i can think of three good reasons:
- random personnalities checked
- modifiers to iWonderConstructRand, when (as example) AI is first o have a tech and/or has the specific ressource
- game mechanics going on BEFORE iWonderConstructRand even comes into account. I mean it may well be that regardless of this personnality variable, an AI with a tech leading to very high value wonders (as oracle) and with the specific ressource don't even think twice and start building, but not as a random fact, so don't make a calculation based on iWonderConstructRand.

my 2 cents
__________________
Cabert
need happiness?; need health?
cabert is offline   Reply With Quote
Old Mar 23, 2006, 07:40 AM   #19
maltz
King
 
maltz's Avatar
 
Join Date: Jan 2006
Posts: 942
Quote:
Originally Posted by cabert
for the monty mystery, i can think of three good reasons:
- random personnalities checked
- modifiers to iWonderConstructRand, when (as example) AI is first o have a tech and/or has the specific ressource
- game mechanics going on BEFORE iWonderConstructRand even comes into account. I mean it may well be that regardless of this personnality variable, an AI with a tech leading to very high value wonders (as oracle) and with the specific ressource don't even think twice and start building, but not as a random fact, so don't make a calculation based on iWonderConstructRand.

my 2 cents
In this game Monty does have Marble to start. He didn't found Hinduism (Elizebeth did), but seemed to use the free tech from Oracle to found Judaism (so at least he has Priesthood to build Oracle). It only gave him diplomatic trouble, though, as he is the only Judaism Civ in the Pangaea.

BTW I didn't check the random personality box. The game was Deity, Marathon, Standard Pangaea, 14 Civs.
maltz is offline   Reply With Quote
Old Mar 23, 2006, 08:03 AM   #20
cabert
Big mouth
 
cabert's Avatar
 
Join Date: Dec 2005
Location: France
Posts: 7,710
Quote:
Originally Posted by maltz
In this game Monty does have Marble to start. He didn't found Hinduism (Elizebeth did), but seemed to use the free tech from Oracle to found Judaism (so at least he has Priesthood to build Oracle). It only gave him diplomatic trouble, though, as he is the only Judaism Civ in the Pangaea.

BTW I didn't check the random personality box. The game was Deity, Marathon, Standard Pangaea, 14 Civs.
so it seems that there is a game mechanic somewhere that says "Go for oracle hen you have marble, on a deity marathon standard pangea game"

No kidding, I'm pretty sure there are modifiers/game rules for prince+ levels, as well as for specific ressources. When you see an AI going for Masonry, you know he's got stone or marble. It would make no sense going for Masonry and not using it, would it?
__________________
Cabert
need happiness?; need health?
cabert is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Strategy & Tips > Civ4 Strategy Articles > Leader personality matrix

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[REFERENCE] AI Leaders Personality Matrix ori Civ4 - Modding Tutorials & Reference 27 Jun 24, 2010 08:08 AM
Need help to find a useful leader personality chart. Bloodline Civ4 - General Discussions 3 Oct 10, 2008 03:26 PM
Leader Trait Matrix ? kcoun Civ4 - Realism Invictus 3 Dec 13, 2007 04:28 AM
Leader Personality Quirks? Mano3 Civ4 - General Discussions 3 Apr 26, 2006 10:41 AM
Personality AI leader Dutchciv2005 Civ4 - General Discussions 4 Nov 03, 2005 10:57 AM


Advertisement

All times are GMT -6. The time now is 08:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR