Hearts of Iron IV

Hearts of Iron IV

Historical Immersion Event Pack
Jags 14 Jul, 2023 @ 7:07am
Solution for bug of Turkish Agressive AI on Historical Focus
The problem with Turkish AI is in wrong focus time.
Analys of TUR_historical_strategy_plan.txt shows that AI gains focuses too fast, because most of them are 35 days long instead of 70, as must be by developers comments:


- in left column I numered years, when AI gets focus in game now: (1937)
- central column is number of days per focus in vanilla 1.12, next column is my proposal for focus times (changed them in national focus file fo TUR and test shows that all work fine)
- right column is years when TUR gets focuses after changes: [1937]

sorry for lost formating :(


ai_national_focuses = {
#1936
TUR_the_montreux_convention 70
TUR_continue_the_policy_of_etatism 70
TUR_hava_okulu 35 70
TUR_ratify_the_six_arrows 70
TUR_peace_at_home 35 70
#1937
TUR_turkish_state_railways 70 [1937]
(1937) TUR_the_second_five_year_plan 70
TUR_treaty_of_saadabad 35 70
TUR_the_sanayiciler 35 70
TUR_learning_from_the_great_war 35 70
#1938
TUR_the_guardians_of_kemalism 35 70 [1938]
TUR_assess_our_future 35 70
TUR_the_hatay_issue 35 70
TUR_turk_ulusu 70
TUR_cooperate_with_the_debt_council 35 70
#1939
(1938) TUR_utilize_foreign_capital 70 [1939]
TUR_modernising_the_army 35 70
TUR_expand_the_air_bases 35 70
TUR_expand_the_golcuk_naval_base 70
TUR_peace_in_the_world 35 70
#1940
TUR_variant_turkish_tax_focus 35 70
TUR_abuse_the_office_of_soil_products 70 [1940]
(1939) TUR_reconfigure_our_foreign_policy 70
TUR_the_anglo_turkish_agreement 35 70
TUR_the_german_turkish_friendship_treaty 35 70
#1941
TUR_renew_the_turkish_soviet_non_aggression_pact 35 70
TUR_host_exiled_scientists 70 [1941]
TUR_embrace_military_tradition 35 70
TUR_superiority_of_arms 35 70
TUR_the_clodius_agreement 70
#1942
(1940) TUR_construct_the_cakmak_line 70
TUR_the_batumi_accord 70 [1942]
TUR_provide_refuge_to_the_victims_of_fascism 70
TUR_the_pontic_redoubt 35 70
TUR_purchase_italian_light_tanks 70
#1943
TUR_applying_british_oil_embargoes_on_iraq 70
TUR_the_chester_concession 70 [1943]
TUR_american_motor_factories 70
(1941) TUR_relocate_from_yildiz_palace 70
TUR_accelerate_native_fighter_designs35 70
#1944
TUR_bomber_schematics 70
TUR_the_italo_turkish_naval_academy 70 35 [1944]
TUR_the_path_of_the_wolf 35
TUR_patrol_the_seas 35
TUR_turkish_air_defense_platforms 70 35
(1942) TUR_approve_the_funkplan 70 35
TUR_soviet_tank_factories 70 35
TUR_adana_to_baku_highway 70 35
TUR_invite_german_officers_to_izmir 70 35
TUR_utilising_our_terrain 70 35
(1943) TUR_fortified_defensive_bases 70 35
TUR_turk_silahli_kuvvetleri 70 35
TUR_join_the_allies 70 [1945]
#1945
(1944) TUR_controlling_the_skies_of_europe
TUR_expanding_our_navy
TUR_expanded_credit_on_our_debts
}

Probalem with attack on Romania and triggering WW3 with SU is in next focus:


focus = {
id = TUR_seizing_the_romanian_oil_fields
icon = GFX_goal_tfv_saf_anti_colonialist_crusade
available = {
ROM = {
OR = {
has_government = fascism
has_government = comunism
has_added_tension_amount > 5
}
}
}

For correct work need remove trigger "has_government = comunism". Description of this focus also shows that it must work only on facist ROM.


And thank you for your great work! Your mods are the one of the best!
Last edited by Jags; 14 Jul, 2023 @ 7:19am