• 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.

Toa Kraka

Dislikes you
67 Badges
Dec 25, 2011
1.810
1.226
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • Victoria 2
  • Teleglitch: Die More Edition
The AI has (or had? I've actually been using this modification for quite some time, so I don't know whether it's been fixed) a tendency to revoke the de jure capital of its primary title for no real reason. This is annoying because the AI will accrue tyranny opinion modifiers for no good reason--and was especially irksome when viceroys would repeatedly cause internal civil wars immediately after gaining their titles.

However, this behavior can be fixed with the following procedure:
1. The easy part: Using Notepad++'s replace function, set the capital of every title (except mercenary/holy_order/controls_religion and e_byzantium/e_latin_empire) to a sea tile, and simultaneously add creation_requires_capital = no to those titles. This can be done by replacing the phrase "\tcapital =" with the phrase "\tcreation_requires_capital = no\r\n\tcapital = 1700 #".
2. The time-consuming part: Manually recreate the only real use of a capital--allowing the creation of a titular title--in the allow section of every one of those titles that could become titular (i.e., all empires, all kingdoms, and all titular duchies). (Obviously, don't bother with titles that already have allow = no--e.g. the titles in new tribes.txt.) Here's an example for Britain, whose original capital was province 32.
Code:
or = {
    from = { is_titular = no } # A de-jure title doesn't need a fixed capital...
    owns = 32 # ...but a titular title does.
    any_vassal = { owns = 32 }
    any_vassal = { any_vassal = { owns = 32 } }
    any_vassal = { any_vassal = { any_vassal = { owns = 32 } } }
}
(I tried just commenting out the capitals rather than setting them to a sea tile, but that outright prevented the titles from being created. Note that it's best to choose a sea tile that's near the center of the map--since, when you select a title in-game, the map automatically zooms to its capital, and scrolling back from Iceland gets annoying very quickly!)

I was thinking that this might be a simple-to-add optional module, for people who don't want the AI to keep its capital in the same province across multiple centuries and in every game. I don't know whether or not it'd actually be useful gameplay-wise, though, since I don't know whether the AI's capital-revoking behavior has been fixed.

Attached is the version of swmh_landed_titles.txt (for HIP 2016-05-24; version info below) that I edited in this fashion. (I also edited the other files that contained titles eligible for this modification.)
[HIP Release 2016-05-24 (Zeus6)]
EMF: Extended Mechanics & Flavor (v5.05 - 2016-05-24)
ARKO Interface (2016-03-03)
SWMH (v2.93 - 2016-04-29)
SED: English Localisation for SWMH (v2.2.2-BETA - 2016-05-22)
ARKO Armoiries (2016-03-03)
LTM (C - 2016-04-10)
 

Attachments

  • swmh_landed_titles.txt
    859,4 KB · Views: 1
  • 1
Reactions:

IoannesBarbarus

El Ingenioso Hidalgo
46 Badges
Dec 2, 2014
982
470
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Horse Lords
  • Crusader Kings III
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Cossacks
AFAIK the other thing capitals are used for is determining whether a title is in a given region or not. So this will probably break code that relies on titles having sensible regions.

That said, you might want this instead in the allow block, it’s simpler & faster.
Code:
OR = {
    FROM = { is_titular = no }
    32 = {
        owner = {
            OR = {
                is_liege_or_above = ROOT
                character = ROOT
            }
        }
    }
}
 
  • 2
Reactions: