Hearts of Iron IV

Hearts of Iron IV

370 ratings
Usefull console commands
By pacenco
Useful commands for Focuses, Research and more!


I think the guide its in his final level, if i'm gonna have something to add i'm gonna add, but now i don't have what to add.
3
4
8
2
2
2
   
Award
Favorite
Favorited
Unfavorite


Thank you!
Focus commands
  1. Focus.autocomplete - completes instant a focus
  2. Focus.NoChecks - Ignores focus requirments
  3. Focus.IgnorePrerequisites - Ignores focus prerequisites

Game affecting commands
  1. deleteallunits [country tag] - This command initiates an air combat in the specified location from your desired country, airbase and equipment.
  2. ale [ amount] - Adds all equipment resaerched
  3. add_equipment [amount] [equipment name] - This command can be used to add a specified amount of any equipment other than naval equipment. You can remove equipment by specifying a negative amount. Note: you may need to have researched certain equipment before using it, use either the 'research all' (researches all equipment) or 'research_on_icon_click' command if this is the case.
  4. ai_accept - This command enables or disables (toggles) whether or not AI will always accept diplomacy.
  5. allowdiplo(adiplo,nocb) - Allows to use all diplomatic actions for no matter the rules. (Can declare war without justification)
  6. ai_invasion - This command enables or disables (toggles) the AI for naval invasion.
  7. yesman - This command causes country AI to automatically accept any diplomatic offers, regardless of the case.
  8. setowner [country tag] [state id] - This command sets the owner of a specified state.
  9. add_Autonomy <target country tag> <number> - adds autonomy to puppet state
  10. annex [country tag] - This command starts an annex with the specified country tag (an annex claims their territory for your country).
  11. pp - Gives political power
  12. setcontroller [country tag] [province id] - Sets province controller
  13. Decision.NoChecks - Ignores decision requirements
  14. instant_prepare - Instantly prepares naval invasions
  15. it - Instantly trains divisions and ships
  16. nuke [number] - Adds nukes
  17. xp [amount] - Gives Army, navy and air experience to player
  18. st [amount] - Adds Stability
  19. ws [amount] - Adds war support
  20. allowtraits - Allows free assignment of general traits
  21. instantconstruction - Toggles instant construction cheat. (AI can use the command)
  22. debug_nuking - Allows to nuke every province without checking any conditions.
  23. fuel [amount] - Adds fuel



Reseaches
  1. research_on_icon_click - Research a technology when clicking on technology tree icon
  2. research [slot id or "all"] - Researches a technology from research slot or all.
  3. manpower [Amount] - Adds manpower to player NOTE! If you type in just "manpower" with no number it will give you 10 million men
  4. tag [Country tag] - Switch to another country
  5. You can see the country tag by using the debug command, if u point with cursor at the desired country you will see the tag.



Spy Agency
  1. force_operative_detection - Your operatives/spies will be detected
  2. prevent_operative_detection - Your operatives/spies won't be detected anymore
  3. agency.autocomplete - Instantly completes agency upgrades
  4. agency.instantslotunlock - Removes wait time between agent recruits



DLCs effects
La Resistance Effects

  1. create_intelligence_agency - Allows to create automatically an intelligence agency
  2. upgrade_intelligence_agency - Allows to unlock automatically an intelligence agency uprgrade
  3. kill_ideology_leader - Allows to kill a country leader from a precise ideology
  4. transfer_units_fraction - Allows to transfer a precise part of the army and the equipement of a country to any country.
  5. add_compliance - Adds compliance to a state.















