HOW TO PLAY
Playing HOI4 is pretty complicated.But when you get all the basics,you will play nicely.
First,you need a decent country,for example the German reich,or the soviet union,but if you want it to be a small easy start,you can start as Yugoslavia,Cuba,Bulgaria etc.
Then you need resources such as guns,tanks,boats and planes.For those you need to trade like oil,tungsten,etc,and for trading you need civilian factories(mostly for trading).But for construction you need military factories.How to build them?You can get them in Focus Trees,or just building them.
First,you need a decent country,for example the German reich,or the soviet union,but if you want it to be a small easy start,you can start as Yugoslavia,Cuba,Bulgaria etc.
Then you need resources such as guns,tanks,boats and planes.For those you need to trade like oil,tungsten,etc,and for trading you need civilian factories(mostly for trading).But for construction you need military factories.How to build them?You can get them in Focus Trees,or just building them.
When you have everything done,you attack a country,but you need advanced divisions on the border with the country,and if you had all the divisions on the border in one army,i suggest you would have atleast 30,all of the divisions together,it depends on the country of course.
CHEAT CODES
Here is a bunch of commands for the game:
CommandEffectExample/Commentadd_equipment(ae) [<equipment amount>] [<equipment name>]Adds equipmentEquipment uses the basic name so 'add_equipment 1000 Infantry Equipment VI'
add_latest_equipment(ale) [<equipment amount>]Gives player amount of latest equipment variants
whitepeace(wp) [<country tags>]White peace with the specified countries.
teleport(tp)Activates the Teleporting tool
allowdiplo(adiplo,nocb)Allows to use all diplomatic actions for no matter the rules. (Can declare war without justification)
debug_nukingAllows to nuke every province without checking any conditions.
instantconstruction(ic)Toggles instant construction cheat.Affects AI
event [event id] [<Target Country Tag>]Executes an eventevent political.3 for communist coup 6 for democratic 9 for fascist
research [<slot id> or "all"]Researches a technology from research slot or all.Research all will instant research all technology's
research_on_icon_clickResearch a technology when clicking on technology tree iconWill Allow you to research an item without its prerequisite
annex [<Target Country Tag>]Begin annex/annexes the specified tagannex USA or annex d01
winwarsGives max war score in all wars for the country
manpower [<Amount>]Adds manpower to playerGive in the exact number, so manpower 100 will give you 100 men
add_opinion [<Country tag>]Add opinion to/from tag
tag [<Country tag>]Switch tag to another country
observe(spectator)Switches to play no country at all, and no longer shows messages or pauses the game
tdebugToggles Debug infoHelpful for finding nation tags and ID's
spawn [<SubUnit Type>] [<Province ID>] [<Amount>]Spawns a unit in a provinceCurrently, this command does not work. When entered into the console, units do not spawn; the console instead returns a message saying "Command available only for developers". The fix, if there is any, is not known.
occupationpaint(op)Toggles occupation painting
setowner [country tag] [state id]Sets state owner
setcontroller [country tag] [province id]Sets province controller
xp [XP amount]Gives Army, navy and air experience to player
pp(fuhrer_mana,political_power) [PP amount]Gives political power to player
civilwar [<ideology>] [<target country tag>]Spawns a civil warcivilwar fascism ENG :Other Valid ideologies "communism" "democratic" "neutrality"
add_party_popularity <ideology group> <value>Adds party popularityideology group has shortcuts d f n c for vanilla HOI groups.
set_ruling_party <ideology group>Sets ruling partyideology group has shortcuts d f n c for vanilla HOI groups.
help [command name]Print out all console commands or a specific command description.
Focus.AutoCompleteAllows national focuses to be instantly finishedAffects AI
Focus.NoChecksIgnores focus requirementsAffects AI
instant_prepareInstantly prepares naval invasionsDisplays message "Command only available for developers"
nu [number]Adds the specified amount of National Unity
nuke [number]Adds nuke
yesmanAI will accept all diplomatic offers
All commands[edit]
CommandEffectExample/CommentrendertypeReports what render backend is used
tweakerguiSpawns a tweaker GUI
add_equipment(ae) [<equipment amount>] [<equipment name>]Adds equipmentadd_equipment 200 Sonderkraftfahrzeug 251/20 : See "equipment_l_english.yml" for full list of names
add_latest_equipment(ale) [<equipment amount>]Gives player amount of latest equipment variants
reload [file name]Reloads assets
timeWhat time is it?
reloadfx [Arguments: map/mapname/postfx or *.fx filename]Reloads the shader
particle_editorSpawns a particle editor
whitepeace(wp) [<country tags>]White peace with the specified countries.
testtool(test)Testing tool.
analyzetheatres(anth)Analyze theatres for errors.
massconquer(massc)Mass conquer tool.
deleteallunits(delall)Delete all armies and fleets of the specified countries.deleteallunits SPR
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.
teleport(tp) [<province_id>]Teleports selected armies or ships to the specified province
theatersrebuild(trebuild)Rebuilds all theatres in the world. All orders will be cleaned.
frontsToggle visibility of the foreign fronts
traderoutesToggle visibility of trade routes
debug_tacticsToggle visibility of debug tooltip for tactics
allowdiplo(adiplo,nocb)Allows to use all diplomatic actions for no matter the rules.
debug_nukingAllows to nuke every province without checking any conditions.
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
instantconstruction(ic)Toggles instant construction cheat.
nomapiconsToggles map icons.
nopausetextToggles the pausebanner for nicer screenshots.
nextsongChanges the currently playing soundtrack.
combatsoundHow 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
reloadinterfaceReloads the entire interface
reloadtechnologiesReloads the technology database
updateequipmentsUpdates the equipment database
updatesubunitsUpdates the subunit database
reloadoob [<Target Country Tag>]Reloads OOBs
update_loc [localization tag]Updates the localization tag file
pollPolls valid Events
event [event id] [<Target Country Tag>]Executes an eventevent political.3 for communist coup
research [<slot id> or "all"]Researches a technology from research slot or all.
research_on_icon_clickResearch a technology when clicking on technology tree icon
add_autonomy [<Target Country Tag>] [num]Changes a country's autonomy leveladd_autonomy PHI -200
annex [<Target Country Tag>]Begin annex/annexes the specified tagannex USA or annex d01
winwarsGives max war score in all wars for the country
testevent [<Event ID>] [<Character ID>]Tests an event without triggering it
manpower [<Amount>]Adds manpower to player
add_opinion [<Country tag>]Add opinion to/from tag
tag [<Country tag>]Switch tag to another country
resignResign 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_diploAdds diplomatic entroute
PrintSynchStuffPrints random count and seed
SetRandomCountSets the randomcount to 0 or arg
observe(spectator)Switches to play no country at all, and no longer shows messages or pauses the game
aiToggles the AI on or off
human_aiToggles AI for Human countries
ai_invasionToggles AI AI naval invasions
ai_accept(yesman)Toggles AI always accept diplomacy
fow(debug_fow) [<Province ID> OPTIONAL]Turns off fog of war in a province or in general
collision(debug_collision)Toggles debug display of normals/bounding boxes/collision
savegameCreates a savefile.
savecheckMakes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
IPShows your IP
requestgamestateRequests the gamestate from host
nudgeGo to the nudge tool
mapmode [Mapmode type (int)]Change mapmode.
fullscreenToggles fullscreen
pricesPrice Info
add_core [<Province ID>]Add core
remove_core [<Province ID>]Remove core
debug_zoomZooms in the game
debug_typesWill print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_show_event_IDShows event ID
debug_commandsPrinting commandcount to message.log
debug_eventsStart Counting events
debug_dumpeventsDump Event data to game log
debug_diploactionsStart Counting diplomatic actions
debug_dumpdiploactionsDump diplomatic action data to game log
debug_assertToggles asserts on/off
debug_smoothToggle framesmoothing
debug_nomouseToggles mouse scrollwheel on/off
debug_terrainToggles Terrain on/off
debug_citiesToggles Cities painting mode on/off
debug_waterToggles Water on/off
debug_frontsToggles interpolated fronts debug
debug_off_front_snap(dbg_fsnap)Toggles offensive fronts snapping debug
debug_bordersToggles Borders on/off
debug_treesToggles Trees on/off
debug_riversToggles Rivers on/off
debug_postfxToggles PostFX on/off
debug_skyToggles Sky on/off
debug_bloomToggles Bloom on/off
debug_tooltipToggles Tooltips on/off
flagsoutput [<path>]Creates texture atlas files from memory.
cityreloadReloads the cities
errorShow errors in log
versionShow current game version
debug_noguiToggles GUI on/off
debug_volume [<Volume Delta>]Modifies music volume
debug_lockcameraToggles Camera locked on/off
debug_linesToggles Debuglines
debug_entitiesToggles Debug entities
debug_infoToggles Debug info
debug_particleToggles Particles Debug info
debug_ai_budget [CountryTag]Show ai budget data
debug_texturesWrites Texture info to application debug log
debug_texturedraws textures like bloom
debug_wireframeToggles forced wireframe on/off
debug_achievements_clearClear all achievements and user stats
moveunit [<Unit ID>] [<Province ID>]Moves a unit to a province
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]Spawns an actor with an optional animation
spawn [<SubUnit Type>] [<Province ID>] [<Amount>]Spawns a unit in a province
guibounds(gui)Toggles GUI bounds debug
cameraclampToggles the camera clamping
provtooltipdebug(tdebug)Toggles the debug info in province tooltip
reloadweather [<randomseed>]Reload and regenerate weather
weatherToggle weather simulation
debug_air_vs_land(dbg_cas)Toggle debug mode for air vs land combat.
mapnamesToggle map names
gbreloadReloads gradient borders
gbpaint [layer] [channel]Toggles gradient border painting
occupationpaint(op)Toggles occupation painting
setowner [country tag] [state id]Sets state owner
setcontroller [country tag] [province id]Sets province controller
profilelogPrints out the profiling informations into time.log
runRuns the specified file with list of commands
oosOut of Synch
debug_crash(crash)Crash!
sleep(wait) [time in sec]Sleep
goto_province [province id]Centers to province
goto_state [state id]Centers to state
trigger_docs(effect_docs)Print docs for triggers and effects
xp [XP amount]Gives Army, navy and air experience to player
threat [Threat amount]Adds or show threat level of player
pp(fuhrer_mana,political_power) [PP amount]Gives political power to player
3dstatsToggles 3D Stats
hdrToggles hdr
hdr_debugToggles hdr debugging
srgbToggles sRGB
bloomToggles bloom
PostEffectVolumes.Default [posteffect_values name]Toggles default posteffect values
nightToggles 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')
filewatcherToggles filewatcher
civilwar [<ideology>] [<target country tag>]Spawns a civil warcivilwar fascism ENG :Other Valid ideologies "communism" "democratic" "neutrality"
add_party_popularity <ideology group> <value>Adds party popularityideology group has shortcuts d f n c for vanilla HOI groups.
set_ruling_party <ideology group>Sets ruling partyideology group has shortcuts d f n c for vanilla HOI groups.
createleanCreate LEAN textures
helplogPrint out all console commands to game.log file.
help [command name]Print out all console commands or a specific command description.
helphelpDouble Rainbow help.
hsvConverts RGB to HSV
tag_colorTest setting a country's color
browser [url]Show browser window
browser_base_url [url]Set browser base url
aiviewEnable AI debug info
Focus.AutoCompleteAllows national focuses to be instantly finished
Focus.NoChecksIgnores focus requirementsAffects AI
instant_prepareInstantly prepares naval invasions
nu [number]Adds the specified amount of National Unity
ppAdds 1000 Political Power
nuke [number]Adds nuke
(i know,its alot)
CommandEffectExample/Commentadd_equipment(ae) [<equipment amount>] [<equipment name>]Adds equipmentEquipment uses the basic name so 'add_equipment 1000 Infantry Equipment VI'
add_latest_equipment(ale) [<equipment amount>]Gives player amount of latest equipment variants
whitepeace(wp) [<country tags>]White peace with the specified countries.
teleport(tp)Activates the Teleporting tool
allowdiplo(adiplo,nocb)Allows to use all diplomatic actions for no matter the rules. (Can declare war without justification)
debug_nukingAllows to nuke every province without checking any conditions.
instantconstruction(ic)Toggles instant construction cheat.Affects AI
event [event id] [<Target Country Tag>]Executes an eventevent political.3 for communist coup 6 for democratic 9 for fascist
research [<slot id> or "all"]Researches a technology from research slot or all.Research all will instant research all technology's
research_on_icon_clickResearch a technology when clicking on technology tree iconWill Allow you to research an item without its prerequisite
annex [<Target Country Tag>]Begin annex/annexes the specified tagannex USA or annex d01
winwarsGives max war score in all wars for the country
manpower [<Amount>]Adds manpower to playerGive in the exact number, so manpower 100 will give you 100 men
add_opinion [<Country tag>]Add opinion to/from tag
tag [<Country tag>]Switch tag to another country
observe(spectator)Switches to play no country at all, and no longer shows messages or pauses the game
tdebugToggles Debug infoHelpful for finding nation tags and ID's
spawn [<SubUnit Type>] [<Province ID>] [<Amount>]Spawns a unit in a provinceCurrently, this command does not work. When entered into the console, units do not spawn; the console instead returns a message saying "Command available only for developers". The fix, if there is any, is not known.
occupationpaint(op)Toggles occupation painting
setowner [country tag] [state id]Sets state owner
setcontroller [country tag] [province id]Sets province controller
xp [XP amount]Gives Army, navy and air experience to player
pp(fuhrer_mana,political_power) [PP amount]Gives political power to player
civilwar [<ideology>] [<target country tag>]Spawns a civil warcivilwar fascism ENG :Other Valid ideologies "communism" "democratic" "neutrality"
add_party_popularity <ideology group> <value>Adds party popularityideology group has shortcuts d f n c for vanilla HOI groups.
set_ruling_party <ideology group>Sets ruling partyideology group has shortcuts d f n c for vanilla HOI groups.
help [command name]Print out all console commands or a specific command description.
Focus.AutoCompleteAllows national focuses to be instantly finishedAffects AI
Focus.NoChecksIgnores focus requirementsAffects AI
instant_prepareInstantly prepares naval invasionsDisplays message "Command only available for developers"
nu [number]Adds the specified amount of National Unity
nuke [number]Adds nuke
yesmanAI will accept all diplomatic offers
All commands[edit]
CommandEffectExample/CommentrendertypeReports what render backend is used
tweakerguiSpawns a tweaker GUI
add_equipment(ae) [<equipment amount>] [<equipment name>]Adds equipmentadd_equipment 200 Sonderkraftfahrzeug 251/20 : See "equipment_l_english.yml" for full list of names
add_latest_equipment(ale) [<equipment amount>]Gives player amount of latest equipment variants
reload [file name]Reloads assets
- reload loc (reloads localisation files)
- reload focus (reloads focuses)
- reload landcombat.gui (reloads land combat interface)
timeWhat time is it?
reloadfx [Arguments: map/mapname/postfx or *.fx filename]Reloads the shader
particle_editorSpawns a particle editor
whitepeace(wp) [<country tags>]White peace with the specified countries.
testtool(test)Testing tool.
analyzetheatres(anth)Analyze theatres for errors.
massconquer(massc)Mass conquer tool.
deleteallunits(delall)Delete all armies and fleets of the specified countries.deleteallunits SPR
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.
teleport(tp) [<province_id>]Teleports selected armies or ships to the specified province
theatersrebuild(trebuild)Rebuilds all theatres in the world. All orders will be cleaned.
frontsToggle visibility of the foreign fronts
traderoutesToggle visibility of trade routes
debug_tacticsToggle visibility of debug tooltip for tactics
allowdiplo(adiplo,nocb)Allows to use all diplomatic actions for no matter the rules.
debug_nukingAllows to nuke every province without checking any conditions.
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
instantconstruction(ic)Toggles instant construction cheat.
nomapiconsToggles map icons.
nopausetextToggles the pausebanner for nicer screenshots.
nextsongChanges the currently playing soundtrack.
combatsoundHow 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
reloadinterfaceReloads the entire interface
reloadtechnologiesReloads the technology database
updateequipmentsUpdates the equipment database
updatesubunitsUpdates the subunit database
reloadoob [<Target Country Tag>]Reloads OOBs
update_loc [localization tag]Updates the localization tag file
pollPolls valid Events
event [event id] [<Target Country Tag>]Executes an eventevent political.3 for communist coup
research [<slot id> or "all"]Researches a technology from research slot or all.
research_on_icon_clickResearch a technology when clicking on technology tree icon
add_autonomy [<Target Country Tag>] [num]Changes a country's autonomy leveladd_autonomy PHI -200
annex [<Target Country Tag>]Begin annex/annexes the specified tagannex USA or annex d01
winwarsGives max war score in all wars for the country
testevent [<Event ID>] [<Character ID>]Tests an event without triggering it
manpower [<Amount>]Adds manpower to player
add_opinion [<Country tag>]Add opinion to/from tag
tag [<Country tag>]Switch tag to another country
resignResign 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_diploAdds diplomatic entroute
PrintSynchStuffPrints random count and seed
SetRandomCountSets the randomcount to 0 or arg
observe(spectator)Switches to play no country at all, and no longer shows messages or pauses the game
aiToggles the AI on or off
human_aiToggles AI for Human countries
ai_invasionToggles AI AI naval invasions
ai_accept(yesman)Toggles AI always accept diplomacy
fow(debug_fow) [<Province ID> OPTIONAL]Turns off fog of war in a province or in general
collision(debug_collision)Toggles debug display of normals/bounding boxes/collision
savegameCreates a savefile.
savecheckMakes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
IPShows your IP
requestgamestateRequests the gamestate from host
nudgeGo to the nudge tool
mapmode [Mapmode type (int)]Change mapmode.
fullscreenToggles fullscreen
pricesPrice Info
add_core [<Province ID>]Add core
remove_core [<Province ID>]Remove core
debug_zoomZooms in the game
debug_typesWill print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_show_event_IDShows event ID
debug_commandsPrinting commandcount to message.log
debug_eventsStart Counting events
debug_dumpeventsDump Event data to game log
debug_diploactionsStart Counting diplomatic actions
debug_dumpdiploactionsDump diplomatic action data to game log
debug_assertToggles asserts on/off
debug_smoothToggle framesmoothing
debug_nomouseToggles mouse scrollwheel on/off
debug_terrainToggles Terrain on/off
debug_citiesToggles Cities painting mode on/off
debug_waterToggles Water on/off
debug_frontsToggles interpolated fronts debug
debug_off_front_snap(dbg_fsnap)Toggles offensive fronts snapping debug
debug_bordersToggles Borders on/off
debug_treesToggles Trees on/off
debug_riversToggles Rivers on/off
debug_postfxToggles PostFX on/off
debug_skyToggles Sky on/off
debug_bloomToggles Bloom on/off
debug_tooltipToggles Tooltips on/off
flagsoutput [<path>]Creates texture atlas files from memory.
cityreloadReloads the cities
errorShow errors in log
versionShow current game version
debug_noguiToggles GUI on/off
debug_volume [<Volume Delta>]Modifies music volume
debug_lockcameraToggles Camera locked on/off
debug_linesToggles Debuglines
debug_entitiesToggles Debug entities
debug_infoToggles Debug info
debug_particleToggles Particles Debug info
debug_ai_budget [CountryTag]Show ai budget data
debug_texturesWrites Texture info to application debug log
debug_texturedraws textures like bloom
debug_wireframeToggles forced wireframe on/off
debug_achievements_clearClear all achievements and user stats
moveunit [<Unit ID>] [<Province ID>]Moves a unit to a province
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]Spawns an actor with an optional animation
spawn [<SubUnit Type>] [<Province ID>] [<Amount>]Spawns a unit in a province
guibounds(gui)Toggles GUI bounds debug
cameraclampToggles the camera clamping
provtooltipdebug(tdebug)Toggles the debug info in province tooltip
reloadweather [<randomseed>]Reload and regenerate weather
weatherToggle weather simulation
debug_air_vs_land(dbg_cas)Toggle debug mode for air vs land combat.
mapnamesToggle map names
gbreloadReloads gradient borders
gbpaint [layer] [channel]Toggles gradient border painting
occupationpaint(op)Toggles occupation painting
setowner [country tag] [state id]Sets state owner
setcontroller [country tag] [province id]Sets province controller
profilelogPrints out the profiling informations into time.log
runRuns the specified file with list of commands
oosOut of Synch
debug_crash(crash)Crash!
sleep(wait) [time in sec]Sleep
goto_province [province id]Centers to province
goto_state [state id]Centers to state
trigger_docs(effect_docs)Print docs for triggers and effects
xp [XP amount]Gives Army, navy and air experience to player
threat [Threat amount]Adds or show threat level of player
pp(fuhrer_mana,political_power) [PP amount]Gives political power to player
3dstatsToggles 3D Stats
hdrToggles hdr
hdr_debugToggles hdr debugging
srgbToggles sRGB
bloomToggles bloom
PostEffectVolumes.Default [posteffect_values name]Toggles default posteffect values
nightToggles 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')
filewatcherToggles filewatcher
civilwar [<ideology>] [<target country tag>]Spawns a civil warcivilwar fascism ENG :Other Valid ideologies "communism" "democratic" "neutrality"
add_party_popularity <ideology group> <value>Adds party popularityideology group has shortcuts d f n c for vanilla HOI groups.
set_ruling_party <ideology group>Sets ruling partyideology group has shortcuts d f n c for vanilla HOI groups.
createleanCreate LEAN textures
helplogPrint out all console commands to game.log file.
help [command name]Print out all console commands or a specific command description.
helphelpDouble Rainbow help.
hsvConverts RGB to HSV
tag_colorTest setting a country's color
browser [url]Show browser window
browser_base_url [url]Set browser base url
aiviewEnable AI debug info
Focus.AutoCompleteAllows national focuses to be instantly finished
Focus.NoChecksIgnores focus requirementsAffects AI
instant_prepareInstantly prepares naval invasions
nu [number]Adds the specified amount of National Unity
ppAdds 1000 Political Power
nuke [number]Adds nuke
(i know,its alot)