The Baltic "Rejoin the Railways" focus doesn't increase infrastructure in all core states

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

eastcoastceojam

Lt. General
45 Badges
Mar 21, 2018
1.685
1.762
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
This is not a rant thread, but rather an FYI to my fellow forum dwellers. The "Rejoin the Railways" shared Baltic focus seems like it will increase infrastructure by 1 level in all core states, but the actual requirements are more complicated:

  • The state must not be your capital
  • The state must be an owned core, not just an occupied core
  • The state must have 2+ levels of infrastructure available to build

The last one was news to me. It means that if you built up infrastructure in key states to level 4 (80%) before the focus completes, expecting it to max out when this focus completes, you wasted your time. Instead, you should build states up to no higher than level 3 (60%), wait for the focus to finish, then built the last level of infrastructure in states you want to max out.

Perhaps this is a typo, and the focus logic should instead read like the below?

Code:
    free_building_slots = {
                    building = infrastructure
                    size > 0
                }


Either way, I wanted to pass this along in case some weren't already aware. This is still a powerful focus, but just not quite as powerful as I had hoped.


Code:
shared_focus = {
    id = BALTIC_rejoin_the_railways
    icon = GFX_goal_generic_construct_infrastructure
    x = 10
    y = 0
    offset = {
        x = -6
        y = 0
        trigger = {
           
        }
    }

    cost = 5

    ai_will_do = {
        factor = 1
    }

    available = {

    }

    bypass = {
       
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = no

    search_filters = { FOCUS_FILTER_INDUSTRY }
    completion_reward = {
        every_owned_state = {
            limit = {
                is_core_of = ROOT
                free_building_slots = {
                    building = infrastructure
                    size > 1
                }
                is_capital = no
            }
            add_building_construction = {
                type = infrastructure
                level = 1
                instant_build = yes
            }
        }
    }
}


Screenshot #1 - The focus is one day from completing, and Warsaw, Kielce, and Katowice are already at level 4 infrastructure.

lith rejoin railways before.png



Screenshot #2 - The focus has completed, and all the surrounding states are now at level 4 infrastructure. However, Warsaw, Kielce, and Katowice remain unchanged at level 4 infrastructure, instead of being upgraded to level 5 as I was expecting before looking into the code.

lith rejoin railways after.png
 
Last edited:
  • 6
  • 1Like
Reactions:

Kosaki MacTavish

Major
15 Badges
Feb 28, 2019
646
1.410
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
Welp, that sucks. I always do that foci before i got really snowballing there (therefore almost all of my owned core states has below 80% infras) so i didn't notice that bug.

Fortunately the "Baltic Autobahn" foci has been written correctly. Seeing all those greens turned to blues in just one day feels so satisfying.

Hope that code mistake get fixed soon.
 
  • 1
Reactions:

eastcoastceojam

Lt. General
45 Badges
Mar 21, 2018
1.685
1.762
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
Fortunately the "Baltic Autobahn" foci has been written correctly. Seeing all those greens turned to blues in just one day feels so satisfying.

Agreed, that one doesn't seem to have any restrictions on upgrading infrastructure, as long as it's an owned core state:

Code:
every_owned_state = {
            limit = {
                is_core_of = ROOT
            }
            add_building_construction = {
                type = infrastructure
                level = 1
                instant_build = yes
            }
            add_extra_state_shared_building_slots = 1
        }

If you wanted to be really sneaky, you can try to wait to do this one until after you've defeated the USSR, and cored all those extra states.


Code:
shared_focus = {
    id = BALTIC_autobahn
    icon = GFX_goal_reichsautobahn
    prerequisite = { focus = BALTIC_german_war_economics }
    prerequisite = { focus = BALTIC_german_tank_licences }
    x = 0
    y = 1
    relative_position_id = BALTIC_german_war_economics

    cost = 10

    ai_will_do = {
        factor = 1
    }

    available = {
        any_other_country = {
            exists = yes
            has_capitulated = no
            has_government = fascism
            is_major = yes
            NOT = { has_war_with = ROOT }
        }
    }

    bypass = {

    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = no

    search_filters = { FOCUS_FILTER_INDUSTRY }
    completion_reward = {
        capital_scope = {
            add_extra_state_shared_building_slots = 2
            add_building_construction = {
                type = industrial_complex
                level = 1
                instant_build = yes
            }
        }
        every_owned_state = {
            limit = {
                is_core_of = ROOT
            }
            add_building_construction = {
                type = infrastructure
                level = 1
                instant_build = yes
            }
            add_extra_state_shared_building_slots = 1
        }
        random_owned_controlled_state = {
            limit = {
                is_capital = no
                free_building_slots = {
                    building = industrial_complex
                    size > 0
                    include_locked = yes
                }
                OR = {
                    is_in_home_area = yes
                    NOT = {
                        owner = {
                            any_owned_state = {
                                free_building_slots = {
                                    building = industrial_complex
                                    size > 0
                                    include_locked = yes
                                }
                                is_in_home_area = yes
                            }
                        }
                    }
                }
            }
            add_building_construction = {
                type = industrial_complex
                level = 1
                instant_build = yes
            }
        }
    }
}


lit autobahn.png
 
  • 1Love
Reactions:

Kosaki MacTavish

Major
15 Badges
Feb 28, 2019
646
1.410
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
If you wanted to be really sneaky, you can try to wait to do this one until after you've defeated the USSR, and cored all those extra states.
Not that sneaky though, i always did that foci in the lategame stage when i already conquered my maximum core states anyway, the branch design makes it obvious.

But since "Rejoin the Railways" is the literal first step on the Shared Baltic Industries branch, it would be a huge timewaster to only do that one in the lategame.
 
  • 1
Reactions: