PDA

View Full Version : Campaign AI



Spino
10-08-2004, 19:51
Thought I'd throw together a quick but extensive guide that will help modders and TW fans get the most out of their campaign game. If you're tired of watching Carthage get swallowed up in the early game or are wondering why some factions behave they way they do this guide is for you.

Start by checking out the faction entries in the descr_strat.txt file.

Over at twc .Spartan (with a little help from yours truly) deciphered and defined the two kinds of variables that govern how the strategic AI goes about its business building its empire. Apparently changing these variables can have a profound effect on how the campaign game plays out. Carthage has been witnessed becoming a real threat simply by making it more aggressive and focused on conquest instead of its current passive and profiteering obssessed state of mind.

Here are the default AI settings and their definitions for each faction as found in the txt file. As listed by .Spartan and taken from the following thread...

http://www.twcenter.net/forums/index.php?showtopic=10859


Faction...................................Style
................................var1........................var2
______________________________________________
Julii ---------------- comfortable ------------ Caesar
Brutii -------------- balanced ---------------- Stalin
Scipii -------------- bureaucrat -------------- Napoleon
Senate ------------ comfortable ------------- Napoleon
Macedon ---------- fortified ------------------ Napoleon
Egypt -------------- religious ---------------- Caesar
Seleucid ----------- balanced ---------------- Stalin
Carthage ---------- balanced ---------------- Smith
Parthia ------------- balanced ---------------- Genghis
Pontus ------------- trader -------------------- Napoleon
Gauls -------------- religious ----------------- Smith
Germans ---------- balanced ---------------- Mao
Britons ------------ trader -------------------- Henry
Armenia ---------- fortified ------------------ Henry
Greek Cities ------ balanced ---------------- Smith
Numidia ------------ balanced --------------- Henry
Scythia ------------- trader ------------------ Smith
Spain --------------- fortified ---------------- Mao
Thrace -------------- sailor ------------------ Napoleon
Slaves -------------- balanced -------------- Smith

With my crack at defining them...


The first set of variables seem somewhat obvious. They seem to correlate to the types of buildings that get priority when developing any given settlment. I don't dare apply any values to them though, where would I start?

Var1
- Comfortable - Entertainment buildings with an overall goal of improving Happiness
- Balanced - Self explanatory. Even percentage split between all the variables?
- Bureacrat - Law/Education buildings with an overall goal of improving Public Order
- Fortified - Fortifications (and perhaps Infantry producing buildings?) with an overall goal of maintaining sizeable garrisons & strong defensive armies.
- Religious - Religious structures with an overall goal of improving Happiness & Public Order
- Trade - Trade structures with an overall goal of improving Trade revenue (well, duh!)
- Sailor - Ports with an overall goal of improving sea based trade and naval power? Perhaps it doesn't mean what we think it means. It's such an unusual strategy for Thrace, of all nations! They had no navy to speak of! Maybe CA thougt this was the best long term strategy for its survival?

Var2
There are three subsets in this category

1) Conquest - With names like Caesar, Napoleon & Genghis is is obvious that factions associated with these variables are more likely to be on the offensive.

- Napoleon - A kinder, gentler conqueror who rarely inflicted direct harm on local populations. Least likely to enslave or exterminate conquered settlements.
- Caesar - Emphasis on enslavement. Caesar's conquests brought vast numbers of slaves to work Rome's fields, mines, quarries, baths, homes, etc.
- Genghis - Emphasis on extermination. Entire civilizations were wiped out by Genghis Khan and his generals. Also it is no surprise that this is applied to the Parthians, another horse based culture that roamed the steppes before invading the civilized world. Curious that it is not applied to the Scythians, a very warlike horse based culture akin to the Mongols. Maybe CA made them wanted that faction to confine itself to their steppe territories.

2) Farming - Mao and Stalin were communists or if you like, 'Collective Farming Dictators of Note'

- Mao - Emphasis on population growth via farming development. Passive aggressive, isolationist if you will.
- Stalin - Emphasis on population growth via farming development. Passive aggressive expansionist (lol).

3) Trade - Adam Smith and Henry George, 'The Economists'

