Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Dec 22, 2011, 05:10 PM   #1
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 25,002
Images: 51
We need help deciphering the HandicapInfos.xml

Hi @all ,

we need some help deciphering the HandicapInfos.xml.
We (mainly Poaukai and vexing) are currently setting up the Civ5InfoCenter, and one part there are the bonuses for the AI per difficulty level.
vexing created a nice table here, but we're not really sure what some of the values mean.

Help would be required for e.g.
AdvancedStartPointsMod
CityProductionNumOptionsConsidered
TechNumOptionsConsidered
PolicyNumOptionsConsidered
AttitudeChange
NoTechTradeModifier
TechTradeKnownModifier
AIDeclareWarProb
AITrainPercent
AIWorldTrainPercent
AIConstructPercent
AIWorldConstructPercent
AICreatePercent
AIWorldCreatePercent
AIPerEraModifier
AIAdvancedStartPercent

Some of the values make only isolated sense (e.g. AITrainPercent), but not in connection with others (AIWorldTrainPercent).
Could someone help us to make it clear what these tags mean ?

Thanks in advance .
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Dec 23, 2011, 04:20 AM   #2
magzhi
Warlord
 
magzhi's Avatar
 
Join Date: May 2010
Posts: 180
Quote:
Originally Posted by The_J View Post
AdvancedStartPointsMod
CityProductionNumOptionsConsidered
TechNumOptionsConsidered
PolicyNumOptionsConsidered
AttitudeChange
NoTechTradeModifier
TechTradeKnownModifier
AIDeclareWarProb
AITrainPercent
AIWorldTrainPercent
AIConstructPercent
AIWorldConstructPercent
AICreatePercent
AIWorldCreatePercent
AIPerEraModifier
AIAdvancedStartPercent
I think that AdvancedStartPointsMod is a left over from a civ 4 which multiplies advanced starting money by this number.
can't say anything else about others
magzhi is offline   Reply With Quote
Old Dec 23, 2011, 08:43 AM   #3
Sneaks
Brooklyn Bum
 
Sneaks's Avatar
 
Join Date: Oct 2010
Location: NYC
Posts: 1,876
Tech Trade stuff is from Civ IV and currently has no coding behind it in V.

AI DW Prob is how likely the AI is to declare on the player. I believe its set to 0 for Settler.
Sneaks is offline   Reply With Quote
Old Dec 23, 2011, 09:48 AM   #4
vexing
knows
 
vexing's Avatar
 
Join Date: Dec 2010
Posts: 2,668
Images: 3
Quote:
Originally Posted by Sneaks View Post
AI DW Prob is how likely the AI is to declare on the player. I believe its set to 0 for Settler.
the AI can declare war on the player on settler difficulty
vexing is offline   Reply With Quote
Old Dec 23, 2011, 03:45 PM   #5
Sneaks
Brooklyn Bum
 
Sneaks's Avatar
 
Join Date: Oct 2010
Location: NYC
Posts: 1,876
Hmm ok. I know barbs cannot enter player lands on settler and assumed the same for ai
Sneaks is offline   Reply With Quote
Old Dec 24, 2011, 11:03 AM   #6
deanej
Deity
 
deanej's Avatar
 
Join Date: Apr 2006
Location: New York State
Posts: 4,859
It might be a "base" setting that can be modified by other factors.
deanej is offline   Reply With Quote
Old Dec 27, 2011, 11:36 AM   #7
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 25,002
Images: 51
Quote:
Originally Posted by magzhi View Post
I think that AdvancedStartPointsMod is a left over from a civ 4 which multiplies advanced starting money by this number.
can't say anything else about others
Quote:
Originally Posted by Sneaks View Post
Tech Trade stuff is from Civ IV and currently has no coding behind it in V.
Both leftovers...not nice :/.

Does really nobody have an idea for the rest?
Would already be very helpful if somebody could set AITrainPercent and AIWorldTrainPercent into some relation, because it would also explain construct + create.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Jul 28, 2012, 01:07 PM   #8
Jabberwockxeno
Prince
 
Jabberwockxeno's Avatar
 
Join Date: Jul 2012
Posts: 458
Not sure if this is the right thread, but even on prince it seems the AI get's more of a bonus then what the table suggests.

Seeing as how this is an old thread, as any new info been found?
Jabberwockxeno is offline   Reply With Quote
Old Jul 29, 2012, 02:13 PM   #9
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,880
Quote:
Originally Posted by Jabberwockxeno View Post
Not sure if this is the right thread, but even on prince it seems the AI get's more of a bonus then what the table suggests.

Seeing as how this is an old thread, as any new info been found?
The AI receives all bonuses listed.

The AI also always has Chieftain-level happiness.

Nothing else could possibly be given to them.
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.
Putmalk is offline   Reply With Quote
Old Jul 29, 2012, 03:21 PM   #10
Jabberwockxeno
Prince
 
