How do I remove countries and have their original lands be colonisable lands?

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

MachopPower69

Lt. General
48 Badges
Feb 18, 2018
1.445
2.194
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Mare Nostrum
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Legacy of Rome
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II: Rajas of India
  • Victoria 2
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
I have been interested in this mod where all countries are one province nations and expand by colonising adjacent provinces. I have been trying to replicate it as the original mod creator gave up on the game, but I have failed to do so as the game crashes every time I try to attempt it.

How can I do something similar to this? It was my favourite mod but now that it is not being progressed, I want to try and make a mod similar to it. Especially since population mechanics have overhauled in the Menander update (nobles). Can someone help me with it? I tried deleting countries and their files leaving only a few nations and I'm sure everyone would like a revival for a popular mod.
 

Agamidae

LGS
42 Badges
Jun 29, 2017
510
1.851
steamcommunity.com
  • Age of Wonders III
  • Stellaris: Nemesis
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
So... doing this manually is a TON of work. But! I did some mass repalcement with regular expressions, so you can just download 00_default.txt and put it in setup/main/
This is how it looks, which I find amusing:

1597779207519.png


Territories are assigned with own_control_core. I removed what was there and copied the capital ID.
If you want, you can remove some countries. Just delete their entry from that file.

If you want to remove buildings, search for #buildings, there's quite a few.
You could also remove cities, by doing a search and replace in the 'setup/provinces' folder Replace "city" with "settlement". But then there'll be a lot of overpopulated places, and editing pop numbers is even more work. (could be done with a start up event, though)

also, join the modding discord, there's always plenty of people to ask for help https://discord.gg/veS95j
 

Attachments

  • 00_default.txt
    224,9 KB · Views: 0
  • 1
Reactions:

YTnuBF

Captain
65 Badges
Apr 5, 2014
354
181
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Cities in Motion 2
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars II
  • Europa Universalis IV: Res Publica
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Knights of Honor
  • Crusader Kings II: Sunset Invasion
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV: Art of War
  • Hearts of Iron III
  • For the Motherland
  • For The Glory
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings III
  • Victoria 2
  • Europa Universalis IV
  • Crusader Kings II: Conclave
  • Europa Universalis III: Collection
  • Cities: Skylines
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
I was attempting answering this as well and approached it trying to entirely remove certain countries.

If you remove a country you'll need to remove all references to it in at least these places :

\\ImperatorRome\game\setup\countries\countries.txt
\\ImperatorRome\game\setup\main\00_default.txt
\\ImperatorRome\game\setup\characters\

But you'll run into problems fast if the country has any defined characters, like CYR (Cyrenaica).
You can delete its character setup file \\ImperatorRome\game\setup\characters\00_CYR.txt but since the game's character index cannot have gaps in it
this will cause errors.

Another problem can arise in \\ImperatorRome\game\setup\main\00_default.txt regarding Trade Routes, Families and Treasures which may reference a now deleted Country that owns a Family or a province with that particular Trade Route or Treasure.

I'm not sure if you'll need to delete also all lines regarding those and if leaving gaps will still prevent the game from starting.

EDIT:
For example if you wanted to remove Cyrenaica, you'll need to first identify its Tag.

The countries.txt file makes this quite easy. But sometimes the country is called something else in the code than shown to the player in game.
To find what a country's tag might be you can search in the localization for its name at \\ImperatorRome\game\localization\english\countries_l_english.yml or the other folders relevant to the language your game is in.
 
Last edited:

MachopPower69

Lt. General
48 Badges
Feb 18, 2018
1.445
2.194
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Mare Nostrum
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Legacy of Rome
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II: Rajas of India
  • Victoria 2
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
So... doing this manually is a TON of work. But! I did some mass repalcement with regular expressions, so you can just download 00_default.txt and put it in setup/main/
This is how it looks, which I find amusing:

View attachment 610761

Territories are assigned with own_control_core. I removed what was there and copied the capital ID.
If you want, you can remove some countries. Just delete their entry from that file.

If you want to remove buildings, search for #buildings, there's quite a few.
You could also remove cities, by doing a search and replace in the 'setup/provinces' folder Replace "city" with "settlement". But then there'll be a lot of overpopulated places, and editing pop numbers is even more work. (could be done with a start up event, though)

also, join the modding discord, there's always plenty of people to ask for help https://discord.gg/veS95j
How do I download it? When I click on the attachment it goes into a different tab with all the code
 

MachopPower69

Lt. General
48 Badges
Feb 18, 2018
1.445
2.194
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Mare Nostrum
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Legacy of Rome
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II: Rajas of India
  • Victoria 2
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
Also, sorry about double posting but how can I randomise goods, or is that impossible? And how can I make AI unlikely to colonise, like have a lower chance to colonise if they have the chance?