Man the Guns Effects

  1. remove_decision - Allows to remove specified decision without running remove_effect.
  2. swap_ruler_traits - Similar to swap_ideas. Removes one trait and adds another.
  3. remove_exile_tag - Remove the exile tag on a army leader, making them no longer be considered
  4. exile leaders.
  5. add_legitimacy - Adds legitimacy to a government in exile.
  6. set_legitimacy - Sets the legitimacy of governments in exile.
  7. become_exiled_in - Makes a country a government in exile in a set country, with a set starting legitimacy.
  8. end_exile - Ends a government in exile.
    [*set_faction_name - Sets a faction name as the loc name.
  9. add_nuclear_bombs - Adds nuclear bomb to TAG's stockpile
  10. launch_nuke - Nukes a province.
  11. set_fuel_ratio - Set country's current fuel ratio relative to its capacity.
  12. add_mines - Add mines to a strategic region for the current country.
  13. give_resource_rights - Gives resource rights
  14. remove_resource_rights - Removes resource rights



Events

  1. debug_events - Start Counting events
  2. event [event id] [Target Country Tag] - Executes an event
    exemple: event political.3 for communist coup 6 for democratic 9 for fascist
  3. poll - Polls valid Events


  4. For more events you can check my other guide!

Fun commands
  1. set_country_flag <flag> - Defines a country flag.
  2. modify_country_flag <flag> - Modifies a country flag.
  3. set_rule <rule> - Toggles the special game rules for the current scope.
  4. remove_dynamic_modifier <modifier_string> - Removes a dynamic modifier to the current scope
  5. add_state_core - Adds a core for the current scope to the specified state.
  6. example - add_state_core = 345
  7. moveunit [<Unit ID>] [<Province ID>] Moves a unit to a province
  8. spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]
  9. release [<country tag>] Releases a country or releasable nation
  10. allowideas Allows the player to pick any idea even if normally unavailable
  11. instant_wargoal Will allow instant justificatiion of war goals on countries
  12. airealism Enable realistic AI

States

  1. remove_state_core - Removes the core of the current scope from the specified state.
    example - remove_state_core = 345

  2. set_capital - Makes the specified state the current scope's capital state.
    example - set_capital = 345

  3. remove_state_claim -Removes a claim of the current scope from the specified state.
    example - remove_state_claim = 345

  4. set_state_owner - Makes the current scope the owner of the specified state.
    example - set_state_owner = 345

  5. set_state_controller - Makes the current scope the controller of the specified state.
    example - set_state_controller = 345

  6. transfer_state - Makes the current scope the owner and controller of the specified state.
    example - transfer_state = 345

  7. set_province_controller - set_province_controller = 2999
    example - Changes the controller of the specified province to the current scope.
Debug
  1. debug_commands - Printing commandcount to message.log
  2. debug_events - Start Counting events
  3. debug_dumpevents - Dump Event data to game log
  4. debug_diploactions - Start Counting diplomatic actions
  5. debug_dumpdiploactions - Dump diplomatic action data to game log
  6. debug_assert - Toggles asserts on/off
  7. debug_smooth - Toggle framesmoothing
  8. debug_nomouse - Toggles mouse scrollwheel on/off
  9. debug_terrain - Toggles Terrain on/off
  10. debug_cities - Toggles Cities painting mode on/off
  11. debug_water - Toggles Water on/off
  12. debug_fronts - Toggles interpolated fronts debug
  13. debug_off_front_snap(dbg_fsnap) - Toggles offensive fronts snapping debug
  14. debug_borders -Toggles Borders on/off
  15. debug_trees - Toggles Trees on/off
  16. debug_rivers - Toggles Rivers on/off
  17. debug_postfx - Toggles PostFX on/off
  18. debug_sky - Toggles Sky on/off
  19. debug_bloom - Toggles Bloom on/off
  20. debug_tooltip - Toggles Tooltips on/off
  21. flagsoutput [path] - Creates texture atlas files from memory.
  22. cityreload - Reloads the cities
  23. debug_nogui - Toggles GUI on/off
  24. debug_volume [Volume Delta] - Modifies music volume
  25. debug_lockcamera - Toggles Camera locked on/off
  26. debug_lines - Toggles Debuglines
