Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Weird.
And now, as a result, Aragon is demoted to a duchy.
I think the condition "NOT = { government_rank = 3 } #Not an Emperor." could be "NOT = { government_rank = 2 } #Not an King."
Or at least add a ai_will_do section which forbides AI kings to take this decision.
In this ai_will_do section I would also add some extra condition like we can't have a stronger army than the HRE emperor. And I'm not sure about this last condition but I would maybe add that you need to be neighbouring an HRE province, or otherwise be at a small enough distance from some HRE country (so I'ld be fine with for instance Marselha joining the HRE when surrounded by a non-HRE Anjou)
PS: what makes it even weirder is that this happens now that the HRE has already lost all of Italy. So the HRE was very far away and with almost no access to the Mediterranean Sea.
But actually, instead of spending time to tune this parameter, we could start by rewriting the kernel. As you could see in the comments, what I first had in mind was using some discretised heat kernel:
# Ideally I'ld just like to have dx_i/dt = alpha \sum_{j neighbouring i} (x_j-x_i) but the engine has many bugs
This was not possible because at that time the engine was not allowing mathematical operations between two different scopes (the two provinces i and j). Actually it did theoretically allow it but it didn't work. It's been a long time so it would be worth checking whether it has been fixed since then.
If it is still impossible, maybe the hack I used as a quick substitute would be worth refining : right now what is computed is :
dx_i/dt = alpha \sum{j neighbouring i} [ theta(x_j) -theta(x_i) ], where theta is the heaviside function.
Theta could be replaced by a smoother piece-wise constant function, getting closer to the identity. For instance:
every_neighbor_province = {
limit = { has_province_flag = province_occitanism_active }
if = {
limit = {
check_variable = { which = province_occitanism value = 75 }
}
PREV = { change_variable = { which = tot_province_occitanism value = 0.75 } }
}
else_if = {
limit = {
check_variable = { which = province_occitanism value = 50 }
}
PREV = { change_variable = { which = tot_province_occitanism value = 0.50 } }
else_if = {
limit = {
check_variable = { which = province_occitanism value = 25 }
}
PREV = { change_variable = { which = tot_province_occitanism value = 0.25 } }
}
PREV = {
if = {
limit = {
check_variable = { which = province_occitanism value = 75 }
}
change_variable = { which = tot_province_occitanism value = -0.75 }
}
else_if = {
limit = {
check_variable = { which = province_occitanism value = 50 }
}
change_variable = { which = tot_province_occitanism value = -0.50 }
else_if = {
limit = {
check_variable = { which = province_occitanism value = 25 }
}
change_variable = { which = tot_province_occitanism value = -0.25 }
}
}
}
(then, with this choice of kernel I would multiply the coefficient of diffusion by about a factor 4, compared to the kernel we currently use)
I can limit the AI's ability to choose Imperial Membership. I didn't know that forced them to become Duchies.
Set ai_will_do:
modifier = {
factor = 0
government_rank = 2
}
modifier = {
factor = 0
army_size = emperor
}
I'm not sure how to code for your third condition off the top of my head, like scoping to distance from an HRE province. We'd have to talk specifics and code.
Your PS (can change conditions+values):
modifier = {
factor = 0.1 #Shouldn't be impossible if we don't border HRE *and* she's lost Italy, but extremely unlikely.
NOT = {
OR = {
any_neighbor_country = { is_part_of_hre = yes }
italy_region = {
is_part_of_hre = yes
}
}
}
}
Not a terrible idea, but I'd want to know under what conditions their spawning would be possible. What would cause them to revolt where Nationalists wouldn't?
https://eu4.paradoxwikis.com/Conditions
You would just have to try and see which distance exactly would make sense (you can play with testevent in the console).
Maybe the requirement of having one Italian province in the HRE is still a bit weak? A province such as Trieste would be enough, even if directly controlled by Austria, and it's quite far.
I would try to use the flag of the Shadow Kingdom, for instance in vanilla you have the global flag italians_leave_hre. However in BT some flags get removed, and they seem to be only at the country-level, so I'm not sure what could be used.
Otherwise maybe it would make sense to check the Piemont region, or to ask for a minimal number of Italian provinces in the HRE and not just one, or to ask for independent HRE members in this region.But I think I would prefer to just look at whether the Shadow Event triggered.
italians_leave_hre is the easiest and most sensible solution. No need for excessive province checks that lag the game.
any_country = {
is_part_of_hre = yes
border_distance = {
who = PREV
distance = 200
}
}
ai_will_do = {
factor = 1 #How often should the AI attempt this?
modifier = {
factor = 0
government_rank = 2 #Kingdoms will be demoted when joining HRE, so we don't want them to join.
}
modifier = {
factor = 0
army_size = emperor #If we're more powerful than the Emperor, why should we swear fealty?
}
modifier = {
factor = 0 #Why on Earth would we join the HRE if they're super far away?
NOT = { #NOT any HRE country is closer than 200.
any_country = {
is_part_of_hre = yes
NOT = { #NOT at least X distance, ie any HRE country is closer than 200.
border_distance = {
who = PREV
distance = 200 #At least X distance.
}
}
}
}
}
modifier = {
factor = 0.1 #Shouldn't be impossible if we don't border HRE *and* she's lost Italy, but extremely unlikely.
has_global_flag = italians_leave_hre
NOT = {
any_neighbor_country = { is_part_of_hre = yes }
}
}
}
{quote]
In common/factions/ocr_factions.txt, we have already an insane amount of modifiers for each faction and the UI struggles, but maybe we should add:
For ocr_republican:
burghers_loyalty_modifier = 0.05
burghers_influence_modifier = 0.1
For ocr_aragonese and ocr_militarist:
nobles_loyalty_modifier = 0.05
nobles_influence_modifier = 0.1
And we might want to give some church modifiers for French&Iberian, but that I'm not sure.
Similarly, if occitanists get a modifier it would be something like church_influence_modifier = -0.1. But I think I would rather leave it with none of those modifiers.
[/quote]