Hearts of Iron IV

Hearts of Iron IV

Send People to Brazil
294 Comments
gamer 13 Jun @ 1:20am 
what if we removed the whole deport to brazil part and just made them disappear
FrAmed46 9 May, 2024 @ 1:51am 
how do i get this to work? i wanna buff brazil in trial of allegicance lol
SpardaSon21 4 Nov, 2022 @ 3:08am 
At least they're not headed to Detroit.
DioneLB 4 Dec, 2021 @ 12:46pm 
You are going to Brazil
The Withered King 1 Oct, 2021 @ 11:10am 
Could you create more than just 'Deport to Brazil'? I'd like to deport people to other nations too! Including, but not limited to: United States, Soviet Union, Argentina, and Canada.
aobunau 17 Sep, 2021 @ 8:57pm 
would be great if there was a "deport to bottom of ocean" option where i just load all of my rebels onto a convoy rigged with explosives, without lifeboats
Papa Bezmenov  [author] 3 Sep, 2021 @ 10:30am 
This mod has been flagged as "incompatible" and I have no idea why and the link is broken for the instructions page. But can assure you it still works for latest version of the game.
Papa Bezmenov  [author] 3 Sep, 2021 @ 10:28am 
@ChipopHQ Yes, only if you puppet Brazil, if you annex it then the game bugs and starts increasing and decreasing random state population. Currently working on few bigger mods so haven't had time to update this mod, still on my list though.
ChipopHQ 2 Sep, 2021 @ 8:33am 
What happens if you conquer Brazil and send people from other conquered lands to Brazil? Will you turn Brazil into a big prison colony?
Baltazar Gąbka 1 Sep, 2021 @ 8:19am 
Screw off with your shitty copy and paste skeleton
Fronkle 30 Aug, 2021 @ 1:42pm 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS Kenny
▄░▐░░░▄▄░█░▀▀
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░░░░
han0233 29 Aug, 2021 @ 10:10pm 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS Kenny
▄░▐░░░▄▄░█░▀▀
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░░░░

Dick Justice 26 Aug, 2021 @ 1:13pm 
@Papa Stalin thanks
DerRitter 26 Aug, 2021 @ 12:56pm 
I love this
Kihleer 25 Aug, 2021 @ 11:57am 
Stop sending these guys to here, it is hard to find good loot in our daily battle royale with this many people arriving everyday. :tcheco:
Randi Moth 25 Aug, 2021 @ 3:37am 
Regarding division by zero, I found this in the change logs: "Change divide_temp_variable effect not to crash on division by zero and return the value specified by the parameter `if_zero` which default to zero." That means that division by 0 results in 0 unless specified otherwise, so if Brazil doesn't exist, "divide_temp_variable = { BRA_population_add_temp = BRA.num_owned_controlled_states }" would result in 0, so nobody will be sent to Brazil. Nonetheless, there still should be a check that Brazil has any controlled states, doesn't make sense to send people to Brazil if there's no Brazil (That would result in all of the people dying on the way to Brazil, but this time it would count as them being sent to Brazil)
Papa Bezmenov  [author] 24 Aug, 2021 @ 11:09pm 
@ivanzadar9 I've found a way to do it, should also support core states. Will get to it when I have time.
Wanderer101 24 Aug, 2021 @ 7:46pm 
Germany: YOU ARE GOING TO BRAZIL
Poland: NOOOOO!!! :papyruswacky:
Dick Justice 24 Aug, 2021 @ 12:28pm 
can you please make that you dont need dlc
Frances 24 Aug, 2021 @ 5:42am 
This is just pure horror. What is wrong with you? I wouldn't even wish this on my worst enemy
The Last Roman 23 Aug, 2021 @ 3:40pm 
If it's possible, add an option so that every AI picks this occupation law with the mod enabled. I want to see how big the numbers can get.
oslak1221 23 Aug, 2021 @ 7:27am 
Pov: You are going to Brazil
George Smith Patton 22 Aug, 2021 @ 1:09am 
Do the soviets!!! Am i the only person whos thinking of siberian sleigh rides?
Aeternum 22 Aug, 2021 @ 12:25am 
for brazil, send them to detroit
Blue Son 21 Aug, 2021 @ 4:30pm 
Why not Detroit?
The Tin Man 21 Aug, 2021 @ 9:11am 
Do madagascar next!
DecoDesc 21 Aug, 2021 @ 6:58am 
why brazil?
PRUDDY??? 20 Aug, 2021 @ 3:39pm 
wait, if japen uses this on china will brazil get like 100mil manpower?
_FrancisASN_ 20 Aug, 2021 @ 6:27am 
Soviet: YOU ARE GOING TO BRAZIL!!!
Poland: NOOOOOOOOOOOOO!!!
Paradoxslave 18 Aug, 2021 @ 10:21pm 
Update please
<c=#FFff0000>Rafael N.</c> 18 Aug, 2021 @ 3:00pm 
QUE E ISSO
Young Stroker the Body Snatcher 17 Aug, 2021 @ 5:40pm 
will set as default
Papa Bezmenov  [author] 17 Aug, 2021 @ 2:12pm 
@kngpigrJ Yes you may! That be great :)
Papa Bezmenov  [author] 17 Aug, 2021 @ 2:11pm 
The man, the myth, the legend, @Random himself. Thanks for creating your mod, this mod wouldn't be possible without it. Wanted to give you credit but saw you were stepping back from modding. I do admit my code isn't that great, don't have much experience modding but I made it work somehow lol. Thanks for the advice, I will try to improve the code from what you suggested when I get back into modding, much appreciated.
pyotr 15 Aug, 2021 @ 10:23pm 
NOOOO NOT BRAZIL!!! PLEASE!!! ANYTHING BUT THAT!!!! NOOOOO!!!!!!!!
bgroh2009 15 Aug, 2021 @ 4:54pm 
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ Doge
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ Take
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ Over
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ Steam
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ Copy
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ And
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ Paste
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌ DO IT.
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓
WORXS 15 Aug, 2021 @ 7:27am 
Thank now i can send ukraine people to Brazil
Fleetfoot 15 Aug, 2021 @ 5:30am 
Funny enough. Polish people would migrate to Brasil in 20's and 30's for better life. Brazilian government stopped these migration to prevent eventually polish colony.
sithlord 15 Aug, 2021 @ 12:06am 
why don't you send people to Haiti for a prisoner
BattleRz 14 Aug, 2021 @ 8:16pm 
That is so f*cking funny
thefencechild 14 Aug, 2021 @ 5:30pm 
brazil has a lot of people to collapse the lungs of the earth now
Matthe_55 14 Aug, 2021 @ 10:59am 
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ Doge
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ Take
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ Over
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ Steam
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ Copy
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ And
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ Paste
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌ DO IT.
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓
rocket_pod_man 13 Aug, 2021 @ 10:59am 
My sides are in orbit.

