I'm thinking about trying to improve the KR file that controls the utterly massive amount of possibilities of the European wars. Such as Germany winning, or losing to many countries, like UK, Canada, Russia, UoB, France etc.
If you've look in there, the current file size of Capitulation, its at 596Kb with 11,659 lines. That is huge, mainly because the county's fate is divided into just seceding provinces over areas and regions.
My question is this. Will replacing them with secedearea/regions cause a performance boost? In my mind it will since there is less checking, less memory being used etc.
Its a scary and daunting task though.
EDIT: I'm having trouble getting started. Here is the original event. It checks to see if France owns Italy, and will then hand over the provinces to their South Italian allies.
Here is my event, currently not working:
I'm getting trouble on line 15, with the unknown trigger type regarding "region = Italy". I'm likely missing something incredibly simple. Help?
If you've look in there, the current file size of Capitulation, its at 596Kb with 11,659 lines. That is huge, mainly because the county's fate is divided into just seceding provinces over areas and regions.
My question is this. Will replacing them with secedearea/regions cause a performance boost? In my mind it will since there is less checking, less memory being used etc.
Its a scary and daunting task though.
EDIT: I'm having trouble getting started. Here is the original event. It checks to see if France owns Italy, and will then hand over the provinces to their South Italian allies.
Code:
event = {
id = 9111100
picture = "failed_objective"
country = FRA
style = 2
trigger = {
exists = RSI
alliance = { country = FRA country = RSI }
NOT = {
exists = ITA
}
OR = {
owned = { province = 435 data = FRA }
owned = { province = 396 data = FRA }
owned = { province = 399 data = FRA }
owned = { province = 398 data = FRA }
owned = { province = 407 data = FRA }
owned = { province = 395 data = FRA }
owned = { province = 393 data = FRA }
owned = { province = 408 data = FRA }
owned = { province = 410 data = FRA }
owned = { province = 411 data = FRA }
owned = { province = 413 data = FRA }
owned = { province = 419 data = FRA }
owned = { province = 414 data = FRA }
owned = { province = 412 data = FRA }
owned = { province = 416 data = FRA }
}
}
name = "Redrawing the Map"
desc = "We control parts of Northern Italy, we should return them to the Socialist Republic of Italy."
date = { day = 1 month = january year = 1936 }
offset = 3
deathdate = { day = 1 month = december year = 1960 }
action_a = {
name = "Return the Provinces to the Italians"
command = { type = secedeprovince which = RSI value = 393 } #Brescia
command = { type = secedeprovince which = RSI value = 394 } #Belluno
command = { type = secedeprovince which = RSI value = 395 } #Bergamo
command = { type = secedeprovince which = RSI value = 396 } #Genoa
command = { type = secedeprovince which = RSI value = 398 } #Turin
command = { type = secedeprovince which = RSI value = 399 } #Alessandria
command = { type = secedeprovince which = RSI value = 400 } #Venice
command = { type = secedeprovince which = RSI value = 404 } #Trieste
command = { type = secedeprovince which = RSI value = 405 } #Udine
command = { type = secedeprovince which = RSI value = 407 } #Milan
command = { type = secedeprovince which = RSI value = 408 } #Parma
command = { type = secedeprovince which = RSI value = 410 } #Florence
command = { type = secedeprovince which = RSI value = 411 } #Bologna
command = { type = secedeprovince which = RSI value = 412 } #Ancona
command = { type = secedeprovince which = RSI value = 413 } #Livorno
command = { type = secedeprovince which = RSI value = 414 } #Perugia
command = { type = secedeprovince which = RSI value = 415 } #Pescara
command = { type = secedeprovince which = RSI value = 416 } #Anzio
command = { type = secedeprovince which = RSI value = 417 } #Cassino
command = { type = secedeprovince which = RSI value = 418 } #Gaeta
command = { type = secedeprovince which = RSI value = 419 } #Rome
command = { type = secedeprovince which = RSI value = 420 } #Foggia
command = { type = secedeprovince which = RSI value = 421 } #Naples
command = { type = secedeprovince which = RSI value = 422 } #Taranto
command = { type = secedeprovince which = RSI value = 423 } #Campobasso
command = { type = secedeprovince which = RSI value = 424 } #Potenza
command = { type = secedeprovince which = RSI value = 425 } #Reggio Calabria
command = { type = secedeprovince which = RSI value = 426 } #Bari
command = { type = secedeprovince which = RSI value = 427 } #Salerno
command = { type = secedeprovince which = RSI value = 428 } #Cosenza
command = { type = secedeprovince which = RSI value = 430 } #Palermo
command = { type = secedeprovince which = RSI value = 431 } #Messina
command = { type = secedeprovince which = RSI value = 432 } #Catania
command = { type = secedeprovince which = RSI value = 433 } #Siracuse
command = { type = secedeprovince which = RSI value = 434 } #Cagliari
command = { type = secedeprovince which = RSI value = 435 } #Sassari
}
action_b = {
name = "Keep them!"
ai_chance = 0
command = { }
}
}
Here is my event, currently not working:
Code:
event = {
id = 9111100
picture = "failed_objective"
country = FRA
style = 2
trigger = {
exists = RSI
alliance = { country = FRA country = RSI }
NOT = {
exists = ITA
}
OR = {
owned = { province = 435 data = FRA }
owned = { region = Italy data = FRA }
}
}
name = "Redrawing the Map"
desc = "We control parts of Northern Italy, we should return them to the Socialist Republic of Italy."
date = { day = 1 month = january year = 1936 }
offset = 3
deathdate = { day = 1 month = december year = 1960 }
action_a = {
name = "Return the Provinces to the Italians"
command = { type = secederegion which = RSI value = Italy }
}
action_b = {
name = "Keep them!"
ai_chance = 0
command = { }
}
}
I'm getting trouble on line 15, with the unknown trigger type regarding "region = Italy". I'm likely missing something incredibly simple. Help?
Last edited: