
I need help with a direct immigration mod.
I'm trying to create a version of the direct immigration mechanic from the TGC mod, but so far I'm having this problem (see the population change of Metz in the image). So far, I've only managed to get pops from certain cultures (primary, accepted, and non-accepted) to immigrate, but not to the provinces I choose. I suspect the problem might be in these lines:
(It belongs to the files in the "poptypes" folder. / It is a modifier for internal immigration)
modifier = {
factor = 0
location = { NOT = { has_province_modifier = destination_pops } }
country = { has_country_flag = direct_immigration }
country = { ai = no }
}
(It belongs to the "pop_types" file in the common folder / It is a modifier for emigration)
modifier = {
factor = -5
location = { has_province_modifier = origin_pops }
}