- Smith - Emphasis on trade & profitability above all else. Health, Happiness, Public Order, etc. are secondary concerns to short term economic gains. Smith as in 'Adam Smith', the author of "On the Wealth of Nations", supporter of the free market economy and economist of historical note. Makes sense considering that Carthage and the Greek City States (Athens, Syracuse, Rhodes) were notorious for their sizeable trade empires.

- Henry - Emphasis on trade & profitability with considerable attention paid to Health, Happiness, Public Order, etc. Originally I thought this referred to Patrick Henry?!? Henry was a prominent figure in the American Revolution and a huge opponent of the Stamp Act and outspoken advocate of decentralized government. However given that Adam Smith was a proponent of the free market economy the Henry variable must be somewhat opposed to that position. So I think it refers to Henry George, author of "Progress and Poverty" who believed in a unified tax and supported curbing the gap between rich and poor so as to prevent long term decline of society. Profitability but with a greater emphasis on Health, Happiness, Public Order, etc.

Here's an excellent breakdown by Spartan based on considerable testing along with a list of recommeded settings for each facton...

http://www.twcenter.net/forums/index.php?showtopic=11196


After many, many hours of testing the AI in order to glean knowledge from and gain insight into the cryptic configuration options in an effort to establish some sort of coherent operational matrix that is easy for all to understand. I came to the following conclusions regarding the variables and their functional effects.

-------------------------------------------------------------

Economic Variables (option 1)
-------------------------------------------------------------
Finance Group
Trader = Economic (external revenue - surplus generation)
Balanced = Economic (situation based spending) [dynamic]
Comfortable = Economic (internal revenue - savings generation)

Civil Group
Bureaucrat = Law, education and subterfuge
Religion = Happiness

Military Group
Fortified = Militaristic (offense & defense land)
Sailor = Militaristic (offense & defense navel)

-------------------------------------------------------------
-------------------------------------------------------------

Political Variables (option 2)
-------------------------------------------------------------
Foreign Policy Group (aggressive)
Napoleon (marginal)
Caesar (moderate)
Genghis (Extreme)


Domestic Policy Group (aggressive/passive)
Stalin (moderate)
Mao (extreme)


Economic Policy Group (passive)
Henry (moderate)
Smith (extreme)

-------------------------------------------------------------

Based on the above information, below are my recommendations for AI variable settings. These are based on general stretgic disposition, tactical capabilities and economic resourses.


Set version 2

Julii -------------- fortified ------------ caesar
Brutii ------------- bureaucrat ----------- napoleon
Scipii ------------- religious ------------ mao
Senate ------------- comfortable ---------- henry
Macedon ------------ balanced ------------- genghis
Egypt -------------- balanced ------------- stalin
Seleucid ----------- comfortable ---------- genghis
Carthage ----------- balanced ------------- napoleon
Parthia ------------ bureaucrat ----------- henry
Pontus ------------- trader --------------- napoleon
Gauls -------------- fortified ------------ napoleon
Germans ------------ religious ------------ stalin
Britons ------------ trader --------------- smith
Armenia ------------ bureaucrat ----------- caesar
Greek Cities ------- fortified ------------ mao
Dacia --------------- trader -------------- genghis
Numidia ------------ religious ------------ smith
Scythia ------------ comfortable ---------- napoleon
Spain -------------- comfortable ---------- stalin
Thrace ------------- bureaucrat ----------- mao
Slaves ------------- Fortified ------------ caesar

Please note: I have not recommended any "sailor" settings because I have been unable to conclude with any degree of certanty that it does in fact work correctly under the assumption that it is a naval power focus. The "balanced" setting seems to put more resources into navel development based on my experiences.

I would like to thank all who have helped in this effort, espically Spino, for his most execellent definitions contribution. I hope this information will make your gaming experience more rewarding.

-Spartan

ShadesPanther
10-08-2004, 20:34
very nice work. will have to tweak that ~:)

Olmsted
04-12-2006, 14:08
I didn't see this mentioned anywhere, but it also drastically changes what units the faction will attempt to use in battle. For example, Napoleon uses more cavalry than Caesar. You might also check this out in more depth.

Here is one link where this is discussed more fully:

https://forums.totalwar.org/vb/archive/index.php/t-45212.html