To make it work with new, generic created Admirals:
1. Open with a text editor and change "save_as_binary=yes" to "save_as_binary=no".
2. Start game, load savegame and save as new file, exit game.
3. Open , open the newly created savegame file, search (CTRL-F) for the name of your generic created Admiral
4. Go a few lines below to and add the following code block behind it
5. Make sure to save the file with encoding format.
6. Start game, load save game, use gain_xp command, enjoy.
(Optional turn back on binarization in settings.txt)
To add modified equipment, you have to address it by given name. Example: You create a variant of 'Matilda LP'-tank with better Armor and Main Gun and name it 'Matilda LP Mk. IV'. Now use 'add_equipment 1000 Matilda LP Mk. IV'.
Now use 'add_latest_equipment 1000 Matilda LP Mk. IV'.
To add task capacity to only a specific MIO, you will need to find the MIO id in Then you use addTaskCapacity [<MIO id>] [number]
To add trait points to only a specific MIO, you will need to find the MIO id in Then you use addSize [<MIO id>] [number]
Other Valid ideologies "communism" "democratic" "neutrality"
add_intel [<Target Country tag>] [civilian,army,navy,airforce]=[number]
ex (sets army intel Germany has against USA to 20%): add_intel GER USA army=20
ex (sets airforce and civilian intel Player has against Japan to 90% and 76% respectively): add_intel JAP airforce=90 civilian=76
ex: acclimization hot_climate 20 that it resets the opposite climate type to 0%
Several other commands previously mentioned, such as event , are useful in modding too.
Command | Effect | Example/Comment |
---|---|---|
guibounds(gui) | Toggles the GUI bounds debug, allowing to test for different window sizes easier. | Also grants the name of the sprite and the interface element the player is hovering on, allowing to find the location of the image by file at the same time. |
set_var [<variable>] [<value>] | Changes the value of a variable to the specified value. | |
get_var [<variable>] | Shows the value of a variable in the console | |
list_vars | Lists the variables set in the selected scope and their values. | |
set_country_flag [<Country Flag>] | Adds a country flag to currently played nation. | Does not work if you put another nations tag in the command such as "set_country_flag flag AUS", even if it says in console that it does. |
set_global_flag [<Global Flag>] | Adds a global flag. | |
list_flags | Lists currently active flags in the console windows. | Context senstive if nothing (global_flag), country (country_flag) or state (state_flag) is selected when entering this command. |
trigger [<scripted_trigger_name>] | Checks if a scripted trigger is true or not. | |
effect (eval_effect) (e) [<scripted_effect_name>] | Executes a , within the currently selected scope. | Example: on a state will execute that effect on the state. |
ai [country tag...] | Toggles the AI on or off | Without parameters toggles the AI for all countries. With parameters, toggles exceptions for those countries from the general rule. Can be used to confirm if a crash is AI-related. |
aiview | Enable AI debug info | |
human_ai | Makes the AI control the country currently led by the player while the player also remains in control. | AI will also create logs within /Hearts of Iron IV/logs/scripted_ai.log in the . |
set_cosmetic_tag [<country tag>] [<cosmetic tag>] | changes the name and flag of the country | set_cosmetic_tag USA SOV |
reload [<type>] | Reloads files of a given type. Also accepts individual files within the /Hearts of Iron IV/interface/ folder. Equivalent to the effect done automatically when saving over a file with debug mode turned on via launch options. | |
reloadoob [<Target Country Tag>] | Reloads orders of battle. | |
reloadinterface | Reloads the entire interface | |
reloadtechnologies | Reloads the technology database | |
updateequipments | Updates the equipment database | |
updatesubunits | Updates the subunit database | |
update_loc [localization tag] | Updates the localization tag file | |
error | Opens the error log file. | If there are special characters in the folder path, this won't work. Equivalent to pressing on the error dog if enabling debug mode in launch options. |
imgui | Controls ImGui UIs. Use to list the available subcommands. These UIs cover a wide variety of useful modding tools, such as script profiling, AI debugging, and listing characters. | |
goto_province [province id] | Moves the camera position to the specified province. | |
goto_state [state id] | Moves the camera position to the specified state. |
Command | Effect | Example/Comment |
---|---|---|
ShowTechBonus | Unknown what it does, however with the name we can make a guess it has to do something with tech bonuses. Filed as developer only. | |
normals | Unknown what it does. Filed as developer only. | |
rendertype | Reports what render backend is used | |
tweakergui | Spawns a tweaker GUI | |
time | What time is it? | |
reloadfx [Arguments: map/mapname/postfx or *.fx filename] | Reloads the shader | |
particle_editor | Spawns a particle editor | |
analyzetheatres(anth) | Analyze theatres for errors. | |
massconquer(massc) | Mass conquer tool. Requires direct province names. Filed under developer only. | |
aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>] | Spawns an air combat in desired location. | |
fronts | Toggle visibility of the foreign fronts | |
ai_front_dump (aifrontdump) | Dump AI front data to log file, needs to have a unit selected | |
traderoutes | Toggle visibility of trade routes | |
debug_tactics | Toggle visibility of debug tooltip for tactics | |
reloadsupply(relsup) | Reinitializes the supply systems. | |
deltat [<speed factor>] | control animation speeds | |
building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>] | Changes specified building health | |
nomapicons | Toggles map icons. | |
nopausetext | Toggles the pausebanner for nicer screenshots. | |
nextsong | Changes the currently playing soundtrack. | |
combatsound | How often does the combat view give a random sound? 0-50 | |
morehumans(humans) [num] | Adds more humans | |
window(wnd) [Arguments: open/close] [window gui name] | Opens or closes the specified window | |
poll | Polls valid Events | |
pause_in_hours | Pauses the game after X hours have passed after command is called | |
winwars | Gives max war score in all wars for the country | Command no longer exists as of patch 1.9.1 |
testevent [<Event ID>] [<Character ID>] | Tests an event without triggering it | |
resign | Resign from the game | |
add_interest [<Country tag>] | Add specified country tag to your interest | |
remove_interest [<Country tag>] | Removes specified country tag from your interest | |
add_diplo | Adds diplomatic entroute | |
PrintSynchStuff | Prints random count and seed | |
SetRandomCount | Sets the random count to 0 or arg | |
ai_invasion | Toggles AI AI naval invasions | |
ai_pp_log | Prints AI use of PP to log | |
ai_idea_desire_log | Prints AI desire for ideas to log. For current country only | |
ai_force_template | Force the AI to only spend army XP on template design | |
ai_force_equipment | Force the AI to only spend army XP on equipment design | |
ai_front_id | Get the address of selected group's front debug ID | |
fow(debug_fow) [Province ID] | Turns off fog of war, only within a province if specified. | |
collision(debug_collision) | Toggles debug display of normals/bounding boxes/collision | |
savegame | Creates a savefile. | |
savecheck | Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same. | |
IP | Shows your IP | |
requestgamestate | Requests the gamestate from host | |
nudge | Go to the nudge tool | |
mapmode [Mapmode type (int)] | Change mapmode. | |
fullscreen | Toggles fullscreen | |
prices | Price Info | |
remove_core [<State ID>] [<Country Tag>] | Remove core. Note:Does not Work | |
debug_zoom | Zooms in the game | |
debug_types | Will print the data type for all dynamic reference objects. Can only be used if using RTTI. | |
debug_show_event_ID | Shows event ID | |
debug_commands | Printing commandcount to message.log | |
debug_events | Start Counting events | |
debug_dumpevents | Dump Event data to game log | |
debug_diploactions | Start Counting diplomatic actions | |
debug_dumpdiploactions | Dump diplomatic action data to game log | |
debug_assert | Toggles asserts on/off | |
debug_nomouse | Toggles mouse scrollwheel on/off | |
debug_terrain | Toggles Terrain on/off | |
debug_cities | Toggles Cities painting mode on/off | |
debug_water | Toggles Water on/off | |
debug_fronts | Toggles interpolated fronts debug | |
debug_off_front_snap(dbg_fsnap) | Toggles offensive fronts snapping debug | |
debug_borders | Toggles Borders on/off | |
debug_trees | Toggles Trees on/off | |
debug_rivers | Toggles Rivers on/off | |
debug_postfx | Toggles PostFX on/off | |
debug_sky | Toggles Sky on/off | |
debug_bloom | Toggles Bloom on/off | |
debug_tooltip | Toggles Tooltips on/off | |
flagsoutput [<path>] | Creates texture atlas files from memory. | |
cityreload | Reloads the cities | |
version | Show current game version | |
debug_nogui | Toggles GUI on/off | |
debug_volume [<Volume Delta>] | Modifies music volume | |
debug_lockcamera | Toggles Camera locked on/off | |
debug_lines | Toggles Debuglines | |
debug_entities | Toggles Debug entities | |
debug_info | Toggles Debug info | |
debug_particle | Toggles Particles Debug info | |
debug_ai_budget [CountryTag] | Show ai budget data | |
debug_textures | Writes Texture info to application debug log | |
debug_texture | draws textures like bloom | |
debug_wireframe | Toggles forced wireframe on/off | |
debug_achievements_clear | Clear all achievements and user stats | only for developer |
moveunit [<Unit ID>] [<Province ID>] | Moves a unit to a province | |
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] | Spawns an actor with an optional animation | |
cameraclamp | Toggles the camera clamping | |
provtooltipdebug(tdebug) | Toggles the debug info in province tooltip | |
reloadweather [<randomseed>] | Reload and regenerate weather | |
weather | Toggle weather simulation | |
debug_air_vs_land(dbg_cas) | Toggle debug mode for air vs land combat. | |
mapnames | Toggle map names | |
gbreload | Reloads gradient borders | only for developers |
gbpaint [layer] [channel] | Toggles gradient border painting | |
profilelog | Prints out the profiling informations into time.log | |
run | Runs the specified file with list of commands | |
oos | Out of Synch | |
trigger_docs(effect_docs, scripting_docs, docs) | Print docs for triggers, effects, and variables | Documentation for triggers/effects printed to game.log file |
threat [Threat amount] | Adds or show threat level of the current tag, which is the world tension generated by the tag. | Positive values will add to the world tension generated by the active tag, while negative values will subtract from the world tension generated by the active tag, with corresponding entries in the world tension history log. By tag-switching, it is possible to raise or lower the world tension generated by any particular country. If one does "threat 999999999" it will reset the world tension to 0. |
3dstats | Toggles 3D Stats | |
hdr | Toggles hdr | |
hdr_debug | Toggles hdr debugging | |
srgb | Toggles sRGB | |
bloom | Toggles bloom | |
PostEffectVolumes.Default [posteffect_values name] | Toggles default posteffect values | |
night | Toggles night | *as of 1.01 this does not seem to work (filed under developer-only command) This command can be emulated via the day/night loop option at the bottom right toolbar (shortcut key 'N') |
filewatcher | Toggles filewatcher | |
createlean | Create LEAN textures | |
helplog | Print out all console commands to game.log file. | |
helphelp | Double Rainbow help. | |
hsv | Converts RGB to HSV | |
tag_color | Test setting a country's color | |
browser [url] | Show browser window | |
browser_base_url [url] | Set browser base url | |
airealism | Enable realistic AI | An easter egg making the AI smacktalk in chats. Useless since unactivable in multiplayer and chat unactivable in singleplayer. |
instant_wargoal | Will allow instant justificatiion of war goals on countries | |
allowideas | Allows the player to pick any idea even if normally unavailable | This overrides the and triggers of ideas, but not the trigger |
release [<country tag>] | Releases a country or releasable nation | release slv releases Slovenia |
InternationalMarket.AddSubsidyForTags [<economic capacity>] [<equipment>] [<country tag>] | Adds a subsidy for the player to buy off from a specified country. | ex (Adds a subsidy for the player to be able to help buy German sold light tanks for up to 5k EC): InternationalMarket.AddSubsidyForTags 5000 light_tank_chassis GER |
random_seed | Randomises the current seed the game is using | The AI uses this seed to decide all their focuses and decisions. You can use this to generate a more favourable outcome to any ai action you dislike (e.g. you want to ally with country) |
References [ edit | edit source ].
Documentation | • • • • • • • • ( , , , , ) |
Scripting | • • • • • ( ) • • • • • • • • • • • • • • • • |
Map | • • • |
Graphical | • • • • • |
Cosmetic | • • • |
Other | • • • • |
A place to share content, ask questions and/or talk about the grand strategy game Hearts of Iron IV by Paradox Development Studio.
I want to increase research speed with the console. I know about the instant research command. I don't want that. Is there a command that lets me increase research speed by 50% for example?
By continuing, you agree to our User Agreement and acknowledge that you understand the Privacy Policy .
You’ve set up two-factor authentication for this account.
Create your username and password.
Reddit is anonymous, so your username is what you’ll go by here. Choose wisely—because once you get a name, you can’t change it.
Enter your email address or username and we’ll send you a link to reset your password
An email with a link to reset your password was sent to the email address associated with your account
Have you ever had the feelings, that things aren’t going your way?
Regarding the Hearts of iron 4 gameplay, of course. Just imagine the following scenario:
A couple of days ago, I was playing as Portugal and everything was going perfectly. I have pupated Japan and China, defeated Britain and was fighting a successful war against the United States of America. I had the historical AI off, because non-historical games are more fun. I was attempting to complete the Macau achievement, which is one of the hardest in the game after the latest DLC release – La Resistance.
In Spain nothing much was happening, except for the Falangists being victorious in the Civil war and later reforming the Spanish Empire. Because of the fact, that I fought various of my wars alongside the Axis countries, Germany attempted to invite me in their faction, but I always ignored the invitations. Suddenly, in the middle of a fierce offensive, attempted by the brave Portuguese infantry in Texas, the Spanish Empire declared war on me. Out of nowhere and without any specific reason! It was just their stupid focus, that gave them a war goal against me and the AI immediately used it. One second later, I found myself fighting the USA and the entire Axis powers. It is safe to say that I lost the game, because my small army in mainland Portugal could not defend against nearly 100 fully equipped Axis divisions.
When you experience moments like this, it pops in your mind the idea of how to “travel” back in time and prevent the events, leading to your ultimate doom, from happening. Well, unfortunately, travelling back in time is to this day unachievable, but a little cheating will do the trick. And if it happens, that your game is not on ironman mode, then you would certainly be satisfied, when with just a couple with keyboard clicks, you could turn the table and ultimately fix this unfortunate turn of events.
Let’s move to the first goal of this article. Below these lines is a list of all the possible commands, that you can use in every Hearts of iron 4 game, that is on non-ironman mode.
The console, where you type the commands, can be opened by pressing the ` key (usually located under ESC). If your keyboard layout doesn’t have that key, other hotkeys to open the console are SHIFT + 2 and SHIFT + 3.
(how to write the command) | (what does this command do in HOI 4) | |
· gain_xp | gain_xp [amount] | This command can be used to add experience to a Leader/General. The specified amount of experience is added to the Leader/General you currently have selected. |
· cp | cp [amount] | This command will add command power (max. 100%). |
· st | st [amount] | This command will add stability (max. 100%). You can remove stability by specifying a negative number. |
· ws | ws [amount] | This command will add war support (max. 100%). Specify a negative number to remove war support. |
· allowtraits | allowtraits | This command removes restrictions on general trait assignment. Executing this command will allow you to freely assign general traits to commanders, etc. |
· add_equipment | 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. |
· add_latest_equipment | add_latest_equipment [amount] | This command adds the specified amount of equipment to each and every piece of equipment you have unlocked/fully researched (so, every equipment type in your logistics menu). |
· whitepeace | whitepeace [country tag] [country tag] | This command instantly makes ‘white peace’ (things return to the way exactly they were before a war started) between the specified countries (specified by their country tag). |
· teleport | teleport [province id] | This command can be used to either activate the teleportation tool (if no arguments provided), or instantly teleport any selected ships or armies to the province with the specified ID. |
· allowdiplo | allowdiplo | This command allows for the use of any diplomatic action (e.g. declaring war) without justification. |
· debug_nuking | debug_nuking | After executing this command, nuking in any province is permitted, regardless of conditions. |
· instantconstruction | instantconstruction | This command enables or disables (toggles) the instant construction cheat, making all construction happen instantly (no longer queues up). |
· event | event [event id] [country tag] | This command will start the specified event in the specified country. |
· research | research [slot id / ‘all’] | This command can be used to research all equipment, or equipment in a specific technology slot. |
· research_on_icon_click | research_on_icon_click | This command will instantly research any technology when its icon is clicked in the technology tree. This command is also known as the ‘instant research’ cheat. |
· annex | annex [country tag / ‘all’] | This command starts an annex with the specified country tag (an annex claims their territory for your country). |
· winwars | winwars | This command will give your country the maximum war score for all wars it is currently engaged in. |
· manpower | manpower [amount] | This command adds the specific amount of man power to your country. |
· add_opinion | add_opinion [source country tag] [target country tag] | This command adds an opinion from the specified country tag to another country. |
· tag | tag [country tag] | This command switches your country to the specified country. ‘tag ENG’ would make you play as Great Britain, for example. |
· observe | observe | This command enters you into ‘observe’ mode, in which you are set to play no country at all – meaning the entire game plays on auto-pilot. Messages do not show, and the game is not automatically paused. |
· tdebug | tdebug | This command enables or disables (toggles) debug mode. In debug mode, IDs for things like states, equipment, provinces, etc are shown when you hover over them which are very useful as they are used in console commands. |
· spawn | spawn [unit name/id] [province id] [amount] | NOTE: In order to use this command, you must add ‘-debug’ to your HOI4 launch options – it will not work otherwise. This command can be used to spawn a specified amount of a unit in a province. |
· occupationpaint | occupationpaint [country tag] | If no country tag is specified, this command toggles (enables and disables) occupation painting. If the country tag argument is provided, your country will occupy all land that the specified country owns (but not land that they only occupy). |
· setowner | setowner [country tag] [state id] | This command sets the owner of a specified state. |
· setcontroller | setcontroller [country tag] [province id] | This command sets the controller of a specified province. |
· xp | xp [amount] | This command adds the specified amount of experience (to all experiences: army XP, naval XP and air XP). |
· pp | pp [amount] | This command adds the specified amount of political power to your country. |
· civilwar | civilwar [ideology] [country tag] | This command starts a civil war within a country, with the specified ideology. Possible ideologies: ‘fascism’, ‘democratic’, ‘neutrality’ and ‘communism’. |
· add_party_popularity | add_party_popularity [ideology group] [amount] | This command adds the specified amount of party popularity to the specified ideology group. Ideology groups are: ‘f’ (fascism), ‘d’ (democratic), ‘n’ (neutrality) and ‘c’ (communism). |
· set_ruling_party | set_ruling_party [ideology group] | This command sets the specified ideology group as the ruling party. Ideology groups are: ‘f’ (fascism), ‘d’ (democratic), ‘n’ (neutrality) and ‘c’ (communism). Note that if you wish to change the ruling party of another country, you will first need to switch to them with the tag command. |
· help | help [command] | If executed with no arguments (just ‘help’), this command will print a list of commands. If executed with a command as an argument, it will print help for the specified command. |
· Focus.AutoComplete | focus.autocomplete | This command allows for instant completion of national focuses. Note that this command will affect the game’s AI. |
· Focus.NoChecks | focus.nochecks | This command allows for the ignoring of focus requirements. |
· Focus.IgnorePrerequisites | focus.ignoreprerequisites | This command allows for the ignoring of focus prerequisites. |
· Decision.NoChecks | decision.nochecks | This command allows for the ignoring of decision requirements. |
· instant_prepare | instant_prepare | NOTE: In order to use this command, you must add ‘-debug’ to your HOI4 launch options – it will not work otherwise. Executing this command will cause naval invasions to skip preparation time. |
· nu | nu [amount] | NOTE: This is a Pre-1.5 command. It will not work in later versions. This command adds the specified amount of naval utility to your naval utility count. |
· nuke | nuke [amount] | This command adds the specified amount of nukes to your current country. |
· yesman | yesman | This command causes country AI to automatically accept any diplomatic offers, regardless of the case. |
· rendertype | rendertype | This command prints the render type (backend) that is currently being used for your client. |
· tweakergui | tweakergui | This command opens a tweaker GUI. |
· add_ideas | add_ideas [idea name] | This command adds the idea with the specified ID/name to your current country. |
· reload | reload [file name] | This command can be used to reload a file without opening and closing your game. Useful if you modify a file to change a setting and don’t want to completely restart your game. Common files: ‘loc’ (localisation files), ‘focus’ (focuses) and ‘landcombat.gui’ (land combat interface). |
· time | time | This command prints the current time. |
· reloadfx | reloadfx [map / .fx file] | This command (without any arguments) reloads the game shaders. You can optionally specify either a mapname, postfx or filename (ending in .fx). |
· particle_editor | particle_editor | This command opens the particle editor GUI. |
· testtool | testtool | This command opens the testing tool. |
· analyzetheatres | analyzetheatres | Executing this command will check all threatres in the game for errors. |
· massconquer | massconquer | This command opens the mass conquer tool. |
· deleteallunits | deleteallunits [country tag] | This command will delete all units (armies and fleets) of the specified country tag. |
· aircombat | aircombat [scenario] [result] [province id] [airbase state id] [airbase state id] [equipment] [equipment] [equipment creator] [equipment creator] | This command initiates an air combat in the specified location from your desired country, airbase and equipment. |
· theatersrebuild | theatersrebuild | This command rebuilds all existing theatres. |
· fronts | fronts | This command enables or disables (toggles) the visibility of foreign fronts. |
· aidump | aidump | This command dumps AI data from your currently selected unit to a log file (for e.g. debugging purposes). |
· traderoutes | traderoutes | This command enables or disables (toggles) the visibility of trade routes. |
· debug_tactics | debug_tactics | This command enables or disables (toggles) the visibility of the tactics debug tooltip. |
· reloadsupply | reloadsupply | This command reloads all supply systems.. |
· deltat | deltat [speed multiplier] | This command will change the speed of animations in the game. The number specified is a multiplier – 2 would double the speed, 0.5 would half the speed. |
· building_health | building_health [building type] [state id / province id] [level] [amount] | This command can be used to modify the health of an existing building. |
· nomapicons | nomapicons | This command enables or disables (toggles) the visibility of icons in the map. |
· nopausetext | nopausetext | This command enables or disables (toggles) the visibility of the pause menu (useful for screenshots). |
· nextsong | nextsong | This command skips to the next soundtrack in the in-game music playlist. |
· combatsound | combatsound [frequency] | This command can be used to modify the frequency of a random sound being emitted from the combat view. The number given should be between 1 and 50. |
· morehumans | morehumans [amount] | This command will the specified amount humans to your current country (or remove if a negative number is specified). |
· window | window [open / close] [gui name] | This command opens (‘open’) or closes (‘close’) the GUI with the specified name. |
· reloadinterface | reloadinterface | This command reloads the game interface. |
· reloadtechnologies | reloadtechnologies | This command reloads all technologies. |
· updateequipments | updateequipments | This command forcefully reloads equipment-related files (/Hearts of Iron IV/common/units/equipment/). |
· updatesubunits | updatesubunits | This command forcefully reloads unit-related files (/Hearts of Iron IV/common/units/). |
· reloadoob | reloadoob [country tag] | This command reloads the OOB (order of battle) of the country with the specified tag. |
· update_loc | update_loc [localisation key] | This command reloads the specified localisation key. |
· poll | poll | This command polls valid events. |
· pause_in_hours | pause_in_hours [hours] | This command pauses the game after the specified amount of time. Useful if you want to leave the game running, but not for too long. |
· add_autonomy | add_autonomy [country tag] [amount] | This command adds or subtracts from a the specified country’s autonomy level. |
· testevent | testevent [event id] [character id] | This command tests the specified ID without triggering it. |
· resign | resign | This command, as you might have guessed, causes you to resign from your current position. |
· add_interest | add_interest [country tag] | This command adds the country with the specified tag to your interest. |
· remove_interest | remove_interest [country tag] | This command removes the country with the specified tag from your interest. |
· add_diplo | add_diplo | This command adds diplomatic enroute for your current country. |
· PrintSynchStuff | printsynchstuff | This command prints the current seed of your game. |
· SetRandomCount | setrandomcount [count] | This command, if executed without any arguments (just ‘SetRandomCount’), will set the random count to 0. If a number is provided as an argument, the random count will be set to this. |
· ai | ai | This command enables or disables (toggles) AI. |
· human_ai | human_ai | This command enables or disables (toggles) AI for human countries. |
· ai_invasion | ai_invasion | This command enables or disables (toggles) the AI for naval invasion. |
· ai_accept | ai_accept | This command enables or disables (toggles) whether or not AI will always accept diplomacy. |
· fow | fow [province id] | This command will toggle (enable or disable) FOW (fog of war) either in general, or in the province of the specified ID. To clarify, if this command is executed without any arguments (‘fow’), it will turn off fog of war completely. If a province ID is specified as an argument, fow will only be toggled for that province. |
· collision | collision | This command enables or disables (toggles) the collision debug GUI. |
· savegame | savegame | This command forcefully saves the game. |
· savecheck | savecheck | This command can be used to check that saving is functioning correctly. It will make a save file named ‘Test_01’, load it, and then save that again as ‘Test_02’. The two files should be the same (in size, etc), if not, there is likely a problem with saving. |
· IP | ip | This command prints your IP to the console. |
· requestgamestate | requestgamestate | This command prints the gamestate. |
· nudge | nudge | This command opens the nuge tool. |
· mapmode | mapmode [mapmode id] | This command changes the map mode to the specified type. Map mode IDs: 1 (Default), 2 (Naval), 3 (Air), 4 (Supply), 5 (State), 6 (Resistance), 7 (Resource), 8 (Diplomacy), 9 (Faction). |
· fullscreen | fullscreen | This command enables or disables (toggles) fullscreen mode. |
· prices | prices | This command prints price info to game.log. |
· add_core | add_core [state id] [country tag] | This command adds the specified state as a ‘core’ of the specified country. A ‘core’ is a state that’s considered to be a rightful part of a country. |
· remove_core | remove_core [state id] [country tag] | NOTE: This command has been reported as broken – if it isn’t working for you, it’s due to a fault in the game, not your own! This command removes the specified state as a ‘core’ of the specified country. A ‘core’ is a state that’s considered to be a rightful part of a country. |
· debug_zoom | debug_zoom | This command will cause the game to zoom in. |
· debug_types | debug_types | This command is an advanced debug tool, it only works if running RTTI. This will print the data type for all dynamic reference objects to console. |
· debug_show_event_ID | debug_show_event_id | This command prints the current event ID. |
· debug_commands | debug_commands | This command prints the current ‘commandcount’ to the message.log file. |
· debug_events | debug_events | This command will initiate event counting, print data collected from this with the ‘debug_dumpevents’ command. |
· debug_dumpevents | debug_dumpevents | This command will print data collected since the ‘debug_events’ command was last executed. |
· debug_diploactions | debug_diploactions | This command will initiate diplomatic action logging, print data collected from this with the ‘debug_dumpdiploactions’ command. |
· debug_dumpdiploactions | debug_dumpdiploactions | This command will print data collected since the ‘debug_dumpdiploactions’ command was last executed. |
· debug_assert | debug_assert | This command enables or disables (toggles) asserts. |
· debug_smooth | debug_smooth | This command enables or disables (toggles) frame smoothing. |
· debug_nomouse | debug_nomouse | This command enables or disables (toggles) the scroll wheel’s (mouse) functionality. |
· debug_terrain | debug_terrain | This command enables or disables (toggles) terrain. |
· debug_cities | debug_cities | This command enables or disables (toggles) cities painting mode. |
· debug_water | debug_water | This command enables or disables (toggles) water. |
· debug_fronts | debug_fronts | This command enables or disables (toggles) the interpolated fronts debug screen. |
· debug_off_front_snap | debug_off_front_snap | This command enables or disables (toggles) the offensive fronts snapping debug screen. |
· debug_borders | debug_borders | This command enables or disables (toggles) borders. |
· debug_trees | debug_trees | This command enables or disables (toggles) trees. |
· debug_rivers | debug_rivers | This command enables or disables (toggles) rivers. |
· debug_postfx | debug_postfx | This command enables or disables (toggles) PostFX. |
· debug_sky | debug_sky | This command enables or disables (toggles) the sky. |
· debug_tooltip | debug_tooltip | This command enables or disables (toggles) tooltips. |
· flagsoutput | flagsoutput [path] | This command will generate and save a texture atlas file to the specified path. |
· cityreload | cityreload | This command reloads cities. |
· error | error | This command will print errors from the log file. |
· version | version | This command prints the current version of the game to the console. |
· debug_nogui | debug_nogui | This command enables or disables (toggles) the game GUI. |
· debug_volume | debug_volume [volume] | This command can be used to adjust the volume of the game. |
· debug_lockcamera | debug_lockcamera | This command enables or disables (toggles) the camera lock. |
· debug_lines | debug_lines | This command enables or disables (toggles) debug lines. |
· debug_entities | debug_entities | This command enables or disables (toggles) entities. |
· debug_info | debug_info | This command enables or disables (toggles) the debug info screen. |
· debug_particle | debug_particle | This command enables or disables (toggles) particles. |
· debug_ai_budget | debug_ai_budget [country tag] | This command prints AI budget information to the console. |
· debug_textures | debug_textures | This command can be used to print texture debug information to the game log (not console. |
· debug_texture | debug_texture | This command enables or disables (toggles) textures like bloom. |
· debug_wireframe | debug_wireframe | This command enables or disables (toggles) the game’s forced wireframe. |
· debug_achievements_clear | debug_achievements_clear | This command will clear all of your achievements and stats (irreversible). |
· moveunit | moveunit [unit id] [province id] | This command moves the specified unit to the specified province. |
· spawnactor | spawnactor [name] [province id] [animation] | This command spawns an actor. If an animation specified as an argument (optional), the character will spawn with that animation. |
· guibounds | guibounds | This command enables or disables (toggles) the bounds debug GUI. |
· cameraclamp | cameraclamp | This command enables or disables (toggles) the camera clamp. |
· provtooltipdebug | provtooltipdebug | This command enables or disables (toggles) province tooltip debug info. The debug info includes things like province ID, state ID, etc when you hover over a province on the map. |
· reloadweather | reloadweather [seed] | This command reloads weather. |
· weather | weather | This command enables or disables (toggles) weather – if this feature is off, weather will be disabled. |
· debug_air_vs_land | debug_air_vs_land | This command enables or disables (toggles) debug mode for air vs land combat. |
· mapnames | mapnames | This command enables or disables (toggles) map names. |
· profilelog | profilelog | This command will output profiling data/information to ‘time.log’. |
· run | run [file name] | This command runs a list of commands in a specified file. |
· oos | oos | This command makes the client go out of sync. |
· debug_crash | debug_crash | This command is a debug tool, when executed it will debug client crashes. |
· sleep | sleep [duration] | This command will pause the game for the specified amount of time (seconds). |
· goto_province | goto_province [province id] | This command moves the center of your camera to the specified province. |
· goto_state | goto_state [state id] | This command moves the center of your camera to the specified state. |
· trigger_docs | trigger_docs | This command |
· 3dstats | 3dstats | This command enables or disables (toggles) 3D stats. |
· hdr | hdr | This command enables or disables (toggles) high-dynamic-range imaging. |
· hdr_debug | hdr_debug | This command enables or disables (toggles) high-dynamic-range imaging debugging. |
· srgb | srgb | This command enables or disables (toggles) color debugging. |
· bloom | bloom | This command enables or disables (toggles) bloom. |
· PostEffectVolumes.Default | posteffectvolumes.default [post effect] | This command can be used to toggle a specific post effect, relative to the specified name. |
· night | night | This command enables or disables (toggles) night. |
· filewatcher | filewatcher | This command enables or disables (toggles) the filewatcher. |
· createlean | createlean | This command generates LEAN textures. |
· helplog | helplog | After executing this command, a list of all commands will be outputted to the game.log file. |
· hsv | hsv | This command converts HSV to RGB. |
· tag_color | tag_color [rgb] | This command can be used to set the tag color of your current country. |
· browser | browser [url] | This command opens the browser window and loads the specified URL. |
· browser_base_url | browser_base_url [url] | This command sets the URL of the browser (loads a page). |
· aiview | aiview | This command enables or disables (toggles) debug info for the AI. |
· airealism | airealism | This command enables or disables (toggles) realistic AI for the game. |
· instant_wargoal | instant_wargoal | This command allows for the application of any war goal without justification. |
· set_country_flag | set_country_flag [country tag] | This command sets the flag of the specified country as your current nation’s flag. |
· set_cosmetic_tag | set_cosmetic_tag [country tag] [country tag] | This command will change the name and flag of the specified country to that of another country. |
Now that we are done with all the console commands in the game, I am going to discuss something, that is not that widely discussed among the Hearts of iron 4 community. I am talking about the four secret events.
There are four game events, that are so incredibly rare, that are considered secret and it is almost impossible for you, while playing a random country, to see them take place. The AI almost never creates those scenarios, since a lot of requirements are to be meet, in order for the events to fire.
The first event is between France and Britain. You see, when in 1940 France is about to capitulate, there is a certain event, that fires, that gives the French AI (or player) three options. To cooperate with the Germans, to set up resistance state in Africa or to merge with Britain. If the AI chooses the third option, then Britain gets the event, that France proposes a union. If the UK accepts, then the Franco-British Union is proclaimed with the capital city being London and all core states of France becoming also UK’s core states. All of the remaining French forces, including the air force and the fleet become controlled by Britain. I, personally, have seen this Union pop up twice in my games, but it is incredibly rare. The other three events are even rarer, though.
Moving on to the next event, it is also about the UK. There are certain things to be done, in order for the proper events to fire, but eventually if everything is done correctly, you might get the young Queen Elizabeth ll rule the state. Incredible as it sounds, it is possible.
Firstly, there are several ways to do this, but ultimately the best way is to change your ideology from democratic to non-aligned. While doing so, you will need to marry the future king Edward Vlll and Wallis Simpson and right before the start of the wedding preparations, you will get an event to select the type of marriage and you need to select the morganatic one. When you compromise on a morganatic marriage, you still get to marry Edward and Wallis, but without the ability for their children to inherit the throne. That is when things get interesting.
Secondly, you should be at war and I will explain why in a minute. After the coronation of Edward as the new king, being in a war is vital, because you need the Greater London Area to be strategically bombed by the enemy air force. That is very important, because during the bombing period, a bomb will strike the Buckingham Palace and ultimately – kill the royal couple. You will get an exclusive event for that. Next, King George will inherit the throne, but then because of smoking and too much stress – he will also die. After that there is no one left to become the new British monarch, except for the daughter of George VI, who is in fact – Elizabeth II. It is really cool, that you also get the three royal corgis (Dookie, Jane and Crackers) as political figures, that you can hire. Honestly though, they aren’t worth it, but it is a fun detail.
Moving on to the third special event (we already talked about a lot of special events, but you get the idea ?), it is between Germany and Argentina. For the event to fire, you need a civil war to fire in Germany, between the monarchists and the fascists. When the monarchists take Berlin, they always get the event, that Hitler is found dead. But is it? There is 1/200 chance, that the former leader of Germany will flee to Argentina and then the Argentinian Ai will get an event. If than Argentina overthrows its current government and turns fascist, a curtain Senior Hilter will be in charge.
Our last event is pretty much the same, but for America. It is more likely to happen, though. What you need to do, as America at least, is to win the Second American Civil war as the Confederate States of America. Shortly after the war is finished, you will get an event to retire MacArthur and appoint a new leader. Normally, you get three options, which are to retire him, to keep him or to ask Charles Lindberg to form a new government. This time, however, If of course, the same thing happened to Germany, that I already explained in the event for Argentina, you have a fourth option to appoint a certain Adam Hilt, former Architect, to lead the government and country. He gives you 1% bonus construction speed, which is pathetic, but who cares. The important thing is that the events are extremely rare and really cool. If you want to find a footage of how to fire the events, than click here, that will lead you to my YouTube channel – “How to HOI 4”, where I regularly post interesting content, regarding our beloved Hearts of iron 4.
I hope you guys enjoyed this article and if so, be sure to check some of my other writings (guides or tutorials) and stay tuned for more amazing content coming soon!
25,115 | Unique Visitors |
900 | Current Favorites |
IMAGES
VIDEO