1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[BTS] The Complete Guide to Espionage

Discussion in 'Civ4 Strategy Articles' started by Kaitzilla, Nov 19, 2018.

  1. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Beyond the Sword introduced Civ 4 to useful Spies and Espionage Points :espionage:, but never really explained the best way to use them. (Spies were useless in Warlords!)
    This guide is intended to cover every aspect of Espionage once and for all. :cowboy:
    (BtS Patch 3.19)


    A list of all the nice threads that came before:


    1) Start of the Game and Passive Missions
    Even before the era of spies starts, it is possible to use the espionage screen and scouts to get some info on your neighbors.

    The Palace, which every civilization's capital starts with, provides +4:espionage: points.
    Once the player meets an AI for the 1st time, both the AI and the player automatically start putting +4:espionage: per turn on each other.
    This event also unlocks the :espionage: slider below the tech slider.

    Press Control + E or the :espionage: button in the top right corner to open the Espionage Window.
    So far only the passives "Can See Demographics" and "Can See Research" are available after meeting an AI on Turn 1.
    Spoiler :


    Can See Demographics has a 0.3 modifier and starts at 0.3*(100+0) = 30:espionage:
    Unlocking this allows the player to see secret AI stats graphically compared to the player in the Info Screen (F9).
    Spoiler :
    The Info Screen (F9) includes GNP each turn (total commerce + total culture + total espionage + (total research * research bonus) – expenses), Manufactured Goods each turn (Total Hammers Produced), Crop Yield each turn (Total Food Produced), Culture each turn (Total of all Cities combined), Espionage (Cumulative Total produced over the game), and most importantly Power (Represented by Soldiers).
    Robi D's Demographics Guide explains Soldiers here.
    Spoiler :
    Soldiers for BTS 3.19

    Total Population of all cities combined

    1pop = 0 Soldiers
    2pop= 1000 Soldiers
    3pop= 1000 Soldiers
    4pop= 2000 Soldiers
    5pop= 2000 Soldiers
    6pop= 3000 and so on.

    Techs

    2000 Soldiers - Hunting, Mining, Animal Husbandry, Sailing
    4000 Soldiers - Wheel, Alphabet, Metal Casting, Compass, Construction,Astronomy, Steel, Radio, Satellites
    5000 Soldiers - Composites, Stealth
    6000 Soldiers - Archery, Mathematics, Chemistry, Combustion
    8000 Soldiers - Bronze Working, Machinery, Guilds, Fission, Flight, Assembly Line
    10000 Soldiers - Iron Working, Horseback Riding, Industrialism, Artillery, Rocketry, Advanced Flight, Laser
    12000 Soldiers - Gunpowder, Rifling, Military Science

    Buildings
    1000 Soldiers - Trading Post, Shale Plant, Totem Pole
    2000 Soldiers - Walls, Dry Dock, Castles, Forge, Factory, Stable, Mint, Assembly Plant, Industrial Park, Levee, Dike
    3000 Soldiers - Dun, Barracks, Ikhanda, Citadel
    4000 Soldiers - Mt. Rushmore, Red Cross, Iron works, Ger, Statue of Zeus
    6000 Soldiers - Military Acadamy
    8000 Soldiers - Heroic Epic, Chichen Itza, Scotland Yard, West Point
    10000 Soldiers - Great Wall, Cristor Redentor, Moai Statues

    Units
    2000 Soldiers - Warrior, Quechua, Galley
    3000 Soldiers - Archer, Trireme, Caravel, Carrack
    4000 Soldiers - Spearman, Impi, Holkan, Skirmisher, Bowman, Chariot, War Chariot, Immortal, Galleon, Airship
    5000 Soldiers - Catapult, Hwacha
    6000 Soldiers - Swordsman, Jaguar, Gallic Warrior, Axeman, Dog Soldier, Phalanx, Vulture, Pikeman, Landsknecht, Longbowman, Horse Archer, Numidian Cavalry, Keshik, East Indiaman, Privateer, Guided Missile
    7000 Soldiers - Cho-Ko-Nu, Crossbow
    8000 Soldiers - Praetorian, War Elephant, Ballista Elephant, Trebuchet, Frigate
    9000 Soldiers - Maceman, Samurai, Musketman, Musketeer, Janissary, Oromo Warrior
    10000 Soldiers - Berserker, Knight, Camel Archer, Ship of the Line
    12000 Soldiers - Grenadier, Cataphract, Cuirassier, Conquistador, Cannon, Ironclad, Fighter
    14000 Soldiers - Missile Cruiser, Rifleman, Redcoat, Anti Tank, Machine Gun
    15000 Soldiers - Cossack, Cavalry
    16000 Soldiers - Transport, Carrier, Bomber
    18000 Soldiers - SAM Infantry, Artillery
    20000 Soldiers - Infantry, Stealth Bomber
    22000 Soldiers - Mobile SAM
    24000 Soldiers - Jet Fighter
    26000 Soldiers - Gunship, Mobile Artillery
    28000 Soldiers - Marine, Navy SEAL, Submarine
    30000 Soldiers - Paratrooper, Tank, Panzer, Destroyer, Stealth Destroyer, Attack Submarine, Tactical Nuke
    32000 Soldiers - Mechanized Infantry
    40000 Soldiers - Modern Armor, Battleship, ICBM

    Power is all the Soldiers added up into one number.

    Power Ratio is the Player's Power / AI's Power.
    This number is very important for whether an AI decides the player is a valid war target, how much a player can beg/demand from an AI, if a Cease Fire is an option to end a war.
    Generally if a player has more Power than the AI, the war can end with a Cease Fire or a Peace Treaty with the AI giving stuff to the player.
    It is affected by the player or AI winning battles, capturing cities, and to a small extent capturing Workers or Settlers.

    The player's Power can be viewed any time in the Info Screen (F9) -> Demographics Tab at the bottom -> Value Column.
    Can See Research has a 0.75 modifier and starts at 0.75*(100+0) = 75:espionage:
    Unlocking this allows the player to see what the AI is currently teching in the scoreboard in the bottom right of the screen and how many turns to finish the tech at their current tech rate.
    If this is ever activated but blank, that means the AI has not put 1 turn into a new tech yet.



    Go forward a single turn to Turn 2, and both the AI and the human player put +4:espionage: into each other.
    Can See Demographics now costs = 31:espionage:
    Can See Research now costs = 78:espionage:
    Spoiler :

    Passive Mission Costs are governed by the formula:

    Base Factor * (100+How much they have against you) * Modifiers

    Base Factors for Passive Missions
    Demographics=0.3
    City Visibility=1.2
    Investigate=2
    See Research=0.75
    On Turn 1 Tokugawa has 0:espionage: accumulated against the player.
    His Passive 'Can See Demographics' cost the player 0.3*(100+0) = 30:espionage: to see.
    His Passive 'Can See Research' cost the player 0.75*(100+0) = 75:espionage: to see.

    On Turn 2 Tokugawa has 4:espionage: accumulated against the player.
    His Passive 'Can See Demographics' cost the player 0.3*(100+4) = 31:espionage: to see.
    His Passive 'Can See Research' cost the player 0.75*(100+4) = 78:espionage: to see.


    If the AI has met another AI besides the human player, they will likely put +2:espionage: per turn into the human or even +0:espionage: per turn.

    It is also possible to see how many total :espionage: points the AI has built up against the player at any time.
    Merely hover the mouse pointer over the AI in the scoreboard and the popup will give the Ratio of AI espionage points against the player / player espionage points against the AI.
    Spoiler :
    In this example, Tokugawa clearly met another AI. :)
    After 11 turns, Tokugawa has 20:espionage: on the player instead of 44:espionage:!


    Passive missions like 'See Demographics' and 'See Research' are based entirely on how much Espionage Points :espionage: the human and AI have stored up against each other.
    If the human player blows all their :espionage: they have stored up against the AI in a spy mission, all those passive bonuses go away until the pool of espionage points builds back up.
    If the AI blows all their :espionage: points they have stored up against the human with a spy mission, the cost to see their Demographics resets back to 30:espionage: and the cost to see their Research resets back to 75:espionage:.


    2) The 1st AI City
    Before Open Borders, it is possible to get vision on an AI city to see what they are doing.
    This is possible by standing on a hill to get +1 vision, staring across a lake to get +1 vision, the city being on a hill, or getting a good angle on the coast.
    Spoiler :
    Standing on a Hill


    Staring Across a Lake


    City is on a Hill


    Good Angle on the Coast

    Note that a forest or jungle can block vision on the city and a straight coastline is not enough to get city vision.
    Spoiler :



    Once vision is achieved on the 1st AI city, 3 things immediately happen.
    1st, the Espionage Screen is immediately updated with the final 2 of 4 Passive Missions.

    City Visibility has a 1.2 modifier and starts at 1.2*(100+0) = 120:espionage:.
    Unlocking this allows the player to view any AI city uncovered from the black fog as if the player had a unit standing inside that city. (Best with cities on a hill or next to a lake to see more than 9 tiles)
    Investigate City has a 2.0 modifier and starts at 2.0*(100+0) = 200:espionage:.
    Unlocking this allows the player to double click on any AI city uncovered from the black fog and view its intimate details as if the AI city were the player's own city. :cool:

    If the AI regularly accumulates +4:espionage: against the player, the player must accumulate more than +5:espionage: per turn against the AI to eventually unlock 'City Visibility'.
    If the AI regularly accumulates +4:espionage: against the player, the player must accumulate more than +8:espionage: per turn against the AI to eventually unlock 'Investigate City'.
    Don't expect to unlock these 2 passives against an AI with the measly +4:espionage: per turn from the Palace.
    The 1.2 modifier and 2.0 modifier are brutal.

    City Visibility and Investigate City's passive :espionage: costs are always increased by the Distance Penalty! :cry:
    The farther the AI cities are from the player capital, the more :espionage: it will take to reveal them.

    In addition to the distance penalty modifier, City Visibility/Investigate City are also affected by __% Cost espionage point spending, counterespionage mission by AI spy, security bureau building, trade routes, state religion, and city culture ratio modifiers.
    In comparison, Can See Demographics and Can See Research are only affected by __% Cost and Counterespionage mission by AI Spy modifiers.
    For more information on cost modifiers, read Section 6) Mission Costs After Modifiers later in this guide.


    To illustrate the distance penalty in an example, Tokugawa has +4:espionage: accumulated against the player with 'City Visibility' costing 179:espionage: and 'Investigate City' costing 301:espionage:.
    Spoiler :

    City Visibility = 1.2*(100+4)*Distance Penalty = 124*Distance Penalty = 179
    Investigate City = 2.0*(100+4)*Distance Penalty = 208*Distance Penalty = 301

    Distance Penalty from player capital to Tokyo is 179/124 = 301/208 = 1.45 = +45%
    124*1.45 = 179.8 = 179
    208*1.45 = 301.6 = 301
    Distance Penalty is also able to be calculated easiest through the Counterespionage Mission cost at the start of the game when everyone is still producing +4:espionage: per turn.
    Spoiler :
    The base cost of 'Counterespionage Mission' is 100:espionage: for Normal Speed games.
    When the Espionage Spending modifier is at (100% Cost) at the start of the game, then the Counterespionage Mission cost in a normal speed game is 100:espionage: * Distance Penalty * Espionage Spending Modifier (__% Cost).
    We can see that the Perform Counterespionage mission costs 145:espionage: in Tokyo in this screenshot.
    Spoiler :

    Since 145:espionage: is the cost after modifiers, and there is only 1 modifier (distance penalty) since __% Cost = 1.0, then it is easy to calculate the distance penalty for Tokyo will be +45% for the rest of the game. :)

    Here is the hard way to calculate distance penalty by counting tiles if you know what map you are playing.
    This is mainly for the mid-game when there are too many modifiers to subtract out, or the distance modifier needs to be known for a gift city.
    Spoiler :
    Calculating Distance Penalty the Hard Way :trouble:

    In this example, the Player has 15:espionage: in Tokugawa and Tokugawa has 8:espionage: in the Player.
    Spoiler :
    Note that Tokugawa has (86% Cost) next to his name.
    We understand the formula and only care about the espionage modifiers, so we write down (86% Cost).

    Next, we calculate Distance Penalty.
    Distance Penalty is calculated by the formula:
    (1+Target City distance to Player Capital / Max Distance)

    Target City distance to Player Capital is calculated by counting tiles (diagonal is 1.5 tiles)
    In this example there are 20 tiles between the Player capital and Tokyo.
    Spoiler :

    Max Distance is a number representing the farthest possible distance on the map from that one city can be from another.
    'Max_Distance' can be calculated if you know the map width and map height.
    Standard Sized Fractal is 52 tiles wide and has a height of 32 tiles.

    On a Flat Map, the max distance between 2 cities can be counted from the bottom left corner and counting diagonally up-and-to-the-right 31 tiles.
    Then count to the right 20 more tiles.
    Since Civ 4 counts diagonal tiles as 1.5 tiles, then the Max_Distance calculates to 31*1.5 + 20 = 46.5+20 = 66
    So the distance penalty for Tokyo should be (1 + 20/66) = 1.3333 = 33% Distance Penalty

    But this map is Cylindrical!
    That means we need to use a width of 52/2 = 26 and a height of 32.
    Because of world wrap, if the capital was 27 tiles to the west of the target city it would also be 25 tiles to the east of the target city.
    Max Distance for this Cylindrical wrapped map would be counting 26 tiles diagonally and then counting 5 tiles up.
    Max Distance on a Cylindrical Wrapped Map that is 52x32 is 26*1.5+5 = 44
    So the distance penalty for Tokyo should be (1 + 20/44) = 1.4545 or +45%

    We can check it very fast with World Builder using a Spy and a Great Spy Infiltration.
    Spoiler :

    So play Flat wrapped maps for spy heavy games to keep the distance penalty down.
    Cylindrical is not as good.
    Toroidal wrapped maps are very bad for spy games!

    The AI tends to spend :gold: on their Espionage Slider whenever the player unlocks 'See Research', so 'City Visibility and 'Investigate City' are almost never unlocked until the midgame.
    Causing the AI to use their :espionage: slider is one of the few ways to directly hurt an AI's teching speed by 10% or 20%. :)
    The AI will never increase their Espionage Slider over 20% due to coding as pointed out by Coanda.


    Does reaching 'City Visibility' passive threshold reveal undiscovered cities?
    No.
    Cities have to be manually seen with units or through a map trade before cities are visible.
    Spoiler :







    The 2nd thing that occurs when a city is unfogged from the blackness is that the population of the city is forever known to the human at all times.
    When an AI 3-pop whips their capital and the player doesn't have a single unit nearby, the Population of the city instantly updates in the gray fog. :D
    This is a surprising result, but knowing the total population of a neighbor is a good way of judging overall strength.
    So get vision on all those cities!

    The 3rd thing that occurs when a city is unfogged is that it is possible to zoom all the way in and see which buildings a city has.
    Zoomed-in city buildings guide here


    Finally, it is worth mentioning the effects of the Total Player Espionage Spending vs. the AI.
    This is a record of all the espionage points ever produced and is not affected by spending points in spy missions in any way.

    :espionage: Costs for all 4 Passive Effects are affected by the Total Espionage Spending Ratio for the Player/AI. (Counterespionage mission also affects all 4 Passive Effects, but AI never uses it)
    This Ratio becomes important when it deviates from 100% and can be viewed directly at any time in the Espionage Screen.


    Total Player Espionage spending vs. the AI Total Espionage Spending (__% Cost)
    is governed by the formula:
    (2 * TargetsTotalEPpoints + PlayerTotalEPpoints) / (TargetsTotalEPpoints + 2 * PlayerTotalEPpoints)
    In this example on Turn 3, the player has 15:espionage: in Tokugawa and Tokugawa has 8:espionage: in the player. (Met Tokugawa on Turn 1; Player has extra 7:espionage: due to slider)
    Spoiler :
    Note that Tokugawa has (86% Cost) next to his name.
    This means that the player has accumulated more TOTAL Espionage Points:espionage: in their history than Tokugawa has, so the number will be smaller than 100%.
    Due to this, the player gets a bonus against Tokugawa for the 4 Passive Effects and also when conducting Espionage Missions with Spies! :)

    Now one would be tempted to plug in 15:espionage: for the human and 8:espionage: for Tokugawa, but the +4:espionage: per turn that the Palace Generated from turn 0 counts even before we met the 1st AI.
    So for this example it would be 19:espionage: for the human and 12:espionage: for Tokugawa to correctly calculate __% Cost.
    (__% Cost) = (2*12+19)/(12+2*19) = (24+19)/(12+38) = (43/50) = 0.86 = (86% Cost)
    Precisely correct :D

    With the bonus provided by (86% Cost), instead of needing 81:espionage: to view Tokugawa's tech research, we only need 0.86 * 81 = 69.66 = 69:espionage: :high5:


    3) Knowing what the AI city is producing using 'Sabotage Production' Mission
    Let's take another look at the Espionage Screen after revealing the 1st AI city.
    The Passive Effects information at the top no longer interests us, we only care about the Spy Mission Costs and what can be gleaned from there.
    Spoiler :

    There are 13 possible Spy Missions.
    • Sabotage Tile
    • Sabotage Building
    • Sabotage Project
    • Sabotage Production
    • Steal Treasury
    • Spread Culture
    • Poison Water
    • Foment Unhappiness
    • Support City Revolt
    • Steal Technology
    • Influence Civics
    • Influence Religion
    • Perform Counterespionage

    All of these will be explored in detail later in this guide, but for now only Sabotage Production and Perform Counterespionage are interesting.
    'Sabotage Production' lets you know how many :hammers: an AI city has in their build.
    This indirectly lets you know what they are building.

    If Sabotage Production is blank, that means the item the AI is currently building has 0 hammers placed into it so far.
    This is irritating if the AI is completing an item every single turn as the 'Sabotage Production' information will remain blank. :cringe:

    =============================


    What is the foolproof formula for calculating :hammers: in a AI City build?

    :hammers: in AI City build = (Sabotage Production / City Revolt) * (650/6)

    Oh nice, why does that work? (LowtherCastle :hatsoff:)
    It works because of Algebra.

    1) :hammers:_in_city_build * 6 = Sabotage Production Base Mission Cost
    2) Sabotage Production Mission Cost seen in the city screen = Sabotage Production Base Mission Cost * modifiers.
    3) Sabotage Production Mission Cost seen in the city screen = :hammers:_in_city_build * 6 * modifiers
    We are trying to figure out :hammers:_in_city_build, so how do we get rid of the unknown quantity 'modifiers'? (modifiers is __% Cost, distance penalty, etc.)

    The base cost of 'City Revolt' is 650:espionage: for all game speeds.

    City Revolt cost on the city screen = 650 * modifiers
    We could divide Sabotage Production Mission Cost seen in city screen by City Revolt Cost seen in city screen to remove the hidden modifiers from both of them, then multiply by 650 to get just Sabotage Production Base Mission Cost.
    Sabotage Production Base Mission Cost is equal to :hammers:_in_city_build * 6.
    Divide Sabotage Production Base Mission Cost by 6 and we instantly have :hammers:_in_city_build, :D

    Best of all, Sabotage Production is always available if a city has hammers in a build, and City Revolt is also always available.
    The formula is correct for all game speeds and settings.

    Round up or down to the nearest integer to get the :hammers: in the AI city build.

    For our example with 7:espionage: sabotage production cost and 806:espionage: revolt city cost, we can calculate the hammers in Tokyo's city build to be = ((7/806)*(650/6)) = 0.94 or 1:hammers:
    A Great Spy infiltration confirms the city is indeed producing 1:hammers: in an Archer. :goodjob:
    The formula worked.

    =============================

    Once you know how many hammers are in an AI build, then you need to look up how many :hammers: the various AI builds cost on the difficulty you are playing.

    The game difficulty modifiers are described here: (Civ4HandicapInfo)
    http://modiki.civfanatics.com/index.php?title=Civ4HandicapInfo

    The best way to get the direct AI difficulty modifiers is to consult the Civ 4 XML Reference and see they are stored in Assets\XML\GameInfo
    http://modiki.civfanatics.com/index.php?title=Civ4_XML_Reference

    Here is the copy+pasted handicap information from the Civ 4 BTS 3.19 game files :D
    Spoiler :

    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Alex Mantzaris (Firaxis Games) -->
    <!-- Sid Meier's Civilization 4 -->
    <!-- Copyright Firaxis Games 2005 -->
    <!-- -->
    <!-- Handicap Infos -->
    <Civ4HandicapInfo xmlns="x-schema:CIV4GameInfoSchema.xml">
    <HandicapInfos>

    Settler Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_SETTLER</Type>
    <Description>TXT_KEY_HANDICAP_SETTLER</Description>
    <Help>TXT_KEY_HANDICAP_SETTLER_HELP</Help>
    <iFreeWinsVsBarbs>5</iFreeWinsVsBarbs>
    <iAnimalAttackProb>25</iAnimalAttackProb>
    <iStartingLocPercent>10</iStartingLocPercent>
    <iAdvancedStartPointsMod>150</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>24</iFreeUnits>
    <iUnitCostPercent>20</iUnitCostPercent>
    <iResearchPercent>60</iResearchPercent>
    <iDistanceMaintenancePercent>45</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>40</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>4</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>60</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>60</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>50</iCivicUpkeepPercent>
    <iInflationPercent>60</iInflationPercent>
    <iHealthBonus>4</iHealthBonus>
    <iHappyBonus>6</iHappyBonus>
    <iAttitudeChange>2</iAttitudeChange>
    <iNoTechTradeModifier>100</iNoTechTradeModifier>
    <iTechTradeKnownModifier>-100</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>100</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>150</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>750</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>160</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>50</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>55</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>4</iBarbarianCityCreationProb>
    <iAnimalBonus>-70</iAnimalBonus>
    <iBarbarianBonus>-40</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>0</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>1</iBarbarianDefenders>
    <iAIDeclareWarProb>25</iAIDeclareWarProb>
    <iAIWorkRateModifier>0</iAIWorkRateModifier>
    <iAIGrowthPercent>160</iAIGrowthPercent>
    <iAITrainPercent>160</iAITrainPercent>
    <iAIWorldTrainPercent>160</iAIWorldTrainPercent>
    <iAIConstructPercent>160</iAIConstructPercent>
    <iAIWorldConstructPercent>160</iAIWorldConstructPercent>
    <iAICreatePercent>160</iAICreatePercent>
    <iAIWorldCreatePercent>160</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>100</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>100</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>100</iAIInflationPercent>
    <iAIWarWearinessPercent>100</iAIWarWearinessPercent>
    <iAIPerEraModifier>0</iAIPerEraModifier>
    <iAIAdvancedStartPercent>100</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_SETTLER</GoodyType>
    <GoodyType>GOODY_SETTLER</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_WORKER</GoodyType>
    <GoodyType>GOODY_WORKER</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    </Goodies>

    <FreeTechs>
    <FreeTech>
    <TechType>TECH_THE_WHEEL</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_AGRICULTURE</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_MINING</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </FreeTechs>
    <AIFreeTechs/>

    </HandicapInfo>

    Chieftain Difficulty
    Spoiler :

    <HandicapInfo>

    <Type>HANDICAP_CHIEFTAIN</Type>
    <Description>TXT_KEY_HANDICAP_CHIEFTAIN</Description>
    <Help>TXT_KEY_HANDICAP_CHIEFTAIN_HELP</Help>
    <iFreeWinsVsBarbs>4</iFreeWinsVsBarbs>
    <iAnimalAttackProb>50</iAnimalAttackProb>
    <iStartingLocPercent>20</iStartingLocPercent>
    <iAdvancedStartPointsMod>130</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>18</iFreeUnits>
    <iUnitCostPercent>30</iUnitCostPercent>
    <iResearchPercent>75</iResearchPercent>
    <iDistanceMaintenancePercent>55</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>50</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>4</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>80</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>80</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>60</iCivicUpkeepPercent>
    <iInflationPercent>70</iInflationPercent>
    <iHealthBonus>3</iHealthBonus>
    <iHappyBonus>5</iHappyBonus>
    <iAttitudeChange>1</iAttitudeChange>
    <iNoTechTradeModifier>90</iNoTechTradeModifier>
    <iTechTradeKnownModifier>-50</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>80</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>100</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>600</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>150</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>45</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>50</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>5</iBarbarianCityCreationProb>
    <iAnimalBonus>-60</iAnimalBonus>
    <iBarbarianBonus>-30</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>0</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>1</iBarbarianDefenders>
    <iAIDeclareWarProb>50</iAIDeclareWarProb>
    <iAIWorkRateModifier>0</iAIWorkRateModifier>
    <iAIGrowthPercent>130</iAIGrowthPercent>
    <iAITrainPercent>130</iAITrainPercent>
    <iAIWorldTrainPercent>130</iAIWorldTrainPercent>
    <iAIConstructPercent>130</iAIConstructPercent>
    <iAIWorldConstructPercent>130</iAIWorldConstructPercent>
    <iAICreatePercent>130</iAICreatePercent>
    <iAIWorldCreatePercent>130</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>100</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>100</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>90</iAIInflationPercent>
    <iAIWarWearinessPercent>90</iAIWarWearinessPercent>
    <iAIPerEraModifier>0</iAIPerEraModifier>
    <iAIAdvancedStartPercent>100</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_SETTLER</GoodyType>
    <GoodyType>GOODY_SETTLER</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_WORKER</GoodyType>
    <GoodyType>GOODY_WORKER</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    </Goodies>

    <FreeTechs>
    <FreeTech>
    <TechType>TECH_THE_WHEEL</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_AGRICULTURE</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </FreeTechs>
    <AIFreeTechs/>

    </HandicapInfo>

    Warlord Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_WARLORD</Type>
    <Description>TXT_KEY_HANDICAP_WARLORD</Description>
    <Help>TXT_KEY_HANDICAP_WARLORD_HELP</Help>
    <iFreeWinsVsBarbs>3</iFreeWinsVsBarbs>
    <iAnimalAttackProb>75</iAnimalAttackProb>
    <iStartingLocPercent>30</iStartingLocPercent>
    <iAdvancedStartPointsMod>110</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>12</iFreeUnits>
    <iUnitCostPercent>40</iUnitCostPercent>
    <iResearchPercent>90</iResearchPercent>
    <iDistanceMaintenancePercent>65</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>60</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>5</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>90</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>90</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>70</iCivicUpkeepPercent>
    <iInflationPercent>80</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>0</iAttitudeChange>
    <iNoTechTradeModifier>80</iNoTechTradeModifier>
    <iTechTradeKnownModifier>-25</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>60</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>80</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>550</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>140</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>40</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>45</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>5</iBarbarianCityCreationProb>
    <iAnimalBonus>-50</iAnimalBonus>
    <iBarbarianBonus>-20</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>0</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>1</iBarbarianDefenders>
    <iAIDeclareWarProb>75</iAIDeclareWarProb>
    <iAIWorkRateModifier>0</iAIWorkRateModifier>
    <iAIGrowthPercent>110</iAIGrowthPercent>
    <iAITrainPercent>110</iAITrainPercent>
    <iAIWorldTrainPercent>110</iAIWorldTrainPercent>
    <iAIConstructPercent>110</iAIConstructPercent>
    <iAIWorldConstructPercent>110</iAIWorldConstructPercent>
    <iAICreatePercent>110</iAICreatePercent>
    <iAIWorldCreatePercent>110</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>100</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>100</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>80</iAIWarWearinessPercent>
    <iAIPerEraModifier>0</iAIPerEraModifier>
    <iAIAdvancedStartPercent>100</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_SETTLER</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_WORKER</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs>
    <FreeTech>
    <TechType>TECH_THE_WHEEL</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </FreeTechs>
    <AIFreeTechs/>

    </HandicapInfo>

    Noble Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_NOBLE</Type>
    <Description>TXT_KEY_HANDICAP_NOBLE</Description>
    <Help>TXT_KEY_HANDICAP_NOBLE_HELP</Help>
    <iFreeWinsVsBarbs>2</iFreeWinsVsBarbs>
    <iAnimalAttackProb>85</iAnimalAttackProb>
    <iStartingLocPercent>40</iStartingLocPercent>
    <iAdvancedStartPointsMod>100</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>8</iFreeUnits>
    <iUnitCostPercent>50</iUnitCostPercent>
    <iResearchPercent>100</iResearchPercent>
    <iDistanceMaintenancePercent>75</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>70</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>5</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>100</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>100</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>80</iCivicUpkeepPercent>
    <iInflationPercent>90</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>70</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>50</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>60</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>500</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>130</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>35</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>40</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>6</iBarbarianCityCreationProb>
    <iAnimalBonus>-40</iAnimalBonus>
    <iBarbarianBonus>-10</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>0</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>2</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>0</iAIWorkRateModifier>
    <iAIGrowthPercent>100</iAIGrowthPercent>
    <iAITrainPercent>100</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>100</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>100</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>100</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>100</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>80</iAIWarWearinessPercent>
    <iAIPerEraModifier>0</iAIPerEraModifier>
    <iAIAdvancedStartPercent>100</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs/>

    </HandicapInfo>

    Prince Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_PRINCE</Type>
    <Description>TXT_KEY_HANDICAP_PRINCE</Description>
    <Help>TXT_KEY_HANDICAP_PRINCE_HELP</Help>
    <iFreeWinsVsBarbs>1</iFreeWinsVsBarbs>
    <iAnimalAttackProb>90</iAnimalAttackProb>
    <iStartingLocPercent>50</iStartingLocPercent>
    <iAdvancedStartPointsMod>95</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>6</iFreeUnits>
    <iUnitCostPercent>60</iUnitCostPercent>
    <iResearchPercent>110</iResearchPercent>
    <iDistanceMaintenancePercent>85</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>80</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>6</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>110</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>110</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>90</iCivicUpkeepPercent>
    <iInflationPercent>95</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>60</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>40</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>50</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>450</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>120</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>30</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>35</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>6</iBarbarianCityCreationProb>
    <iAnimalBonus>-30</iAnimalBonus>
    <iBarbarianBonus>-5</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>0</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>2</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>10</iAIWorkRateModifier>
    <iAIGrowthPercent>100</iAIGrowthPercent>
    <iAITrainPercent>95</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>95</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>95</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>95</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>95</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>80</iAIWarWearinessPercent>
    <iAIPerEraModifier>-1</iAIPerEraModifier>
    <iAIAdvancedStartPercent>110</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs/>

    </HandicapInfo>

    Monarch Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_MONARCH</Type>
    <Description>TXT_KEY_HANDICAP_MONARCH</Description>
    <Help>TXT_KEY_HANDICAP_MONARCH_HELP</Help>
    <iFreeWinsVsBarbs>0</iFreeWinsVsBarbs>
    <iAnimalAttackProb>90</iAnimalAttackProb>
    <iStartingLocPercent>60</iStartingLocPercent>
    <iAdvancedStartPointsMod>90</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>4</iFreeUnits>
    <iUnitCostPercent>70</iUnitCostPercent>
    <iResearchPercent>115</iResearchPercent>
    <iDistanceMaintenancePercent>90</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>85</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>6</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>120</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>120</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>95</iCivicUpkeepPercent>
    <iInflationPercent>100</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>50</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>35</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>40</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>400</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>110</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>25</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>30</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>7</iBarbarianCityCreationProb>
    <iAnimalBonus>-20</iAnimalBonus>
    <iBarbarianBonus>0</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>1</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>0</iAIStartingExploreUnits>
    <iBarbarianDefenders>3</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>20</iAIWorkRateModifier>
    <iAIGrowthPercent>95</iAIGrowthPercent>
    <iAITrainPercent>90</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>90</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>90</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>90</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>90</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>75</iAIWarWearinessPercent>
    <iAIPerEraModifier>-2</iAIPerEraModifier>
    <iAIAdvancedStartPercent>120</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs>
    <FreeTech>
    <TechType>TECH_ARCHERY</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </AIFreeTechs>

    </HandicapInfo>

    Emperor Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_EMPEROR</Type>
    <Description>TXT_KEY_HANDICAP_EMPEROR</Description>
    <Help>TXT_KEY_HANDICAP_EMPEROR_HELP</Help>
    <iFreeWinsVsBarbs>0</iFreeWinsVsBarbs>
    <iAnimalAttackProb>90</iAnimalAttackProb>
    <iStartingLocPercent>70</iStartingLocPercent>
    <iAdvancedStartPointsMod>85</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>3</iFreeUnits>
    <iUnitCostPercent>80</iUnitCostPercent>
    <iResearchPercent>120</iResearchPercent>
    <iDistanceMaintenancePercent>95</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>90</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>7</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>130</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>130</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>100</iCivicUpkeepPercent>
    <iInflationPercent>100</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>40</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>30</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>35</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>350</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>100</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>20</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>25</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>7</iBarbarianCityCreationProb>
    <iAnimalBonus>-10</iAnimalBonus>
    <iBarbarianBonus>0</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>2</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>0</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>1</iAIStartingExploreUnits>
    <iBarbarianDefenders>3</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>50</iAIWorkRateModifier>
    <iAIGrowthPercent>90</iAIGrowthPercent>
    <iAITrainPercent>85</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>85</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>85</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>85</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>85</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>70</iAIWarWearinessPercent>
    <iAIPerEraModifier>-3</iAIPerEraModifier>
    <iAIAdvancedStartPercent>135</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_HIGH_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs>
    <FreeTech>
    <TechType>TECH_HUNTING</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_ARCHERY</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </AIFreeTechs>

    </HandicapInfo>

    Immortal Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_IMMORTAL</Type>
    <Description>TXT_KEY_HANDICAP_IMMORTAL</Description>
    <Help>TXT_KEY_HANDICAP_IMMORTAL_HELP</Help>
    <iFreeWinsVsBarbs>0</iFreeWinsVsBarbs>
    <iAnimalAttackProb>90</iAnimalAttackProb>
    <iStartingLocPercent>80</iStartingLocPercent>
    <iAdvancedStartPointsMod>80</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>2</iFreeUnits>
    <iUnitCostPercent>90</iUnitCostPercent>
    <iResearchPercent>125</iResearchPercent>
    <iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>95</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>7</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>140</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>140</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>100</iCivicUpkeepPercent>
    <iInflationPercent>100</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>30</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>25</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>30</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>300</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>90</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>15</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>20</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>8</iBarbarianCityCreationProb>
    <iAnimalBonus>-5</iAnimalBonus>
    <iBarbarianBonus>0</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>0</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>3</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>1</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>1</iAIStartingExploreUnits>
    <iBarbarianDefenders>4</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>75</iAIWorkRateModifier>
    <iAIGrowthPercent>85</iAIGrowthPercent>
    <iAITrainPercent>80</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>80</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>80</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>80</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>80</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>60</iAIWarWearinessPercent>
    <iAIPerEraModifier>-4</iAIPerEraModifier>
    <iAIAdvancedStartPercent>150</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs>
    <FreeTech>
    <TechType>TECH_AGRICULTURE</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_HUNTING</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_ARCHERY</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </AIFreeTechs>

    </HandicapInfo>

    Deity Difficulty
    Spoiler :
    <HandicapInfo>

    <Type>HANDICAP_DEITY</Type>
    <Description>TXT_KEY_HANDICAP_DEITY</Description>
    <Help>TXT_KEY_HANDICAP_DEITY_HELP</Help>
    <iFreeWinsVsBarbs>0</iFreeWinsVsBarbs>
    <iAnimalAttackProb>90</iAnimalAttackProb>
    <iStartingLocPercent>90</iStartingLocPercent>
    <iAdvancedStartPointsMod>75</iAdvancedStartPointsMod>
    <iGold>0</iGold>
    <iFreeUnits>1</iFreeUnits>
    <iUnitCostPercent>100</iUnitCostPercent>
    <iResearchPercent>130</iResearchPercent>
    <iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
    <iNumCitiesMaintenancePercent>100</iNumCitiesMaintenancePercent>
    <iMaxNumCitiesMaintenance>8</iMaxNumCitiesMaintenance>
    <iColonyMaintenancePercent>150</iColonyMaintenancePercent>
    <iMaxColonyMaintenance>200</iMaxColonyMaintenance>
    <iCorporationMaintenancePercent>150</iCorporationMaintenancePercent>
    <iCivicUpkeepPercent>100</iCivicUpkeepPercent>
    <iInflationPercent>100</iInflationPercent>
    <iHealthBonus>2</iHealthBonus>
    <iHappyBonus>4</iHappyBonus>
    <iAttitudeChange>-1</iAttitudeChange>
    <iNoTechTradeModifier>20</iNoTechTradeModifier>
    <iTechTradeKnownModifier>0</iTechTradeKnownModifier>
    <iUnownedTilesPerGameAnimal>20</iUnownedTilesPerGameAnimal>
    <iUnownedTilesPerBarbarianUnit>25</iUnownedTilesPerBarbarianUnit>
    <iUnownedWaterTilesPerBarbarianUnit>250</iUnownedWaterTilesPerBarbarianUnit>
    <iUnownedTilesPerBarbarianCity>80</iUnownedTilesPerBarbarianCity>
    <iBarbarianCreationTurnsElapsed>10</iBarbarianCreationTurnsElapsed>
    <iBarbarianCityCreationTurnsElapsed>15</iBarbarianCityCreationTurnsElapsed>
    <iBarbarianCityCreationProb>8</iBarbarianCityCreationProb>
    <iAnimalBonus>0</iAnimalBonus>
    <iBarbarianBonus>0</iBarbarianBonus>
    <iAIAnimalBonus>-40</iAIAnimalBonus>
    <iAIBarbarianBonus>-25</iAIBarbarianBonus>
    <iStartingDefenseUnits>0</iStartingDefenseUnits>
    <iStartingWorkerUnits>0</iStartingWorkerUnits>
    <iStartingExploreUnits>0</iStartingExploreUnits>
    <iAIStartingUnitMultiplier>1</iAIStartingUnitMultiplier>
    <iAIStartingDefenseUnits>4</iAIStartingDefenseUnits>
    <iAIStartingWorkerUnits>1</iAIStartingWorkerUnits>
    <iAIStartingExploreUnits>1</iAIStartingExploreUnits>
    <iBarbarianDefenders>4</iBarbarianDefenders>
    <iAIDeclareWarProb>100</iAIDeclareWarProb>
    <iAIWorkRateModifier>100</iAIWorkRateModifier>
    <iAIGrowthPercent>80</iAIGrowthPercent>
    <iAITrainPercent>60</iAITrainPercent>
    <iAIWorldTrainPercent>100</iAIWorldTrainPercent>
    <iAIConstructPercent>60</iAIConstructPercent>
    <iAIWorldConstructPercent>100</iAIWorldConstructPercent>
    <iAICreatePercent>60</iAICreatePercent>
    <iAIWorldCreatePercent>100</iAIWorldCreatePercent>
    <iAICivicUpkeepPercent>60</iAICivicUpkeepPercent>
    <iAIUnitCostPercent>60</iAIUnitCostPercent>
    <iAIUnitSupplyPercent>50</iAIUnitSupplyPercent>
    <iAIUnitUpgradePercent>50</iAIUnitUpgradePercent>
    <iAIInflationPercent>80</iAIInflationPercent>
    <iAIWarWearinessPercent>50</iAIWarWearinessPercent>
    <iAIPerEraModifier>-5</iAIPerEraModifier>
    <iAIAdvancedStartPercent>170</iAIAdvancedStartPercent>

    <Goodies>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_LOW_GOLD</GoodyType>
    <GoodyType>GOODY_MAP</GoodyType>
    <GoodyType>GOODY_WARRIOR</GoodyType>
    <GoodyType>GOODY_SCOUT</GoodyType>
    <GoodyType>GOODY_EXPERIENCE</GoodyType>
    <GoodyType>GOODY_HEALING</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_TECH</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_WEAK</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    <GoodyType>GOODY_BARBARIANS_STRONG</GoodyType>
    </Goodies>

    <FreeTechs/>
    <AIFreeTechs>
    <FreeTech>
    <TechType>TECH_THE_WHEEL</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_AGRICULTURE</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_HUNTING</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    <FreeTech>
    <TechType>TECH_ARCHERY</TechType>
    <bFreeTech>1</bFreeTech>
    </FreeTech>
    </AIFreeTechs>

    </HandicapInfo>

    </HandicapInfos>
    </Civ4HandicapInfo>
    AI build costs on Deity
    In the Ancient Era
    Units (iAITrainPercent) cost 60% of normal
    Buildings (iAIConstructPercent) cost 60% of normal
    Wonders (iAIWorldConstructPercent) cost 100% of normal
    City Growth (iAIGrowthPercent) costs 80% of normal :food:

    Archer 25*0.6 = 15:hammers:
    Work Boat 30*0.6 = 18:hammers:
    Barracks 50*0.6 = 30:hammers:
    Worker 60*0.6 = 36:hammers:
    Settler 100*0.6 = 60:hammers:
    Pyramids 500*1 = 500:hammers:

    Size 1 = 22*0.8 = 17:food: to Size 2
    Size 2 = 24*0.8 = 19:food: to Size 3
    Size 3 = 26*0.8 = 20:food: to Size 4

    Once a city is calculated to have between 37:hammers: and 59:hammers: it is probably a Settler.
    Once a city is calculated to have over 60:hammers: it is probably a Wonder.


    What makes Deity AI even more terrifying is the Era bonus they get.
    On Deity, for every era that the AI advances, they get a (-5%) to everything bonus. :eek:
    This is the infamous iAIPerEraModifier

    All the AI have to do is get an appropriate tech, advance to a new era, and they get a 5% bonus to almost everything.

    List of Techs to advance to the next Era
    Spoiler :
    Ancient Era Techs
    FISHING
    HUNTING
    MYSTICISM
    MINING
    PRIESTHOOD
    THE WHEEL
    AGRICULTURE
    ARCHERY
    MEDITATION
    POTTERY
    MASONRY
    POLYTHEISM
    SAILING
    ANIMAL HUSBANDRY
    MONOTHEISM
    WRITING
    BRONZE WORKING

    Classical Era Techs
    IRON WORKING
    LITERATURE
    HORSEBACK RIDING
    MATHEMATICS
    MONARCHY
    DRAMA
    AESTHETICS
    ALPHABET
    CONSTRUCTION
    CODE OF LAWS
    CALENDAR
    COMPASS
    CURRENCY
    METAL CASTING

    Medieval Era Techs
    THEOLOGY
    MUSIC
    PAPER
    OPTICS
    FEUDALISM
    BANKING
    MACHINERY
    CIVIL SERVICE
    PHILOSOPHY
    GUILDS
    ENGINEERING
    DIVINE RIGHT

    Renaissance Era Techs
    GUNPOWDER
    LIBERALISM
    ECONOMICS
    CORPORATION
    PRINTING PRESS
    REPLACEABLE PARTS
    NATIONALISM
    EDUCATION
    CHEMISTRY
    MILITARY SCIENCE
    MILITARY TRADITION
    CONSTITUTION
    ASTRONOMY
    RIFLING
    DEMOCRACY

    Industrial Era Techs
    FASCISM
    SCIENTIFIC METHOD
    COMMUNISM (Civ 4 code calls it UTOPIA :high5:)
    STEEL
    STEAM POWER
    BIOLOGY
    COMBUSTION
    PHYSICS
    ARTILLERY
    MEDICINE
    ELECTRICITY
    RAILROAD
    ASSEMBLY LINE
    FISSION
    INDUSTRIALISM

    Modern Era Techs
    MASS MEDIA
    REFRIGERATION
    ROCKETRY
    FLIGHT
    ADVANCED FLIGHT
    ECOLOGY
    RADIO
    SATELLITES
    SUPERCONDUCTORS
    COMPUTERS
    LASER
    PLASTICS
    COMPOSITES
    FIBER OPTICS
    ROBOTICS

    Future Era Techs
    GENETICS
    STEALTH
    FUSION
    FUTURE TECH


    So if the AI gets Nationalism and enters the Renaissance Era (Era = 3), they get a 3*5 = 15% bonus to production, food, units, and even Wonders!
    For a Renaissance Era Deity AI, build costs become:
    Units (iAITrainPercent) cost (0.6*0.85) = 51% of normal
    Buildings (iAIConstructPercent) cost 0.6*0.85) = 51% of normal
    Wonders (iAIWorldConstructPercent) cost (1.0*0.85) = 85% of normal
    City Growth (iAIGrowthPercent) costs (0.8*0.85) = 68% of normal :food:

    Archer 25*0.51 = 12:hammers:
    Work Boat 30*0.51 = 15:hammers:
    Barracks 50*0.51 = 25:hammers:
    Worker 60*0.51 = 30:hammers:
    Settler 100*0.51 = 51:hammers:
    Pyramids 500*0.85 = 425:hammers:

    Size 1 = 22*0.68 = 14:food: to Size 2
    Size 2 = 24*0.68 = 16:food: to Size 3
    Size 3 = 26*0.68 = 17:food: to Size 4

    The best way to keep track of the era of the AI is monitoring the AI's completed techs through the trade screen. ("Can Research" shows all the techs the AI has the prerequisites to research :eek:)
    City models only update for some eras and are not a great way to keep track of the AI's era.
    Spoiler :
     
    Last edited: Jul 2, 2019
    Pedro78, boogaboo, SittinDown and 5 others like this.
  2. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    4) Writing is teched and Open Borders is signed.

    This is a major milestone for gathering intelligence.
    Send a Scout in and reveal every AI city.
    Now all AI production, buildings, and population can be monitored. :)

    Can See Demographics
    Can See Research
    City Visibility
    Investigate City


    The 1st Passive Effect of 'Can See Demographics' is usually reached by the time Writing is teched.
    If both the AI and the player put +4:espionage: per turn on each other, they will both reach the 'Demographics' threshold after 11 turns.
    +4:espionage: * 11 turns = 44:espionage: the player and AI have on each other after 11 turns.
    0.3*(100+44) = 43:espionage: needed to activate 'Can See Demographics'

    To view Demographics, press the F9 key or click on the Info Screen button in the top right of the game.
    The graphs let the player view their GNP, Production, Food, Power (Soldiers), Culture, and Espionage compared to the AI.
    Spoiler :



    The 2nd Passive Effect of 'Can See Research' is occasionally reached by the time Writing is teched.
    If both the AI and player put +4:espionage: per turn on each other, they will both reach the 'View Research' threshold after 75 turns.
    +4:espionage: * 75 turns = 300:espionage: the player and AI have on each other after 75 turns.
    0.75*(100+300) = 300:espionage: needed to activate 'Can See Research'.

    The only way to really see an AI's current research is to use the :espionage: slider to go far beyond +4:espionage: per turn, or hope that the AI puts their +4:espionage: per turn onto a different AI and not the player.
    Spoiler :


    The 3rd and 4th Passive Effects 'City Visibility' and 'Investigate City' are almost never achieved by the time Writing is teched.


    There is one more final way to use Open Borders to gather intelligence that hasn't been mentioned here before.
    It is possible to tell if an AI has Horse, Copper, or Iron before the player techs Animal Husbandry, Bronze Working, or Iron Working.
    It is all about abnormal tile yields.
    Every time the AI gets Animal Husbandry, Bronze Working, or Iron Working, any Horse/Bronze/Iron tiles in their territory will get an additional +1:hammers: that the player can see.

    First turn on the Tile Yields button in the bottom right of the screen or press Control + Y.
    Then search for any abnormal +1:hammers: tile.
    As long as the black fog is removed, the tile yield will update in the grey fog even if a scouting unit is no longer there and the AI researches the necessary tech.
    Spoiler :
    Turn on Tile Yield
    Spoiler :

    Toku is technologically backwards. No abnormal tile yields.
    Spoiler :

    Toku secretly teched Animal Husbandry.
    If you spot an abnormality and no revolt to Slavery occurs, it is probably horses.
    Resources like Horse/Copper/Iron can appear anywhere, but Horses can't appear on hills/desert/ice tiles.
    Spoiler :

    Toku secretly teched Bronze Working and revolted to Slavery.
    Spoiler :

    Toku secretly teched Iron Working and a new abnormality appeared.
    Spoiler :


    5) Which AI are likely to use the Espionage Slider aggressively?
    Civ Illustrated has claimed for 6 years that different AI spend different amounts of resources on espionage.

    Here is a list of AI from lowest to highest for iEspionageWeight
    Spoiler :
    1) Gandhi = 50
    2) Mansa Musa = 60
    3) Tokugawa = 60
    4) Boudica = 70
    5) Montezuma = 80
    6) Asoka = 90
    7) Frederick = 90
    8) Huayna Capac = 90
    9) Qin Shi Huang = 90
    10) Suleiman = 90
    11) Alexander = 100
    12) Augustus = 100
    13) Charlemagne = 100
    14) Cyrus = 100
    15) Darius = 100
    16) Genghis Khan = 100
    17) Gilgamesh = 100
    18) Hammurabi = 100
    19) Hannibal = 100
    20) Hatshepsut = 100
    21) Julius Caesar = 100
    22) Kublai Khan = 100
    23) Napoleon = 100
    24) Pacal = 100
    25) Pericles = 100
    26) Ragnar = 100
    27) Ramesses = 100
    28) Saladin = 100
    29) Shaka = 100
    30) Suryavarman = 100
    31) Willem Van Oranje = 100
    32) Zara Yaqob = 100
    33) Brennus = 110
    34) De Gaulle = 110
    35) Elizabeth = 110
    36) Joao = 110
    37) Justinian = 110
    38) Lincoln = 110
    39) Mehmed = 110
    40) Victoria = 110
    41) Wang Kon = 110
    42) Bismark = 120
    43) Churchill = 120
    44) Roosevelt = 120
    45) Isabella = 120
    46) Louis XIV = 120
    47) Peter = 120
    48) Sitting Bull = 120
    49) Washington = 120
    50) Catherine = 130
    51) Mao = 130
    52) Stalin = 150

    Constructing a test game, let's test real quick how the various AI respond to heavy :espionage: pressure.
    Gandhi + Boudica + Asoka + Brennus + Catherine + Stalin will give us a nice spread of iEspionageWeight (50/70/90/110/130/150)
    Set up the capital to produce +72:espionage: per turn, split it to +12:espionage: per turn vs. each AI, and press next turn repeatedly until a nice graph is produced.
    Spoiler :





    The results are not what I expected! :eek:
    The espionage leader on Turn 125 was Brennus.
    Catherine and Stalin were last.
    Gandhi, Boudica, Asoka, and Brennus all put 20% slider into :espionage:
    Catherine and Stalin kept their espionage slider at 0%

    I guess iEspionageWeight isn't a useful measure of AI espionage after all? :dunno:

    **Edit**
    Coanda
    says it is still useful. :D
    https://forums.civfanatics.com/threads/the-complete-guide-to-espionage.638613/#post-15294465


    6) Alphabet and Spies
    Once the player techs or trades for Alphabet, they can produce Spies and start spending the :espionage: points they have built up against the AI.

    Immediately 4 questions appear.
    • What are the odds my Spy will be captured and killed each turn?
    • What are the 13 Spy Missions and what do they cost?
    • What are the odds of success for each Spy Mission?
    • What are the modifiers to the cost and odds of success for each Spy Mission?
    95% of the work on this has already been done on this by Bhruick , Roland Johansen, and KrikkitTwo.
    I will try to sum it up below.


    Spy Death Odds Each Turn while in AI Territory

    When the player presses next turn, they always hold their breath wondering if their spies in AI territory will spontaneously die. :please:

    This death check only occurs twice.
    Once at the end of every player turn for spies in AI territory, and once after successfully completing a spy mission when the spy tries to return to the player capital.

    Horrifying Math: :sad:
    Spoiler :

    One of the important factors for calculating spy death odds is the Target AI's Total :espionage: ever produced / (Player Total :espionage: ever produced + Target AI's Total :espionage: ever produced). REP from Bhuric.
    "REP" is REALLY annoying to keep track of. :mad:
    The game keeps track of all the :espionage: an AI has built up over the course of the game against other AI and the Player in the Foreign Advisor screen (hover mouse point to see :espionage: ratio 0/0)
    Spoiler :

    However, once some of it gets spent in a Spy Mission we can no longer reconstruct the AI Total :espionage: ever produced.
    (__% Cost) keeps track of all the :espionage: ever produced with the formula (2 * Target AI :espionage: Total + Player :espionage: Total) / (2 * Player :espionage: Total + Target AI :espionage: Total)
    Can we use that to get Target AI's Total :espionage: ever produced/ (Player Total :espionage: ever produced + Target AI's Total :espionage: ever produced)?

    Yes! :D
    100% Cost = (2x + y) / (x + 2y) = 1.0
    y = x
    substitute y = x into x / (x + y) = and that gets 0.5
    (100% Cost) in the Espionage Screen translates to REP = 0.5 for Bhruick's formula.

    99% Cost = (2x + y) / (x + 2y) = 0.99
    0.98y = 1.01x
    y = 1.0306x
    substitute y = 1.0306x into x / (x + y ) = and that gets 0.4925

    98% Cost = (2x + y) / (x + 2y) = 0.98
    0.96y = 1.02x
    y = 1.0625x
    substitute y = 1.0625x into x / (x + y ) = and that gets 0.4848

    Once we generate 100 values for (50% Cost) to (150% Cost), we plug that into Bhruick's formula for Spies getting caught.
    Then put everything into a big table so others never have to do the hard math.

    ===========================

    Should we round to the nearest 1% or 0.1% for spy death odds?

    For mission success odds it is (1 - mission failure % rounded down). :hmm:
    So instead of 75.5% odds of mission success, Civ 4 actually says 76%

    I wonder if a spy having a 0.1% chance of getting caught rounds down to 0%, and the chance of a Spy living is either 99% or 100% under the most favorable conditions?

    Let's test it with 100 Spies, random seed on reload, 1 turn.

    First we test the "moved spy" bug.
    The Spy can not move at all, but if it doesn't have -10% wait bonus then it is counted as having moved for the purposes of Mission Success % odds.
    Give the human player infinite :espionage: so that the odds of a Spy dying is 0.000001%.
    If the bug is activated, then all 100 Spies will actually have a 1.50000001% chance to die the 1st turn and we should see it with 100 spies.
    Spoiler :






    And there it is, 2 deaths with infinite :espionage: :cringe: :cry:
    If the Spy does not have -10% wait bonus but still has the full 2:move: when the turn ends, it is counted as having "moved" and gets an additional +1.5% chance to get caught with Open Borders and +3.75% chance to get caught with Closed Borders.

    In this next test, the human player will have 300:espionage: compared to the test AI of 40:espionage: on Turn 10, so with Open Borders and no spies on top of each other or spy movement, the Spies should have a 40/340 * 2.5 = 0.29% chance of dying for 1 turn.
    0.3 Spies out of 100 Spies should die if there is rounding to 0.2 or 0.29 or 0.3 on each reload.
    0 Spies out of 100 should die if the whole thing gets rounded down to 0 on each reload.
    Spoiler :



    About 1 death every 3 turns or so.
    This indicates Civ 4 rounds spy death odds to the nearest 0.1%. (The code sort of hints at a 10,000 sided dice roll, so that means Open Borders final odds have 0.1% increments and Closed Borders final odds have 0.25% increments)
    Good to know! :D



    Check the Espionage Screen to see what your (% Cost) with the target AI is, then add up all 4 factors to determine Spy Death Odds based off if you have Open or Closed Borders with the target AI.

    Examples
    With 84% Costs, Open Borders, and 3 spies on the same city tile, the odds of one of them dying after pressing End Turn or after completing a spy mission are:
    0.9% + 1.5% + 0% +0% = 2.4% chance to die

    With 112% Costs, Closed Borders, spy has 2:move:but still doesn't have a -10% or greater wait bonus yet, and was unlucky enough to stand on the same tile as an invisible enemy spy, the odds of dying are:
    3.5% + 3.75% + 0% +3.75% = 11% chance to die

    Can spies on boats die in AI territory?

    Nope! :cool:
    Spies on ships can not be caught.

    They also can not build up -__% wait bonuses. :sad:
    Even if the player ship+spy stays in the AI city for 5 turns, the spy gains no wait bonus.

    On the plus side, the ship can sail into the AI city, unload the spy, and the spy will have -10% wait bonus the following turn because it used no :move: to enter the city.

    Can spies on boats die the instant after successfully completing a mission?
    Yes. :sad:
    The boat helps them avoid the death check in between turns, but they die just as often as regular spies after completing their mission.

    Do AI non-spy units like workers and military units increase the odds of detecting player spies if they occupy the same tile?
    No.
    As far as units go, only 1 enemy spy sharing the same tile as the player spy increases the odds of the player spy dying.


    Spy Mission Base Costs and Base Mission Success Odds + Strategy Comments
    (Valid for all game speeds and map sizes unless told otherwise)


    13 Spy Missions.
    What are the best way to use these missions, and which are just a waste of resources?

    1) Sabotage Tile - Can destroy any tile improvement outside an AI city.
    Base Cost is 75:espionage: on Normal Speed, 50:espionage: on Quick Speed, 112:espionage: on Epic Speed, and 225:espionage: on Marathon Speed.
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 88% (AI :espionage:_% Cost = 100%)​

    Deity AI workers build improvements twice as fast.
    That means Mines/Pastures take 2 worker turns and Farms take 3 turns.
    Blowing up Towns might be fun since they take so long to grow back, but it is a bit wasteful for spy deaths, espionage points, and possible pillage gold.
    • Best use is right before a war, blow up a tile near the border. AI Workers will rush there to repair the tile and can easily be gobbled up with a war declaration.
    • Next best use is to use a Spy to destroy a strategic tile during war. If the AI only has 1 source of Iron and it gets blown up, then all those Sword whips get put on hold until the mine gets rebuilt. Perhaps the AI will even switch builds to something else.
    • 3rd best use is causing a reign of terror by blowing up all happiness resources after running "Forment Unhappiness" in all the major AI cities. The AI does not know how to handle extreme unhappiness problems in cities by running 100% culture slider.
    • 4th best use is if the AI has cities full of air units and has Forts with air units. Blow up a Fort and AI units rebase to open cities or forts. If there are no open cities or forts, the units vanish. AI air units will not rebase to other civs cities, nor will they rebase to Aircraft Carriers. They just go poof! :)
    2) Sabotage Building - Can destroy any building in a city.
    Can't destroy World Wonders, National Wonders, or buildings created by Great People like Academy or Scotland Yard.
    Base Cost is 6 * :hammers:_cost_of_the_building_for_the_player :espionage:
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 87%

    Very expensive! Almost not worth doing.
    • Sabotaging Walls takes the Castle defense bonus down until the Walls can be rebuilt. That means Catapults can easily bombard a city down to 0% defenses in 1 turn with no Wall or Castle blunting bombardments. This costs 300:espionage: on normal speed and is a cheaper alternative to revolting a city for 650:espionage:. Cost effective if taking a city in 2 turns instead of 1 is acceptable.
    3) Sabotage Project - Can destroy any completed Spaceship Part! :cool:
    Spoiler :

    This mission can occur in any of the AI's cities.
    It doesn't have to be in the city that completed the spaceship part.
    One might also think 'Sabotage Project' would destroy all progress a city has in The Manhattan Project, The Internet, Apollo Program, SDI, or any Spaceship Part, but that is Sabotage Production.
    Base Cost is 6 * :hammers:_cost_of_the_spaceship_part_for_the_player :espionage:
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 85%

    Also extremely expensive.
    • Best used when the AI is down to 1 essential space part left. The 1st SS Engine or the SS Stasis Chamber have no production bonuses, so those are the best to target. Don't forget that in the Modern Era Deity AI will get 25% cheaper space parts.
    • If the AI still manages to launch the Spaceship, don't forget that capturing the AI capital will destroy the already-launched Spaceship, and the AI will have to rebuild it from scratch.
    Spoiler :
    AI 1 turn away from Space Victory loses capital during a war.
    Spaceship lost, build another one!


    4) Sabotage Production - Can destroy all progress a city is producing for a unit, building, wonder, or project.
    Base Cost is 6 * :hammers:_currently_in_the_production :espionage:
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 88%
    Again, extremely expensive.
    • Best used to sabotage critical wonders from being built like SDI before a nuclear attack. I don't recall ever using this spy mission in a game.
    5) Steal Treasury - Can steal the AI's stockpile of gold based off the ratio of the city population / empire population.
    That means a spy located in a 10 population city in a 50 population empire can steal 20% of a civ's total :gold: supply.
    Base Cost is 3 * :gold:_amount_being_stolen :espionage:.
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 85%
    • Good for taking the entire treasury of a defeated AI with only a few cities left if the Espionage Screen indicates they are rich. With such little population, the defeated AI will only ever trade 0:gold: until their population recovers to pre-war levels.
    • To get that gold stash they are no longer will to trade, conquer a civ down to 1 city. Sign a Cease Fire and gift them a city full of spies with wait bonuses. Declare war, conquer the final original AI city, steal the treasury from the gift city (100% of the AI's total :gold: since the AI has 1 city), then conquer the gift city to kill the AI off completely. If the gold pile is far too large to steal because you don't have enough :espionage:, then take it a piece at a time from the gift city while the AI still has 2 cities.
    6) Spread Culture - Increases the player's city culture inside the target city by 5% of the target city's Total city culture (human + AI).
    This mission only activates once a player city reaches 100:culture: or more and the border expansion engulfs the target city.
    In cases where the target city was recently gifted away to the AI, a 1 turn wait is required before the Spread Culture Mission is activated.
    The Spread Culture Mission will also not activate if the target city has less than 20 total city:culture:, or if the mission costs less than 1:espionage: due to extreme mission cost reduction.
    Spoiler :
    No Spread Culture Mission


    Spread Culture Mission activates once player borders reach the tile of the target city.


    Spread Culture Mission costs less than 1:espionage: to perform, so it does not appear.

    Base Cost is 3 * :culture:_amount_being_spread :espionage:
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 88%
    • Good for winning a culture victory with Spies! The strategy to accomplish this is long enough to require a whole extra post.
    • Spread Culture mission is also good for reducing occupation revolt times in large population AI cities that get conquered near the player border. It will also increase the odds that buildings will survive the city being conquered once the player city culture equals or exceeds AI city culture. That means even a National Wonder that the player does not have can be acquired. :D
    I can hear you lurkers screaming for details on this.
    Dhoomstriker explained it well here.

    Basically, when the player captures an AI city that has none of the player's city culture inside it, the following occurs:
    Spoiler :
    The city usually loses 1 population and the occupation revolt timer is calculated. (Thanks Pollina!)
    Spoiler :
    Code:
    if (iTeamCulturePercent < GC.getDefineINT("OCCUPATION_CULTURE_PERCENT_THRESHOLD"))
            {
                pNewCity->changeOccupationTimer(((GC.getDefineINT("BASE_OCCUPATION_TURNS") + ((pNewCity->getPopulation() * GC.getDefineINT("OCCUPATION_TURNS_POPULATION_PERCENT")) / 100)) * (100 - iTeamCulturePercent)) / 100);
            }

    Turns until conquered city comes out of revolt = Floor[Floor[(3+Population*0.5)]*(100 - PlayerCulture%) / 100].
    Population is the city population after the conquest.
    (population goes down by 1 during a city capture unless the city is already at Size 1. If a city has never been higher than Size 1, then it would autoraze unless "no city razing" was picked before the game started)
    PlayerCulture% is the ratio of the player's city culture in the target city / Total culture in the target city (AI+human player).
    If the player ran 6 spread culture missions in an AI city with 20 AI city :culture:, then PlayerCulture% = 6/26 = 0.230769 = 23%
    Plugging into the above formula, the number of turns of occupation revolt in the conquered city would be Floor[Floor[(3 + Population * 0.5)] * (100 - 23) / 100].
    If the population of the conquered city was a staggering 98 after conquest, then the turns of revolt would be Floor[Floor[(3 + 98*0.5)] * (100 - 23) / 100] = Floor[Floor[(52)] * (77) / 100] = Floor[52 * 77 / 100] = Floor(40.04) = 40 turns.
    World builder proves this to be correct.

    Before the 6 spread culture missions, the occupation revolt time was 52 turns, not 40, so spread :culture: missions can be valuable in high population AI cities near the player border.



    Next, dice are rolled and all the buildings in the city face a destruction check. :sad:

    The buildings with a 100% chance to survive the AI city being conquered by the player <100 iConquestProb> are ALL world wonders, religious shrines, and the Great People buildings Academy and Scotland Yard.
    The buildings with a 0% chance to survive the AI city being conquered by the player <0 iConquestProb> are ALL National Wonders, Wall, Castle, Barrack, Stable, Airport, Monument, Public Transportation, Library, University, Theatre, Odeon, Temple, Monastery, and Cathedral.
    The buildings with a 66% chance to survive the AI city being conquered by the player <66 iConquestProb> are all the rest of the regular buildings the city can build that don't have a 0% chance to survive.

    What can the spread culture mission do for these odds?
    If the AI has 100:culture: in their city, then the Spread Culture mission can spread 5:culture: or 5% into AI city.
    So the AI city would have 100 AI:culture: and 5player:culture:
    The culture percentage would be 4.76% player / 95.24% AI
    It seems to round down for the player, so it is actually 4% player / 96% AI? :hmm:

    Now some buildings can never, ever, under any circumstances be captured when a city is conquered.
    The have <bNeverCapture> = 1.
    These are Monument, Library, University, Theatre, Temple, Cathedral, Monastery.

    Once PlayerCulture% equals or goes above 25% in the target city, the player loses the ability to Raze the captured city.
    Once PlayerCulture% equals or goes above 50% in the target city, the player no longer loses 1 population when capturing the city and 100% of ALL buildings besides Monument, Library, University, Theatre, Temple, Cathedral, and Monastery(<bNeverCapture> = 1) survives!
    That means Walls, Castles, and even National Wonders (not Palace) survive the city capture! :dance: :D
    Once PlayerCulture% equals or goes above 75% in the target city, the player gains immediate control of the city and has no turns of occupation anarchy!

    Having PlayerCulture% at 49% resulted in the total destruction of 10 National Wonders and Barracks+Walls+Castle in multiple tests, so it appears the odds of buildings surviving only change at PlayerCulture% reaching 50% or higher.

    Starting with 0 player city culture in the target AI city:
    It takes roughly 8 spread culture missions to get to 27% PlayerCulture%.
    It takes roughly 16 spread culture missions to get to 52% PlayerCulture%.
    It takes roughly 30 spread culture missions to get to 75% PlayerCulture%.

    Doing 16 Spread Culture missions or more to get Player City Culture above 50% takes a lot of time and hammers, so it isn't worth doing unless the city has an important National Wonder or a ton of buildings facing the 66% destruction check. :hmm:


    Gifting a city away does not remove the player's city culture.
    Only the player's plot culture on the city square and surrounding 8 squares vanishes.

    Giving a relatively new Size 2 city away with 0 player city :culture: and immediately reconquering it so the AI city :culture: is 0 acts just like PlayerCulture% = 0%.
    This action reduces the city to Size 1, destroys buildings, and gives 3 turns of occupation revolt.

    Make sure to accumulate 1 city:culture: before gifting away a city and recapturing it the same turn! :thumbsup:
    The earliest Culture Victory ever achieved with spies was 1300BC. ;)
    The spread culture mission does not add any plot culture to the city tile.

    7) Poison Water - Poison's the target city's water supply causing 8:yuck:.
    This reduces by 1:yuck: every turn until 8 turns later the city is back to full :health:.
    Can not be repeated until the city regains full :health:
    Base Cost is 120:espionage: for all game speeds
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 94%
    • A waste of precious espionage points. Deity AI cities have +2:health: and +4:) at the start of the game just like the player, but destroying an AI's food is better accomplished with Forment Unhappiness by far. If used anyway, remember to avoid AI cities with a lots of forests in the big fat cross that give +0.5:health: each and target the cities with lots of flood plains +0.4:yuck: and jungle +0.25:yuck:.
    8) Forment Unhappiness - Causes 8:mad: to the target city.
    This reduces by 1:mad: every turn until 8 turns later the city is back to full :)
    Can not be repeated until the city regains full happiness.
    Base Cost is 120:espionage: for all game speeds
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 94%
    • Vicious on normal and quick speeds against Size 6 and Size 7 AI cities at the happiness cap since those cities can lose population starving. Best for high production cities with not much food surplus to regrow quickly. :devil:
    • 7 angry citizens still eat 14:food:, more than half a Population 7 cities' 25:food: Deity AI food bin. The city quickly empties the food bid and then starves down to Size 4 or Size 5 :evil:. Pair this with Sabotage Tile blowing up Gold or Gems once the cities start starving (assuming more than 1 city was hit with Forment Unhappiness), and the cities will usually starve 1 more population.
    • Also good for slowing down Wonder production in an AI city. Don't forget Oracle can be whipped complete if Marble is available.
    • Don't bother blowing up a Granary for 360:espionage: after the starvation ends. It is too expensive. Just Poison Water after 4 turns of Forment Unhappiness to keep the food bin from refilling quickly, then forment Unhappiness again 4 turns later to take an AI city to Size 1 or 2 if you really want to hurt it badly.
    9) City Revolt - Causes city to revolt for 1 turn.
    City defenses temporarily drop to 0% for 1 turn.
    Base Cost is 650:espionage: for all game speeds
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 88%
    • A spectacular way to take a fortress city with high defenses in 1 turn! :D Very expensive though.
    10) Steal Technology - Instantly steal a technology that the target AI owns.

    If a new technology is unlocked by a tech steal, that new technology can also instantly be stolen by a 2nd Steal Technology mission.
    In theory the entire tech tree could be stolen by an army of Spies in a single turn.

    Stolen techs are not counted against "We Fear You Are Becoming Too Advanced"
    Much like bulbing a technology, stolen techs can only be traded to other AI the following turn.
    Partially teched technologies do not get an extra discount when stealing technologies.
    Base Cost is 1.5 * :science:_cost_of_the_technology_for_the_player :espionage:
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 85%
    • Extremely expensive way to get techs. If far behind the AI, consider a gift city full of spies. The gift city must be less than 10 tiles from an AI city on the same land mass or the AI won't take the gift city. This limitation does not apply if the AI civ has 3 cities or less.
    • A gift city full of spies can have lots of bonuses to make stealing techs cheap. 1) If the gift city has lots of player city culture, then the -50% city culture bonus is available for 1 turn until the AI starts generating their own city culture. 2) If the gift city has the player religion and the AI is not running that religion, then -15% religion bonus (or -40% if the player has the holy city!) is available. 3) If the spies have been waiting patiently for 5 turns in the gift city, then they will be able to steal technologies with the -50% wait bonus.
    11) Influence Civics - Force target AI to adopt a civic the player is currently running.
    Target civ must have the required technology to be forced to switch to the player Civic.
    This does not cause the target AI to experience 1 turn of civilization-wide Anarchy.
    Base Cost is 600:espionage: on Normal Speed,402:espionage: on Quick Speed, 900:espionage: on Epic Speed, and 1200:espionage: on Marathon Speed.
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 82%
    • Extremely strong. Can force an AI out of emancipation. Can force an AI into Caste if the player is running that, then the player can switch to Slavery and DOW an AI that can't whip. :evil: Can force an AI into Free Religion breaking their favorable religious situation or double AP votes.
    • Even worse, being forced to change civics by a spy also triggers the 5 turn "Cannot Change Civics Because of Revolution" timer. The AI is stuck with its new civic for 5 turns.
    • Even worse, the player can switch the AI's civics and reset the 5 turn "Cannot Change Civics Because of Revolution" timer.
      Spoiler :
    • When an AI grows weary of running whatever civic they were forced into by the player, they will switch back to what they like the most and experience civilization wide Anarchy if not Spiritual, a huge deal for large empires. This tends to occur 25 turns after the last natural civic change (or 10 turns for Spiritual AI) at the earliest if the AI gets a new civic they want to switch into. If the AI natural civic change timer is less than 10 turns and the player bribes the AI to change civics (this does cause civilization-wide Anarchy to non-spiritual civs :), unlike the spy influence civic mission which does not), then the AI natural civic change timer is reset to 10 turns and not 25.
    • Testing indicates a spy influence civic change does not reset the AI's natural civic change timer. In testing, Bismark naturally generated changed civic messages for the player on turn 25, turn 51, turn 77, turn 103, etc. A spy flip to Caste on turn 49 by the player delayed Bismark from naturally changing civics on turn 51, so he generated a changed civic message on turn 55 instead of turn 51. This can be understood by Bismark getting a "Can't change civics for 5 turns" message on his turn 49, Bismark changing his civic on his turn 54, and the human getting the message about the civic change on turn 55. In testing, a spiritual civ Isabella generated natural civic change messages for the player on turn 11, turn 22, turn 33, turn 44, etc.
    12) Influence Religion - Force target AI to adopt the state religion the player is currently running.
    Target civ must have the player's state religion present in at least one city in their empire.
    This does not cause the target AI to experience 1 turn of civilization-wide Anarchy.
    Player spy can perform Influence Religion mission in any AI city and not just the one containing the player's state religion.
    Base Cost is 600:espionage: on Normal Speed,402:espionage: on Quick Speed, 900:espionage: on Epic Speed, and 1200:espionage: on Marathon Speed.
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 82%
    • Very strong. Forcing an AI to adopt the player's religion can instantly change the diplomatic situation. Getting an AI to Friendly this way also allows for monopoly tech trading. :thumbsup:
    • Being forced to change civics by a spy also triggers the 5 turn "Cannot Change Religions Because of Revolution" timer. The AI is stuck with its new religion for 5 turns.
    • The natural religion change timer for an AI is completely separate from the natural civic change timer. A natural civic change by the AI did not delay the natural religious change timer. Natural religion changes tends to occur 15 turns after the last natural religious change (or 10 turns for Spiritual AI). In testing, Alexander switched religions on turn 15, turn 31, turn 47, etc. Isabella switched religions on turn 2, turn 13, turn 24, etc. etc.
    • The AI can change both civics and religion on the same turn naturally. If the natural religion change needs to be delayed 1 turn for AP reasons and no spies are available, try bribing the AI to switch civics with gold or techs. This causes civilization-wide Anarchy for at least 1 turn and will definitely prevent a religious switch for 1 turn.
    13) Perform Counterespionage - Increases costs of espionage missions against the player by 100% (doubles the cost), increases odds of AI Spies in player lands being caught, and lowers odds of AI Spy Missions in player lands being successful.
    Lasts 10 turns on Normal Speed, 6 turns on Quick Speed, 15 turns on Epic Speed, and 30 turns on Marathon Speed.
    Base Cost is 100:espionage: on Normal Speed, 67:espionage: on Quick Speed, 150:espionage: on Epic Speed, and 300:espionage: on Marathon.
    Base Mission Success Odds for 1 Spy with -10% wait bonus is 100%
    Under all possible penalties Mission Success Odds are also 100%
    Perform Counterespionage can never fail.
    • Best used at the end of the game to keep any AI that builds up a huge :espionage: point supply against the player from stealing techs or sabotaging a spaceship part. Paired with closing borders, it can also stop a pesky neighbor from poisoning the water supply in a city or blowing up oil wells so easily.
    Wow, spies ought to be banned in multiplayer. :backstab:
     
    Last edited: Dec 16, 2019
    pi-r8, Major Tom, Fippy and 1 other person like this.
  3. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Mission Success Odds after modifiers
    Mission failure odds are extremely close to how Spy death odds are calculated.
    Instead of a Closed Border or Open Borders modifier, a mission difficulty modifier is applied to get mission failure odds.

    Mission Success Odds are equal to (100 - Mission Failure Odds)
    Chance of Success: 93% is the same as Chance of Failure: 7%

    Here is the table completely describing Mission Failure Odds:


    Add up the 4 factors and then multiply by the mission's difficulty modifier to get the odds of the mission attempt failing.
    Next, round the answer down to the nearest whole number.
    (2.5% failure odds becomes 2% failure odds)
    Finally, perform the calculation (100 - Mission Failure Odds) to get Mission Success Odds.

    For example, I have 1 Spy with -30% wait bonus attempting to sabotage a corn farm.
    What are the mission success odds if I have 100% :espionage: cost with the AI? (We both produced the same amount of :espionage: points over the course of the game)
    From the table, my 4 factors are 12%, 0%, 0%, and 0%
    12+0+0+0 = 12%
    Multiply by the factor for Destroy Improvement (1.0) since that is the spy mission to destroy a tile outside the city.
    12 * 1.0 = 12
    The Mission Failure Odds are 12%
    The Mission Success Odds are (100 - 12) = 88%

    Another example.
    There are 5 player spies in a city trying to change an AI's religion to the player's religion.
    The AI has both a Security Bureau in the city and has performed the Counterespionage Mission against the player (This never happens).
    The player has 175% :espionage: costs with the AI because the AI has produced 10 times as much espionage as the player over the course of the game.
    From the table, my 4 mission failure factors are +22%, +15%, +20%, and +15%
    22+15+20+15 = 72
    Multiply by the difficulty multiplier for Influence Religion (1.5)
    72 * 1.5 = 108
    The Mission Failure Odds are 108%
    The Mission Success Odds are (100 - 108) = -8% or 0% Mission Success Odds. :crazyeye:

    If the mission was counterespionage instead, that would be a difficulty modifier of 0
    72 * 0 = 0
    Mission Success Odds are (100 - 0) = 100% Mission Success Odds. :goodjob:



    Mission Cost after modifiers
    There are 8 mission cost modifiers that adjust the base cost of the spy mission.
    • Note that for each extra team member the player has, the final :espionage: mission cost is multiplied by the number of team members. So 3 team members means triple the :espionage: mission costs. :(
    • Getting a Permanent Alliance with an AI is the same as adding them to the player's team mid-game. Be very careful doing this if playing with "Permanent Alliances" enabled and running an espionage based economy because it will double espionage costs.
    Spoiler :
    Player with 2AI team members has triple espionage costs



    1) Trade Routes (-20% bonus)
    The player will get a -20% Trade Routes bonus if the player has a city in their empire with a trade route to the AI target city. (Thanks Elitetroops!)
    In the above screenshot, the player capital is getting a +2:gold: trade route with Elizabeth's city Tiwanaku (Open Borders), so the player gets the -20% espionage bonus in that city.

    An advanced knowledge of trade routes is needed to achieve this bonus reliably.
    :hmm:

    AI cities have a +150% sustained peace bonus with the player cities once Open Borders is signed.
    This bonus goes to 0% once the AI and player go to war, and once the war is over it recharges +3% per turn for 50 turns until returning to +150%.

    Player has no island cities:

    To get the player cities to form a trade route, closing borders with all AI except the target AI should make the player cities form trade routes with the target AI's cities.
    This requires the target AI and player to be at peace for 25 turns.

    If the AI and player have been at peace for 25 turns after a war, the sustained peace bonus will recharge to 75% and combined with 25% connection to capital the total trade route bonus will be +100%.
    So the domestic player cities will have +1:gold: trade routes and the AI city with +100% bonus will have +2:gold: trade routes.

    If the human player has not been at peace with the target AI for 25 turns after a war, the player's own domestic cities will take priority over AI's cities since every trade route is +1:gold: :sad:

    Player has island cities:
    Due to overseas bonus of +100%, all domestic trade routes will be +2:gold: and no trade routes with AI will form unless the AI cities are larger than 10 population. (each population over 10 increases the base trade route amount before bonuses by +0.1:gold:)

    To get trade routes to the AI cities, close borders with all AI except the target AI.
    Then build Harbors in all island cities.
    The island cities will try to form trade routes to the player's mainland cities with +125% bonus and get +2:gold: trade routes.
    If peace with the AI has been around 50 turns or there was never a war, the +150% sustained peace can be combined with +25% connection to palace and +50% harbor to get +225% and +3:gold: trade routes.
    So the Harbors should cause the player island cities to choose a +3:gold: trade route with the AI cities instead of a +2:gold: trade route with a domestic city, thus activating the -20% trade route espionage bonus in those AI cities.

    Things that will ruin -20% Trade Route bonus:
    If the player OR the target AI adopts mercantilism, then foreign trade routes disappear along with the -20% bonus.
    If the player goes into civilization wide anarchy by switching civics or religions, the trade routes are suspended and the -20% bonus disappears.
    If the Target AI city goes into a 3 turn revolt due to culture pressure, it goes to the bottom of the trade route priority list and the human empire will form trade routes with every target AI city before finally forming trade routes with the revolting city.
    So the revolting city becomes last among equals.

    2) State Religion (-15% Bonus, -25% Bonus, or -40% Bonus)
    If the player is running a state religion and the target AI city has the player's state religion, but the target AI is NOT running that state religion, then the player Spy will have a -15% bonus in the target AI city. :)
    If the player also owns the Holy City of the player's state religion, but the target AI is NOT running that state religion, then the bonus is -40%. :D


    If the player has a state religion and the target AI city also has the state religion, but the target AI IS running that state religion, then the player Spy will have no bonus. :cry:
    If the player has a state religion plus the Holy City, and the target AI city has the state religion, but the target AI IS running that state religion, then the player Spy will have -25% bonus. :thumbsup:

    So owning a Holy City can be a huge plus for espionage!

    If the player and AI are both running the same state religion, and the AI has the Holy City, there is no penalty to spy mission costs.

    3) City Culture (0% Bonus up to -50% Bonus)

    This espionage bonus is governed by the formula: floor[(YourCultureInTheCity * 50) / max(1,OwnersCulture + YourCulture)]

    If the player has 5:culture: in the target city and the AI has 100:culture: in the target city, then the bonus becomes floor(5 * 50 / max(1, 100 + 5)) = floor(250 / 105) = floor(2.38095) = 2
    So a -2% City Culture bonus.

    If the player has 0:culture: in the target city and the AI has 0:culture: in the target city, then the bonus becomes floor(0 * 50 / max(1, 0 + 0)) = floor(0 / 1) = 0
    So no City Culture bonus.

    If the player has 50:culture: in the target city and the AI has 50:culture: in the target city, then the bonus becomes floor(50 * 50 / max(1, 50 + 50)) = floor(2500 / 100) = floor(25) = 25
    So a -25% City Culture bonus.

    If the player has 4000:culture: in the target city and the AI has 10:culture: in the target city, then the bonus becomes floor(4000 * 50 / max(1, 4000 + 50)) = floor(200000 / 4050) = floor(49.3827) = 49
    So a -49% City Culture bonus.

    There are 2 ways for the player to get city culture :culture: in the target AI city.

    The 1st is to generate city culture while the city is under player control
    , then gift the city to the AI.
    Gifting away a city causes the plot culture on the city tile to go to 0, but the City Culture remains.
    A good way to ensure a very high bonus is to perform a Great Work with a Great Artist for +4000:culture: in the city, then gift it to the target AI.

    The 2nd way to generate city culture in the target city is with the Spread Culture mission.
    Using spies, if the target city is inside the border influence of the player, then 5% of the total culture of the target city can be generated as the player city culture and added to the target city with spy missions.

    4) City Espionage Defense (+50% Penalty)

    If the target AI has a Security Bureau building (Democracy), then player spy missions have a +50% penalty to espionage costs.

    The only way around this penalty is the Sabotage Building spy mission to blow up the Security Bureau.
    This is expensive, but if further espionage missions are planned it might be worth the cost.

    5) Distance (+1% up to +100% Penalty)
    This penalty is governed by the formula: (1+Target City distance to Player Capital / Max Distance)
    Max distance is the maximum number of tiles that one city on the map can be from another. (diagonal tiles count as 1.5 tiles)

    If the target city is 17 tiles from the player capital, and the max distance on the map is 66 tiles, then the distance penalty is floor(1 + 17/66) = floor(1.25758) = 1.25
    So the distance penalty is +25%
    If the target city is 3 tiles from the player capital, and the max distance on the map is 78 tiles, then the distance penalty is floor(1 + 3/78) = floor(1.038462) = 1.03
    So the distance penalty is +3%

    6) Stationary Spy (-10% Bonus, -20% Bonus, -30% Bonus, -40% Bonus, -50% Bonus)
    If a player spy ends a turn with the full 2:move: movement points, the following turn they will have a -10% bonus for any espionage missions performed on that tile.
    This bonus builds for 5 turns up to a maximum -50% bonus.

    A good way to build this bonus fast is for a ship to unload the player spy in the target city and the spy will have a -10% wait bonus the following turn.

    This bonus does not build while the player spy is inside a boat. :sad:

    This bonus does build up while the player spy is inside player borders.
    If a player keeps their spy inside a city without moving for 5 turns and gives the city to the AI, the spy will instantly have -50% stationary spy bonus for the AI city.

    7) Espionage Point Spending (-50% Bonus up to +100% Penalty)

    This penalty or bonus is governed by the formula: (2 * TargetsTotalEPpoints + PlayerTotalEPpoints) / (TargetsTotalEPpoints + 2 * PlayerTotalEPpoints)
    PlayerTotalEPpoints is the total number of :espionage: that the player has produced the entire game.
    TargetsTotalEPpoints is the total number of :espionage: that the target AI has produced the entire game.

    This Ratio can be viewed directly at any time in the Espionage Screen


    The (_% Cost) IS the Espionage Point Spending amount.

    86% Cost means the player has generated a lot more :espionage: than the target AI and results in a -14% bonus.
    52% Cost
    means a -48% bonus.
    137% Cost means a +37% penalty.
    100% Cost means no bonus or penalty.

    8) Counterespionage (+100% Penalty)
    If the target AI performs a Counterespionage Mission against the player, then for 10 turns on normal speed the player will have a +100% cost penalty when performing spy missions against the target AI.

    There is no notice on the espionage screen to indicate this has occurred.
    It does show up as an in game announcement and in the event log though.
    Spoiler :



    To experiment with this, the only way I could figure was a Multiplayer -> Hot Seat game where a player can play a Civ 4 game against themselves.
    The AI never uses the counterespionage mission that I've ever seen. :hmm:


    Correctly Calculating Espionage Mission Costs
    Being able to know how much your future :espionage: missions will cost is very helpful when allocating resources.

    Civ 4 makes this extremely difficult.
    Thankfully, Pollina discovered the formula long ago!



    The cost modifiers are applied to the number 100 one at a time. (why 100? who knows ...:hmm: :confused::think:)
    The result is rounded down each time to achieve a final modifier number.
    The final modifier number is multiplied by the Base Cost of the espionage mission and then divided by 100 to get the Total Cost of the espionage mission.
    Total Cost of the espionage mission is what :espionage: must be spent to perform the espionage mission.

    Note that a -23% bonus translates to multiplying by 77%, or 0.77
    Note that a +34% bonus translates to multiplying by 134%, or 1.34


    Diplomatic Consequences of Spy Missions
    The dreaded "Your spy was caught causing trouble" -1 diplomatic penalty.
    Spoiler :

    How long does it take to fade away?

    Forever! :cry:
    Some people think it decays, but they are wrong.
    It lasts the entire game.

    So, what triggers it?
    Basically, whenever a spy is stumbled upon and killed, there is a chance that the AI that caught it will give a -1 diplo penalty to the player.
    This occurs between turns when a Spy is caught and killed, if the espionage mission failed and the spy was killed, or when the spy completes a mission and dies attempting to return to the capital.

    What are the odds that a killed spy will trigger the "Your spy was caught causing trouble -1 diplo penalty"?
    I couldn't find a piece of code describing this, so I tested it extensively in BtS 3.19 unmodded using 1000's of spies.

    Most AI tend to have on average a 23% chance to give -1 diplo when they capture and kill a player spy. (Isabella, Stalin, Gandhi, Louis, Kublai, Surya, Tokugawa)
    The AI Shaka has a much higher average of 28% chance to give -1 diplo when they capture and kill a player spy. :dunno:

    I have not tested the other 43 out of 52 AI because it is exhausting to do so. :sad:

    Please note that Catherine is very special.
    When she kills a player spy, there is a 23% chance that she will give -2 diplo! :run:

    There is no limit to how high the "Your spy was caught causing trouble" diplo penalty can stack.
     
    Last edited: Aug 18, 2019
    Pedro78 likes this.
  4. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    7) Spy Economy
    ...

    8) Winning a Classic Spy Victory
    ...

    9) Winning a Cutting Edge Spy Victory using a 1 tile island.
    ...

    **Under Construction as of August 15th, 2019**
     
    Last edited: Aug 18, 2019
  5. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Zoom In Guide

    • Once the Player has vision on an AI city, click the "Bare Map" button (Control + B) and zoom in on the city.
    • Then Zoom In using the mouse wheel to get as close to the city as possible. (Page Up/ Page Down)
    • Press F12 to open up the Civlopedia and match up the buildings you are seeing in the city with their building animation in the Civlopedia.
    Once a city is uncovered from the black fog, will future buildings built there appear even if the player has no units to see the city?
    YES!!! :mwaha:
    A dedicated enough player can keep track of all buildings and population that an AI has as long as the cities are uncovered.

    Here is a quick example:
    Spoiler :
    Use the Civlopedia (F12) to identify buildings in a city.
    Spoiler :









    With the Civlopedia's help, I counted 16 buildings in Ulundi.
    Spoiler :

    Some buildings are really small though, so sometimes it is best to use Satellite View (Alt+F) to see short fat buildings.
    Using satellite view, I found a 17th building, a Stable.
    Spoiler :

    Keep in mind there are graphic limitations to how many buildings a city will show based on City Size. :(
    A Size 1 city can graphically show up to 8 buildings.
    A Size 8 city can graphically show up to 17 buildings.

    Any additional buildings are still there in the city, they just can't be seen if the city is too small population with too many buildings.


    Here is a list of city building pictures sorted by era to get an idea which Civlopedia entry to look up when you see a building in a city.

    BUILDINGS LIST (Ancient Era)
    Spoiler :

    Bare City
    Spoiler :

    Palace

    Spoiler :

    Monument
    Spoiler :

    Granary
    Spoiler :

    Barracks
    Spoiler :

    Lighthouse (Must unfog the coastal tile next to the city to see)
    Spoiler :

    Buddhist/Hindu/Jewish Temple
    Spoiler :






    Buddhist/Hindu/Jewish Monsastery
    Spoiler :





    Walls
    Spoiler :


    Library
    Spoiler :

    Stonehenge
    Spoiler :

    The Great Wall
    Spoiler :

    Pyramids
    Spoiler :

    The Temple of Artemis
    Spoiler :

    The Great Lighthouse
    Spoiler :

    Moai Statues
    Spoiler :

    The Oracle
    Spoiler :

    Academy
    Spoiler :

    Scotland Yard
    Spoiler :


    **Edit**
    Gah, this is a ton of work to complete for all the Eras.
    Olafeson has compiled a complete list of zoomed in building screenshots in a zip file. :D
     
    Last edited: Aug 18, 2019
    Pedro78, Fippy and krikav like this.
  6. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Reserved
     
  7. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Reserved
     
  8. Fippy

    Fippy Micro Junkie Queen

    Joined:
    Mar 17, 2013
    Messages:
    10,746
    Gender:
    Female
    Impressive how they built this without wheels ;)
    Spoiler :

     
  9. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Aliens built it!
     
  10. coanda

    coanda Emperor

    Joined:
    May 12, 2009
    Messages:
    1,603
    There's three confounding factors.

    For one, AIs will never raise the espionage slider above 0% if their gold slider is above 50%. I suspect that's what's going on with Catherine and Stalin in your example.

    For another, the amount of EPs an AI wants to generate is proportional to it's deficit in EPs (with a very minor additional factor based on opinion; AIs want to be slightly higher in EPs against enemies, and slightly lower against friends, but the difference is trivial). If you double your espionage gap against an AI, that will roughly double how high many EPs it wants to generate next turn. If your current gap makes Gandhi want to generate 500 EPs next turn, doubling that gap will make Gandhi want to generate 1000 EPs next turn. It's also proportional to iEspionageWeight; if Gandhi wants to generate 500 EPs, Stalin in the exact same situation will want to generate 1500 EPs. That will affect how they raise their slider. However, there is a hard cap of 20%. No AI, under any circumstances, will raise its slider above 20%. Stalin will get to that 20% point earlier than Gandhi, but as the EPs deficit increases they'll all eventually get there. That's what is going on with the other four AIs in your test case - giving yourself really, really high EPs generation hard-capped all the AIs.

    For three, iEspionageWeight does impact some other parts of the game. It makes them more likely to adopt espionage-related civics, construct espionage-related buildings, and conduct aggressive espionage missions (like poisoning city water). However, these tend to be more late-game factors that, in general, wouldn't have made a big difference by turn 126.
     
    krikav, Kaitzilla and sampsa like this.
  11. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    Thanks for the info Coanda :love:

    Yes, I've never seen the AI go above 20% espionage slider.
    I am relieved that iEspionageWeight does affect things like civics, buildings, and mission choice.
     
  12. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    There, all the mechanics of espionage are done!

    Just need the strategy stuff now.
    Let me know if there are any errors please.

    **Edit**
    February 16th, the strategies are coming, I promise :D
     
    Last edited: Feb 17, 2019
    krikav likes this.
  13. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    The spread culture mission info has errors in it. (decrease was corrected to increase. Is the thresholds total AI culture from all AI or just the target AI?)

    I will try to get them ironed out this weekend.

    Totally forgot to include the effects on plot culture too.
     
  14. Pangaea

    Pangaea Rock N Roller

    Joined:
    Sep 17, 2010
    Messages:
    5,107
    Have to admit that I haven't read the whole thing yet, so it is possible this is covered, but I figured this would be a fine and dandy place for such a question. During a recent game, I noticed that the cost of some espionage missions have a teal colour. It happens when you are just a little too short on :espionage: to carry out the mission. Is this all it means, or is there something else to it?
    Spoiler :
    In this case you see the teal colour for support city revolt mission.

     
  15. Pangaea

    Pangaea Rock N Roller

    Joined:
    Sep 17, 2010
    Messages:
    5,107
    You are aware of this of course, but once a city centre square is uncovered so you know the name of the city, you can see any national wonders throughout the world in the Wonders lists via the relevant tab.

    I have another question though, which I was reminded about when seeing those screenshots in your example. You haven't put any circle around the tall tower-like buildings, so I guess they don't actually mean anything. Just something that happens when a city grows, or maybe tied to game era? I know I've seen these things in pretty small cities in the past and wondered what on earth they were. Couldn't find anything in the civilopedia. At one point I wondered if it was tied to Castle, but they're not. Or maybe religion. Do you know what makes these buildings pop up?
     
  16. Pangaea

    Pangaea Rock N Roller

    Joined:
    Sep 17, 2010
    Messages:
    5,107
    Sorry, sorry, but I have a weak mind.... This also, amazingly, works pre-Math!!! :crazyeye::run::run::run:
     
  17. Kaitzilla

    Kaitzilla Lord Croissant

    Joined:
    Jun 21, 2008
    Messages:
    8,517
    Gender:
    Male
    Location:
    America!
    I don't know why it is teal colored. :hmm:
    I suspect is it like you said.
    An indication that there is almost enough :espionage: to perform the mission, but not enough.

    The tall spiky buildings?
    Spoiler :

    Hehe, they are a mystery to me too.
     
  18. Pangaea

    Pangaea Rock N Roller

    Joined:
    Sep 17, 2010
    Messages:
    5,107
    Yep, that's the one. From time to time I've tried to find a pattern with them, but didn't really get anywhere, and seeing it in this thread reminded me about them again. The strange thing is that I've seen them in really small cities too, like size 3-4-5, something like that.
     
  19. ArchGhost

    ArchGhost Prince

    Joined:
    Aug 2, 2016
    Messages:
    393
    Just part of BUG, as far as I know

    Here you are:
    Spoiler :
     
    Pangaea likes this.
  20. Pangaea

    Pangaea Rock N Roller

    Joined:
    Sep 17, 2010
    Messages:
    5,107
    Excellent, I didn't know that :)

    And since I'm partially green-yellow colour-blind, probably not a bad idea to change things around a little :p
     

Share This Page