Jabberwockxeno's Avatar
 
Join Date: Jul 2012
Posts: 458
Quote:
Originally Posted by Putmalk View Post
The AI receives all bonuses listed.

The AI also always has Chieftain-level happiness.

Nothing else could possibly be given to them.
Hmm...

Maybe i'm just worse of a player than I thought
Jabberwockxeno is offline   Reply With Quote
Old Jul 29, 2012, 03:25 PM   #11
PawelS
Ancient Druid
 
PawelS's Avatar
 
Join Date: Dec 2003
Location: Poland
Posts: 1,915
I think it also gets some other Chieftain bonuses (for example technology and policy cost discounts), not only happiness.
PawelS is offline   Reply With Quote
Old Aug 02, 2012, 09:22 AM   #12
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,880
Quote:
Originally Posted by PawelS View Post
I think it also gets some other Chieftain bonuses (for example technology and policy cost discounts), not only happiness.
I've never heard of that before. I'll have to check out the file again and confirm; I thought there was a column which asked for "PolicyCostDiscount" (which would mean they don't only use Chieftain levels).
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.
Putmalk is offline   Reply With Quote
Old Aug 02, 2012, 12:37 PM   #13
Spatzimaus
Mad Scientist
 
Spatzimaus's Avatar
 
Join Date: Sep 2005
Location: Los Angeles, CA
Posts: 3,063
Quote:
Originally Posted by PawelS View Post
I think it also gets some other Chieftain bonuses (for example technology and policy cost discounts), not only happiness.
Correct. The AI doesn't get some special happiness bonus; the AI is simply playing on Chieftain, with all of the benefits that implies. It gets ALL of the bonuses for that handicap; most of those are just fairly minor, with Happiness being the only really noticeable difference.

If you change the AI's default handicap, then all of those go away. In my own mods, for instance, the AI played on Prince, but I'd altered quite a bit of the game balance in ways that'd reduce the gap between the human and an AI.
__________________
Once upon a time there was the Ages of Man mod set. Then Firaxis broke it. But thanks to the DLL efforts of the community, the mods shall rise again!
Spatzimaus is offline   Reply With Quote
Old Aug 02, 2012, 01:09 PM   #14
PawelS
Ancient Druid
 
PawelS's Avatar
 
Join Date: Dec 2003
Location: Poland
Posts: 1,915
Does it mean that the AI gets some bonuses twice? (For Chieftain difficulty and for the "AI something" columns.) I mean unhappiness reduction, but also things like bonus vs barbarians, and unit/building maintenance costs...
PawelS is offline   Reply With Quote
Old Aug 02, 2012, 01:40 PM   #15
Barathor
Prince
 
Barathor's Avatar
 
Join Date: May 2011
Posts: 481
Yes, I believe the AI plays as if it was at Chieftan difficulty and also receives the AI modifiers from the Player's chosen difficulty.

Also, starting at King, I believe the AI receives an additional bonus per era on top of everything else.

So, at King, during the ancient era, the AI would receive an additional -2 to many of its discounts; by the industrial era, it would receive -10 (-2 * 5 eras).

Last edited by Barathor; Aug 02, 2012 at 01:44 PM.
Barathor is offline   Reply With Quote
Old Sep 16, 2012, 09:26 PM   #16
Kristal
Chieftain
 
Join Date: Sep 2012
Location: Quebec
Posts: 10
Has a comprehensive list ever been made? It seems like this thread died on the table :/
Kristal is offline   Reply With Quote
Old May 07, 2013, 01:09 AM   #17
Anonimoustester
Chieftain
 
Join Date: May 2013
Posts: 2
I also would like to add that AI receives combat bonuses in immortal and Deity difficulties such as increased exp by double(triple?) (without the needed policy) coupled with enemy soldiers ending combat with 1 hp where they should have been dead (especially on ranged attacks) when that is coupled with exp boost, it is only possible to kill an enemy with minimum 3 attacks (assuming the units are the same) making it one of the biggest parts adding to difficulty which would have helped if it was on the list

Last edited by Anonimoustester; May 07, 2013 at 01:11 AM. Reason: typo
Anonimoustester is offline   Reply With Quote
Old May 07, 2013, 05:37 AM   #18
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,880
Ill go through the source at some point and translate
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.
Putmalk is offline   Reply With Quote
Old May 11, 2013, 09:44 AM   #19
joncnunn
Deity
 
joncnunn's Avatar
 
Join Date: Mar 2008
Posts: 2,511
All AIWorld___Percent rows: Appear to be left over from Civ IV; their current values (100 even at Deity) have no effect and I suspect even if you changed them they'd still have no effect.
(World Wonders were rolled into buildings; e.g. the AIConstructPercent bonus applies to world & national wonders in addition to buildings.)
AITrainPercent should be unit production.
I'm not sure what AICreatePercent is but it's the same value as Train & Construct anyway. (On Deity the AI builds everything 2X as fast and only needs to fill the food bucket 60%.

Note that this file interacts with GlobalAIDefines.xml. That file contains a section defining the AI handicap level. (By default Chieftain.) AI gets both bonuses; by default if your on Emperor AI has 90% of the Chieftain level unhappiness.

In addition this file interacts with the game speed xml (all players) for scaling.

And this file even interacts with the world size xml (all players) in which playing on a bigger map than "Small" slows downs science; but in addition on the large & huge map sizes all players get some city happiness bonuses.
__________________
Civ III/ IV AI: I sure wish Jon would hurry up and complete his turn, he's been at it for over 1,200,000 milliseconds now.
joncnunn is offline   Reply With Quote
Old May 11, 2013, 11:14 AM   #20
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,880
AITrainPercent: Unit cost. 70% means a unit costs 70% of its original value. Affects price of Great Prophets and faith purchases.
AIConstructPercent: Building Cost. 70% means a building costs 70% of its original value.
AIWorldConstructPercent: Wonder Cost. 70% means a wonder costs 70% of its original value.
AIWorldTrainPercent: Affects world unit class cost. You'll only see this if a unit has MaxGlobalInstances != -1.
AICreatePercent: For Projects (e.g. Manhattan Project).
AIWorldCreatePercent: For World Projects (not sure if there's an in-game example).
AIPerEraModifier: Judging by the code, modify the cost ((modifier*currentera) + 100) / 100. So if it's 100, by era it's cost*2, cost*3, cost*4, cost*5...I'm not really sure what this is supposed to do, because it seems to make the cost go up based on the era???
AIAdvancedStartPercent: Has no meaning, because it's never used in the code.
AIDeclareWarProb: Affects how likely the AI is to declare war on human.
AdvancedStartPointsMod - Never used.
CityProductionNumOptionsConsidered - AI will consider more building choices when evaluating which city production to choose next.
TechNumOptionsConsidered - AI will consider more tech choices when evaluating which technology to choose next.
PolicyNumOptionsConsidered - AI will consider more policy choices when evaluating which policy to choose next.
AttitudeChange - Never used.
NoTechTradeModifier - Never used.
TechTradeKnownModifier - Never used.

An example of AIPerEraModifier:
Spoiler:
Code:
//	--------------------------------------------------------------------------------
int CvPlayer::getProductionNeeded(UnitTypes eUnit) const
{
	CvUnitEntry* pkUnitEntry = GC.getUnitInfo(eUnit);

	CvAssertMsg(pkUnitEntry, "This should never be hit");
	if(pkUnitEntry == NULL)
		return 0;

	UnitClassTypes eUnitClass = (UnitClassTypes)pkUnitEntry->GetUnitClassType();
	CvAssert(NO_UNITCLASS != eUnitClass);

	CvUnitClassInfo* pkUnitClassInfo = GC.getUnitClassInfo(eUnitClass);
	CvAssert(pkUnitClassInfo);
	if(pkUnitClassInfo == NULL)
		return 0;

	int iProductionNeeded = pkUnitEntry->GetProductionCost();
	iProductionNeeded *= 100 + getUnitClassCount(eUnitClass) * pkUnitClassInfo->getInstanceCostModifier();
	iProductionNeeded /= 100;

	if(isMinorCiv())
	{
		iProductionNeeded *= GC.getMINOR_CIV_PRODUCTION_PERCENT();
		iProductionNeeded /= 100;
	}

	iProductionNeeded *= GC.getUNIT_PRODUCTION_PERCENT();
	iProductionNeeded /= 100;

	iProductionNeeded *= GC.getGame().getGameSpeedInfo().getTrainPercent();
	iProductionNeeded /= 100;

	iProductionNeeded *= GC.getGame().getStartEraInfo().getTrainPercent();
	iProductionNeeded /= 100;

	if(!isHuman() && !IsAITeammateOfHuman() && !isBarbarian())
	{
		if(isWorldUnitClass(eUnitClass))
		{
			iProductionNeeded *= GC.getGame().getHandicapInfo().getAIWorldTrainPercent();
			iProductionNeeded /= 100;
		}
		else
		{
			iProductionNeeded *= GC.getGame().getHandicapInfo().getAITrainPercent();
			iProductionNeeded /= 100;
		}

		iProductionNeeded *= std::max(0, ((GC.getGame().getHandicapInfo().getAIPerEraModifier() * GetCurrentEra()) + 100));
		iProductionNeeded /= 100;
	}

	iProductionNeeded += getUnitExtraCost(eUnitClass);

	return std::max(1, iProductionNeeded);
}
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.

Last edited by Putmalk; May 11, 2013 at 11:17 AM.
Putmalk is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > We need help deciphering the HandicapInfos.xml

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



Advertisement

All times are GMT -6. The time now is 05:54 PM.


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