• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Tiresais

Captain
130 Badges
Jun 12, 2010
485
27
  • Arsenal of Democracy
  • Stellaris: Humanoids Species Pack
  • Surviving Mars: Digital Deluxe Edition
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Victoria 3 Sign Up
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Deus Vult
  • Dungeonland
  • Magicka 2
  • East India Company Collection
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Lead and Gold
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
Just occurred to my Economist-ridden mind that there is a good way to discourage the AI from having untidy boarders, and it's quite a simple method (to mathematicians) - imposing a constraint on non-convex borders.

Take the mid point of each boarder territory and draw a line between it and all other border territories (I believe most computer languages are ok with Euclidean vectors and Cartesian spaces). If that line passes through an enemy/nonfriendly nation, penalise.

The check only needs to be done once a year and would flag countries for conquering.

Of course, you could have already implemented smarter borders, in which case carry on brave frontiersmen!
 
Convexity need not be a circle - they can be quite square looking (especially given the nature of territories), and if you wanted other shapes you could limit the number of border territories it links to :). I wouldn't say it was normal, but the penalty doesn't have top be overwhelming (for example, if Prussia is separated from a unified Germany, the urge to conquer a border territory would overwhelm the urge to make a neat shape through Poland). Suffice to say that owning territories far away from the mainland was typically a short-term occurrence (though notable exceptions exist).
 
Do it for each region. In big regions the need for nice borders isn't to big if your realm is split up, but the smaller the region is the bigger the penalty will get. This way England would try to merge her colonies in the America's if there is no other big power in it but Mr. Habsburg doesn't feel to pushed to unite all of Europe for the sake of nice borders. They would however feel a big need to usurp any country within their land in the Austria region or any or for example the low lands during they time they inherited it.
 
I'd rather an attempt was made to model the historical factors which resulted in borders being like they were historically. The AI needs to understand the importance of natural barriers such as rivers and mountain ranges, as well as the vulnerability and added logistical challenges of isolated provinces and a strung-out empire.