Then again, at least they are not in Brazil.
kngpigrJ 10 Aug, 2021 @ 5:13pm 
Can I, as a Brazilian, have the honor to translate this mod?
Randi Moth 10 Aug, 2021 @ 4:23pm 
This didn't fit in the previous comment, but this mod does assume that Brazil has 12 states, which is not always the case. You can instead use the num_owned_controlled_states variable like ```divide_temp_variable = { BRA_population_add_temp = BRA.num_owned_controlled_states }``` and it will just divide into the correct amount of states.

However, in that case it would be nice to have a backup plan in case Brazil spontenously stops existing since that will be a division by 0, which I don't know how the game handles. So it would be nice to put some check if Brazil controls any state in the occupation law's visible = {}. Not that Brazil exists (possible to exist and control 0 states), but that num_of_controlled_states > 0.
Randi Moth 10 Aug, 2021 @ 4:18pm 
Regarding the mod's code itself, there are some issues. In the on_actions, the BRA_add_pop_each_state variable is added to outside of every_controlled_state, meaning that the BRA_population_add_temp is only there for the last (by ID) occupied state where the Brazilian occupation law is in place. Aka only one state's population will arrive in Brazil, the others will die on the way. This is also reflected in the population_count variable, meaning that those that die on the way to Brazil will also not show up in the counter of how many you have sent to Brazil. Theoretically, adding it back to every_controlled_state should cause no issues, as long as you set the scope of the population_count to be ROOT or PREV, since the calculations are only done for states which are sending people to Brazil.

In short, only one state's pops arrive to Brazil, the others die on the way which also doesn't count as them being sent to Brazil.
Randi Moth 10 Aug, 2021 @ 4:16pm 
Hey, the monthly state population resource is getting some use :). I've adjusted for monthly population country modifier in the resource, so it shouldn't have caused issues, although I haven't tested if monthly population country modifiers are actually calculated properly, so it may be possible. Reminds me that I forgot to update the discord username in the mod after changing it.

As a note, the occupation system is present without LR, so the DLC is not mandatory.
Black Kaiser 10 Aug, 2021 @ 11:54am 
@Papa Stalin the more you know thank you!
Papa Bezmenov  [author] 10 Aug, 2021 @ 9:29am 
@hwolf60 you can drag and drop the icon with left mouse click.
Black Kaiser 10 Aug, 2021 @ 8:49am 
is there a way to move the icon around? for me its in the middle of the bloody screen.... of how many people i peacfully moved.