Others
  1. fow - Activates / Disables fog of war.
  2. savegame - This command forcefully saves the game.
  3. time - What time is it?
  4. nextsong - Changes the currently playing soundtrack.
  5. winwars - Gives max war score in all wars for the country (Command no longer exists as of patch 1.9.1)
  6. ai - Toggles AI on or off
  7. observe(spectator) - Switches to play no country at all, and no longer shows messages or pauses the game. However, it also interferes with AI performance and is not a good indication of what the AI will do if observe mode is not used.
  8. fullscreen - Toggles fullscreen
  9. night - Toggles night
  10. help [command name] - Print out all console commands or a specific command description.
  11. IP - Shows your IP
  12. nudge - Go to the nudge tool
  13. tag_color Test setting a country's color
  14. hdr Toggles hdr
  15. whitepeace(wp) [<country tags>] White peace with the specified countries.\
  16. effect [scripted_effect_name] Executes a scripted effect
Country tags
Country
Tag
Afghanistan
AFG
Albania
ALB
Angola
ANG
Argentina
ARG
Australia
AST
Belgium
BEL
Bhutan
BHU
Bolivia
BOL
Brazil
BRA
British Malaya
MAL
British Raj
RAJ
Bulgaria
BUL
Chile
CHL
China
CHI
Colombia
COL
Communist China
PRC
Costa Rica
COS
Cuba
CUB
Czechoslovakia
CZE
Denmark
DEN
Dominican Rep.
DOM
Dom. of Canada
CAN
Dutch East Indies
INS
Ecuador
ECU
El Salvador
ELS
Estonia
EST
Ethiopia
ETH
Finland
FIN
France
FRA
Germany
GER
Greece
GRE
Guangxi Clique
GXC
Guatemala
GUA
Haiti
HAI
Honduras
HON
Iceland
ICE
Iran
PER
Iraq
IRQ
Ireland
IRE
Italy
ITA
Japan
♥♥♥
Kingdom of Hungary
HUN
Kingdom of Romania
ROM
Latvia
LAT
Liberia
LIB
Luxembourg
LUX
Manchukuo
MAN
Mengkukuo
MEN
Mexico
MEX
Mongolia
MON
Nepal
NEP
Netherlands
HOL
New Zeeland
NZL
Nicaragua
NIC
Norway
NOR
Oman
OMA
Panama
PAN
Paraguay
PAR
Peru
PRU
Philippines
PHI
Poland
POL
Portugal
POR
Saudi Arabia
SAU
Shanxi
SHX
Siam
SIA
Sinkiang
SIK
South Africa
SAF
Soviet Union
SOV
Spain (Republican)
SPR
Spain (Nationalist)
D01
Sweden
SWE
Switzerland
SWI
Tannu Tuva
TAN
Tibet
TIB
Turkey
TUR
United Kingdom
ENG
United States
USA
Uruguay
URG
Venezuela
VEN
Xibei San Ma
XSM
Yemen
YEM
Yugoslavia
YUG
Yunnan
YUN
59 Comments
TheJaimesTV Jul 12 @ 5:32pm 
U can also use tdebug to show the IDs of the provinces and states
Alpha Jun 20 @ 8:05pm 
Yeah its *set_ruling_party [ideology]* there abbreviated I cant tell you off the top of my head what they are though
B-36 Enjoyer Jun 20 @ 6:08pm 
Is there one for changing country ideology?
pacenco  [author] Oct 15, 2024 @ 12:03pm 
prob an update removed the command i changed it
car battery Oct 14, 2024 @ 12:10pm 
civilwar doesnt work
pacenco  [author] Aug 5, 2024 @ 5:32pm 
i just tested the commands and it works for me idk why you have that problem tho
Christopher Aug 5, 2024 @ 4:26am 
Using any focus command instantly crashes the game
FDSF May 28, 2024 @ 3:30pm 
@vanguard manpower [amount]
Katherine Klein May 28, 2024 @ 12:51pm 
is there a command to add manpower?
pacenco  [author] Apr 20, 2024 @ 12:06pm 
i couldnt find out how and i dont know either