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

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.897
62
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Mount & Blade: Warband
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Heir to the Throne
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
I'm sure I'm not the only one to notice this, but in mods that have lots of different countries there seems to be an increased slowdown effect as the game has to process more events and more characters at any given time. Moreover, savegame files become epic huge after only a few years of gameplay.

One solution I've considered while pondering some of the expansion ideas is to create a simple triggered modifier, something like this:

Code:
minor_country = {
	trigger = {
		ai = yes
		capital_scope = { NOT = { civilisation_value = 40 } }
	}
	max_friends = -4
	max_rivals = -4
	fertility = -2
	icon = 1
}

What this means is that there will be fewer characters being born and less character interaction for countries that are deemed to be 'minor countries' (which, for the point of this example is an arbitrary civilisation value, but these triggers can be expanded to include other countries as well).

On top of this, every event in the game except for those detailing character deaths (and maybe crossroads events) can have a simple trigger added to them:

Code:
		NOT = { has_country_modifier = minor_country }
(This works for country events only; character and province events will need a country = { } switch added first.)

This means that very few events will actually fire for these minor countries, resulting in less stress for your computer and smaller savegame files.

Now, I haven't properly tested all of this, at least not in the long term. However, if it does actually work then it becomes very plausible to pretty much fill any map with countries and suffer very little slowdown.

Thoughts?
 
A great idea, I'm always a fan of more scope, but unfortunately I can't offer more feedback than this..
 
Good thought Cheexsta. I dont see why it wouldnt work.

I am just starting to see a slowdown on my mod but nothing like what you get on Crusader Kings. But I havent played deep enough (time wise) to see how bad it gets.

Could you also limit the modifier so that neighbouring countries of the player were no longer minor_countries ?
 
You could, I think adding the following line to the triggers might do it:

Code:
		NOT = { any_neighbor_country = { ai = no } }

But I've always had problems with any_neighbor_country, so you could possibly do a workaround with a combination of any_province and then any_neighbor_province if it doesn't work.

As for slowdown in Epigoni, I haven't had problems with it in the past (but this is in previous versions with nowhere near as many countries). Rise of Ancients had some huge slowdown issues for me, though, and my Magna Terra savegames have always become insane. So, it could work for some mods at least - if any modder wants to try it with their mod, by all means give it a go and let us know if it makes any difference.