How do I get rid of unemployed pop migration?

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

Ryika

Field Marshal
52 Badges
Apr 16, 2018
2.790
8.266
I read that as saying only Migration Controls are ignored by Gestalts, so the other restrictions, including this function, should still work.
Exactly. For any non-Gestalt Pop with Migration Controls active, the check will never run because the code already decides that the pop can't auto migrate. But this is ignored for Gestalt, so they're the ones for whom the check is still relevant even if Migration Controls are active.

Or in other words, the check always runs, unless code has already decided that a pop can not auto migrate.
 
Last edited:
  • 1
Reactions:

BelziBhaal

Corporal
17 Badges
Sep 7, 2018
40
20
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Magicka
  • Stellaris: Synthetic Dawn
Exactly. For any non-Gestalt Pop with Migration Controls active, the check will never run because the code already decides that the pop can't auto migrate. But this is ignored for Gestalt, so they're the ones for whom the check is still relevant even if Migration Controls are active.

Or in other words, the check always runs, unless code has already decided that a pop can not auto migrate.
I gave it a try. It works beautifully. Thank you.
 

BelziBhaal

Corporal
17 Badges
Sep 7, 2018
40
20
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Magicka
  • Stellaris: Synthetic Dawn
The easiest way to do this is without disrupting the AI is by changing a game rule in Stellaris\common\game_rules\00_rules.txt

If you just want to limit it while playing as Machine (since they can't set migration controls to stop it manually), you can also do:
Code:
can_pop_auto_migrate = {
    is_unemployed = yes
    owner = {
        or = {
            is_ai = yes
            is_machine_empire = no
        }
    }
    is_being_assimilated = no
    OR = {
        AND = {
            is_shackled_robot = no
            is_enslaved = no
        }
        planet = {
            has_building = building_slave_processing
        }
    }
}


Untested, but should work.

Obviously best implemented by a proper mod instead of modifying the file directly.

I used this and it works a treat. My nightmare is finally over. Thank you.
 
  • 2Like
Reactions: