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

Lambert Simnel

Voter Colonel
66 Badges
Nov 24, 2001
1.595
639
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
After failing to make much progress with controlling AI behaviour by changing the cost of war declaration, I moved on to a more tractable bit of code, the viking_conquest_ai_score_value modifier.

This modifier, which controls who the AI will target with the Conquest CBs, includes a multiplier of 10 pulling Asatru rulers to use that CB in western Europe. This is the reason why Rurik generally starts by attacking East Francia and following it up with attacks on Britain, Ireland, Brittany and Iberia.

I have changed this modifier so that it only applies to rulers outside of eastern Europe. Asatru rulers already in the eastern Europe region instead have a different x10 multiplier that pulls them towards the rivers that link the Gulf of Finland to the Black Sea and the Caspian.

Here we see that in 902 the Rurikids have avoided the temptation to sail west and are continuing to expand into Russia.
rurik (2).png


This mod includes two smaller changes to the viking_conquest_ai_score_value modifier. The preferred targets for non-Russian vikings now excludes Iberia and the French Mediterranean coast, and the factor that pulls the AI to attack settled realms now looks at tribal vs non-tribal rather than reformed vs unreformed in order to stop Ireland from being partitioned by vikings quite so quickly.

https://mods.paradoxplaza.com/mods/12466/Any

https://steamcommunity.com/sharedfiles/filedetails/?id=2229095534

Hopefully this is published correctly. This is my first mod since the early days of EU3.
 
  • 21Like
  • 4Love
  • 1
Reactions:
Yes, yes and yes. Thank you.
 
During one of my test runs the Rurikids and Oskyldrs both formed large kingdoms, until about 80 years into the game they got into an epic war over a border duchy that sapped both of their strength and ended with Gardariki torn apart by their northern neighbours,; while of the three sons who inherited the Oskyldr kingdoms, one was overthrown by a vassal, while another was murdered and his throne given to the Russian family that had ruled there in the beforetimes. A tale worthy of the sagas.

(At some point the Oskyldrs had converted a Mogyar count, who then took advantage of the Mogyar migration event to create an Odin-worshipping Hungary.)
 
  • 1Like
  • 1
Reactions:
Will you do some other general AI tweaks?
Yes, next up is looking to see if I can make the AI more tempted to clean up border gore (eg use de jure CB, attack isolated provinces) and less tempted to perpetrate it (attacking overseas when you have alternative targets neighbouring you).

At the moment I'm wrapping my head around what neighbouring means for a vassal and how to implement that (If I'm a duke do provinces owned by my counts count? What about provinces owned by my king or by my fellow dukes?)
 
  • 2Like
  • 1Love
  • 1
Reactions:
Seems scope:target works in valid_to_start (which identifies which titles can be attacked), but not in ai_score_mult (which controls the AI's preferences). So it is not possible to say "Hey AI, you really want to attack isolated counties." Although it should be possible to say "You really want to attack rulers that have an isolated county next to you" and "If a ruler has an isolated county next to you, you can't attack any other counties in that realm"
 
The latest version of my anti-gore changes is looking hopeful. After 250 years of hands-off play I no longer want to claw my eyes out.

Not long before the 200 year mark West Francia and Aquitaine were conquered by the Danes and Muwalladi Jerusalem who both quickly exploded. I was beginning to worry for the state of the world, but fifty years later that area has mostly cleared up.

2020_09_21_5.png


Most of the changes attempt to stop the AI from attacking illogical places, without stopping plausible invasions like Byzantines vs Aghlabids over Sicily and Carthage, or new Viking invasions of Britain and Normandy. As such it generally constrains the attack anywhere CBs like conquest and holy war as conquering your grandfather's old realm can be logical even if it is in an odd place.

Some examples
If two realms share a land border, they can only use conquest and holy war CBs against titles along that border, they can't do landings in the enemy rear.
Furthermore if any of the target's counties border land that can trace back to the attacker's capital by land, then the attacker will target one of those counties - not one that border's one of the attacker's exclaves
If a realm already has an exclave then they can't use conquest and holy war CBs to start a new exclave

There are also AI weighting modifiers (similar in size to Paradox's Western European Viking modifier) to encourage attacks against realms with exclaves and against realms that are blocking you from re-uniting from your exclave.
 
  • 6Like
  • 1Love
Reactions:
The latest version of my anti-gore changes is looking hopeful. After 250 years of hands-off play I no longer want to claw my eyes out.

Not long before the 200 year mark West Francia and Aquitaine were conquered by the Danes and Muwalladi Jerusalem who both quickly exploded. I was beginning to worry for the state of the world, but fifty years later that area has mostly cleared up.

Most of the changes attempt to stop the AI from attacking illogical places, without stopping plausible invasions like Byzantines vs Aghlabids over Sicily and Carthage, or new Viking invasions of Britain and Normandy. As such it generally constrains the attack anywhere CBs like conquest and holy war as conquering your grandfather's old realm can be logical even if it is in an odd place.

Some examples
If two realms share a land border, they can only use conquest and holy war CBs against titles along that border, they can't do landings in the enemy rear.
Furthermore if any of the target's counties border land that can trace back to the attacker's capital by land, then the attacker will target one of those counties - not one that border's one of the attacker's exclaves
If a realm already has an exclave then they can't use conquest and holy war CBs to start a new exclave

There are also AI weighting modifiers (similar in size to Paradox's Western European Viking modifier) to encourage attacks against realms with exclaves and against realms that are blocking you from re-uniting from your exclave.

Is this all included in this mod?
 
Is this all included in this mod?
No, these extra changes still aren't giving me results I'm happy with.

If I can get them to behave then I'll probably publish them as a separate mod
 
  • 1Like
Reactions:
Noice. I'll be waiting!
 
@Lambert Simnel

You should check the 1.1 patch notes; there's a line in there about Russian vikings being less aggressive outside Europe, so it's possible Paradox implemented some form of your fixes. Hopefully you can compare files tomorrow and see what they did.
 
  • 1Like
Reactions:
@Lambert Simnel

You should check the 1.1 patch notes; there's a line in there about Russian vikings being less aggressive outside Europe, so it's possible Paradox implemented some form of your fixes. Hopefully you can compare files tomorrow and see what they did.
Hopefully I will be relieved of the responsibility of maintaining this.
 
  • 2Like
Reactions:
Hopefully I will be relieved of the responsibility of maintaining this.
What are your thoughts on 1.1/1.1.2 with regards to these changes? Have you noticed improvements in vanilla or will this mod need updating?
 
What are your thoughts on 1.1/1.1.2 with regards to these changes? Have you noticed improvements in vanilla or will this mod need updating?
Rurik is mostly fine. The only thing I've seen him do that I disagree with is attacking the northern coast of Bjarmia (around Archangelsk), but that's pretty minor.
 
  • 1
Reactions: