Hearts of Iron IV

Hearts of Iron IV

1,794 ratings
Cheat Codes/Commands & Country Tags - Hearts of Iron IV
By Vinolik
Cheats, useful commands and how to use them.

Need help? Write a comment below and you'll either get help from me or from one of the friendly guys in the comment section :)

Good luck and have fun!
12
2
   
Award
Favorite
Favorited
Unfavorite
>> DISCLAIMER <<
- SOME COMMANDS MAY HAVE UNEXPECTED RESULTS.

SAVE BEFORE USING COMMANDS

- SOME COMMANDS MAY ALSO AFFECT THE AI COUNTRIES.

PAUSE BEFORE USING COMMANDS

Console Window
To open the console window, where cheat codes are entered, press:

  • The button above TAB
  • The key which has a ½ or § symbol on it
  • If none of the above work, just slam your head on the keyboard a couple times until it works
Basic/Quick Cheat Codes & Commands
Code
Effect
manpower
Adds 10 million manpower
ic
Instant construction. NOTE: This also affects AI nations, PAUSE BEFORE USE!
fow
Removes the fog of war, revealing all units on the map
focus.autocomplete
Enter this code before you start a new focus. It will complete it immediately
research_on_icon_click
Tech will be researched immediately when clicked on
research all
All tech will be researched directly
pp
Adds 1000 political power
xp
Adds 1000 xp
allowdiplo
Removes diplomacy rules and allow use of all available diplomatic actions
ai_accept
AI nations will accept any and all your diplomatic actions
debug_nuking
Allows nuking of all provinces without having to meet any conditons
winwars
Max war score in all wars for the country
instant_prepare
Will instantly prepare any naval invasions
ai
Toggle AI on or off
State/Party Ideologies
Ideology
code
Non-Aligned
neutrality
Fascist
fascism
Democratic
democratic
Communist
communism
Advanced/Customizable Cheat Codes & Commands
Code: setowner "country tag" "state id"
Description: Will change owner of a specified state.
Examples:
- To change the owner of Maryland to Sweden, write: setowner SWE 361
- To change the owner of Catalonia to Australia, write: setowner AST 165


Code: civilwar "ideology" "country tag"
Description: Will trigger a Civil War started by the selected ideology in the selected country.

Examples:
- Fascists will start a civil war in Poland, write: civilwar fascism POL
- Democrats will start a civil war in Japan, write: civilwar democratic ♥♥♥
- Communists will start a civil war in Australia, write: civilwar communism AST


Code: add_latest_equipment "amount"
Description: Adds a chosen amount of latest equipment in every category.
Examples:
- To add 420 of the latest equipment, write: add_latest_equipment 420
- To add 50000 of the latest equipment, write: add_latest_equipment 50000


Code: ae "amount" "type"
Description: Adds a chosen amount of chosen Equipment
Examples:
- To add 100 Light Tank I, write: ae 100 Light Tank I
- To add 5000 Infantry Equipment II, write: ae 5000 Infantry Equipment II
- To add 10 000 Heavy Fighters, write: ae 10000 Heavy Fighter
- To add 500 Convoy, write: ae 500 Convoy

About equipment type:
Easiest way to find equipment types is by looking in the production or research menu. For example Infantry Equipment. It comes in different iterations (I, II, III). Here are some more examples: Support Equipment, Motorized, Heavy Fighter, Medium Tank, Convoy


Code: manpower "amount"
Description: Adds a chosen amount of Manpower to the player nation
Examples:
- To add 10 000 manpower, write: manpower 10000
- To add 1 000 manpower, write: manpower 1000


Code: nu "amount"
Description: Adds a chosen amount of National Unity to the player nation
Examples:
- To add an additional 15% national unity, write: nu 15
- To add an additional 1% national unity, write: nu 1


Code: whitepeace "nation tag"
Description: Will trigger white peace with the chosen nation.
- A white peace will be triggered with Poland, write: whitepeace POL
- A white peace will be triggered with Hungary, write: whitepeace HUN


Code: nuke "amount"
Description: Adds a chosen amount of Nukes to the player nation
Examples:
- To add 50 nukes, write: nuke 50
- To add 1 nuke, write: nuke 1


Code: tag "nation tag"
Description: Switch player to a different country.
Examples:
- To change to Lithuania, write: tag LIT
- To change to South Africa, write: tag SAF


Code: annex "nation tag"
Description: Annex another nation.
Examples:
- To annex Italy, write: annex ITA
- To annex Turkey, write: annex TUR


Code: add_party_popularity "ideology" "units"
Description: Add popularity for a specific ideology/party.
Examples:
- To add 5% popularity to a fascist party, write: add_party_popularity fascism 5
- To add 35% popularity to a communist party, write: add_party_popularity communism 35
- To add 80% popularity to a democratic party, write: add_party_popularity democratic 80
- To add 1% popularity to a non-aligned party, write: add_party_popularity neutrality 1


Code: set_ruling_party "ideology"
Description: Change ruling party to the desired ideology.
Examples:
- To change to a fascist party, write: set_ruling_party fascism
- To change to a communist party, write: set_ruling_party communism
- To change to a democratic party, write: set_ruling_party democratic
- To change to a non-aligned party, write: set_ruling_party neutrality
Country Tags - MODS & VANILLA
There is no need for a long list of country tags!

How to retrieve a country tag
  1. First open the console window
  2. In the console, type "tdebug" (without the " ")
  3. Using your mouse, hover over the country which tag you want to know
  4. Once you're done, type "tdebug" in the console again to turn it off

This works for ALL vanilla and mod nations!
State ID - MODS & VANILLA
How to retrieve a state ID
  1. First open the console window
  2. In the console, type "tdebug" (without the " ")
  3. Using your mouse, hover over the state which tag you want to know
  4. Once you're done, type "tdebug" in the console again to turn it off

This works for both vanilla game and modded games!
Changelog
15-01-2018
Just some QOL improvements as well as a big disclaimer

13-01-2018
Guide is back up thanks to a very nice moderator. Now get back to the game!

03-01-2018
Some nice guy reported the guide and it was taken down. F**k yes!

12-07-2017
Two new commands and a new section!
- add_party_popularity will add more % to the desired party. Thanks to @Hans for the tip!
- set_ruling_party will change ruling party to the desired one
- New section named "State/Party Ideologies to clarify the code names for the four ideologies

29-05-2017
- political.XX codes are no longer working. I have no idea why but they are from now on "unknown commands"

06-05-2017
Big update:
- The country tag list was obsolete and is now gone. Instead, use the easier way: tdebug
- Added a state id section, works like the new country tag method
- More examples!
- Rewrote large portions of the guide
- Added the advanced cheat "event political.XX"

30-01-2017
- Added a notice on the IC cheat. AI nations are also affected by this cheat

22-01-2017
- Removed all "Work-in-progress" sections. I do currently not have the motivation to work any further on country tags lists

08-12-2016
- Some people are experiencing issues with the civilwar cheat. Added a notice about ideology tag

05-12-2016
- Various small corrections
- Changed "add_equipment" to "ae" as it will avoid a lot of confusion

31-10-2016
- Added the setowner cheat code to the advanced section by request

27-10-2016
- Added more country tags for mods
- Minor corrections

26-10-2016
- Added a new section: Country/Nation Tags for Mod Nations. These tags work for cheating with mod nations. Download the mod, then cheat using these tags. The list will be extended as I have time to do so

24-10-2016
- Added the annex cheat to the advanced section by request

Hall of Fame - Extra helpful people
@Hans
@Rebels of Oppression
@Regular L0r3nz0
332 Comments
nedstark 22 Sep @ 1:39am 
its the button above tab
gınartaj 5 Sep @ 4:12am 
How do I use it ı have pressed every single button on my computer and nothing works do I need to download something :steamthumbsup:
Timothy McVeigh 10 May @ 8:57pm 
why are you not at the front kokhol?
MONCHACHI 19 Feb @ 5:31am 
Including Medang (MED) country nametag? If I playing HOIIV game, I can restore the old Medang Kingdom from the 8th century, which was known for the famous Borobudur Temple

If I'm interesting on Medang on Hearts of Iron IV, I can found its country from the web search
sproutman 16 Jan @ 12:22pm 
also good guide
sproutman 16 Jan @ 12:22pm 
winwars stopped working after 1.9.1 I think
Buttwheat 9 Jul, 2023 @ 9:20pm 
allowideas but keep in mind some might not stay if the prerec isn't there
Kritiksek 27 Jun, 2023 @ 2:56am 
Is there a command that allows hiring political advisors without doing any requirements?
LinkTheSilencer 4 May, 2023 @ 6:27pm 
instant_prepare works for me without -debug

huh
57z 2 May, 2022 @ 2:16am 
another command is "yesman" which is just ai_accept but shorter, national unity is now st for stabilty