Victoria 3 – All Cheat Codes (Console Commands)

Victoria 3 offers a debug mode (disabled by default) that allows the inputting of console commands. This page lists the codes that may be input into the Console Window, a special debugging window that may be accessed in non-ironman games while in debug mode by pressing Shift+2, ALT+2+1, Shift+3 etc (key varies based upon keyboard layout)..

Console Commands Guide


For QWERTY keyboards, the key is `. Otherwise, Shift + Alt + C may work if the prior combinations did not. Press the up or down arrow keys to traverse through previously executed commands. Press Tab after entering the beginning of a command to autocomplete it or display which commands contain the entered sequence. Many codes can be turned off by repeating the command, but sometimes reloading the save or exiting the game is necessary.

Debug Mode

Debug mode is a set of game tools that allow to modify game behavior outside of normal means. It includes:

  • Console Window (accepts console commands)
  • Debug Menus (including the GUI Editor, Script explorer and others)
  • Debug Info
  • Ctrl + clicking on a country on the map takes control of the country
  • File watcher that automatically reloads changed files (including mods) into memory

Enabling debug mode

Debug mode can be enabled before launching the game and/or toggled in the game using mods. It can be disabled from the console, but can’t be re-enabled after it’s closed (unless with mods).

How to enable it:


They allow to toggle the debug mode on and off, making it convenient to use the console and play, but this doesn’t enable instant reloading of files. For modding, it’s better to use both a mod and launch options.


In the game Launcher:

  • Switch to Game Settings on the left
  • Scroll down to “Open game in Debug Mode” section and click Launch


On Steam:

  • Right-click the game, open Properties
  • Add -debug_mode to the Launch Options at the bottom
  • Start the game


Without Steam, on Windows:

  • Go to your Victoria 3 directory, “binaries” folder
  • Right-click victoria3.exe and create a shortcut
  • Right-click the shortcut, open Properties
  • In the Target field add -debug_mode at the end (so it looks like this “…\victoria3.exe” -debug_mode)
  • Launch the game using the shortcut

Disabling debug mode

To activate achievements again, disable all active mods and remove -debug_mode from launch options. After launching the game, make sure you have the correct checksum. It can be found in the right corner in the Main Menu.

Debug info

When debug mode is activated, some tooltips (especially on the map) will show debug info which is normally hidden during normal gameplay.

List of Console Commands

3dstatsToggles 3D Stats
3dstats.EnableGfxZoneStatsToggles 3D Gfx Zone Stats
Adjacencies.RebuildRebuild all adjacencies
Application.ChangeResolutionChange the resolution through the console
Browser.OpenURL [url]Opens up a browser with the provided URL
Camera.DebugPrints out camera debug information
Camera.LoadLoad camera position
Camera.SaveSave camera position
Checksum.LogLog the game state checksums to the game log.
CrashReporter.DeleteCrashDataDelete local crash dumps older than X days.
CrashReporter.SimulateCrashSimulates a crash (resulting in the game exiting).
Debug.Achievements.Lock [key]Locks an achievement again
Debug.Achievements.ResetAllLocks all achievements again
Debug.Achievements.ToggleDebug [value]Puts the achievements system in debug mode
Debug.Achievements.Unlock [key]Unlocks an achievements given the key
Debug.TextureMode [Name of debug mode]Enables a texture mode for debugging
Dockables.Create [Dockable name]Create dockable
Dockables.CreateUserLayout [Dockable layout name]Create a new user layout copy of current layout, with new name.
Dockables.DeleteUserLayout [Dockable layout name]Delete layout as user layout
Dockables.HideLayoutHide any shown dockable layout
Dockables.SaveUserLayoutSave current layout to disk as user layout, optionally under a new name.
Dockables.ShowLayout [Dockable layout name]Show an existing (user) layout, hide current layout
Dockables.ShowManagerShow dockable layout manager
GUI.AnimationTimeline.LogStatsDump stats of the GUI Animation Timeline system to the debug log.
GUI.ClearWidgetsClear dummy widget
GUI.CreateDockable [File name] [Widget name] [Dockable id. If doesn’t exist, it will be registered]Create dummy dockable widget. With 0 arguments the file name will be gui/test_gui.gui, and the widget name will be test_window
GUI.CreateWidgetCreate dummy widget. With 0 arguments the file name will be gui/test_gui.gui, and the widget name will be test_window
Localization.ToggleIncludeKeyInLocOutputIncludes the loc key in localization output
Localization.ToggleOnlyKeyInLocOutputShows only the loc key in localization output
Localization.ToggleSkipDataSystemInLocOutputDon’t run the data system at all in loc
Log.ClearAllClears all logs
Log.ClearErrorLogClears out the error log and resets the error count
Map.SavePNG [map mode] [file name] [yes/no Should render flat (optional)]Save a png of the map for a specific map mode. The only map mode which is known to work is “countries”
MapObjects.DebugPrints out map object debug information
MapObjects.GenerateGameLocators [type] [filename (optional)]Generates locators for the game’s map objects
MapObjects.Painter.AddPositionPlace a map object under the cursor
ModifierNode.GraphOpen a graph view of the tick tasks
ModifierNode.ListOpen a graph view of the tick tasks
Music.PauseFactorShows or sets the current pause_factor of the music system
Music.PlayTrack [track name]Plays the specified track
Music.ResetResets the music system
Music.StopTrackStops the currently playing track
PopsFileStorage.SyncSync POP File Storage
Portrait.ClearCacheClears the portrait cache. Forces all portraits to refresh
Print.EventDebugPrint event debug statistics, needs to set Debug.Events to collect statistics
RandomLogToggles random logging
RandomLog.Dump [Frame count to dump, or * to dump all available frames (defaults to *)] [Target filename (defaults to random.log)]Dump random log data to a file.
SplineNetwork.SetAssetGenerationModeSets mode for spline strips and anchors generation [naval/default]
SplineNetwork.ValidateSplinesValidate the integrity of in-game spline system
Terrain.RegenerateRegenerates terrain bitmap
Threading.TaskThreadCount [The number of task threads]Set or get the number of task threads
TickTask.GraphOpen a graph view of the tick tasks
TickTask.ListOpen a graph view of the tick tasks
add_approvalAdds an approval timed modifier to a given IG
add_cloutAdds or removes clout of the IG by changing their political strength with timed modifier
add_ideology [Target interest group.] [Ideology to add.]Add an ideology to a given IG
add_loyalists [culture] [amount]Adds loyalists to culture by fraction of population
add_radicals [culture] [amount]Adds radicals to culture by fraction of population
add_relationsChanges relations with country by a given value
add_war_support [country_tag] [amount]Alters wars support of country in ALL of their wars by amount
ai.debug [tag]Dumps debug info for country
ai.goal [tag] [goal type]Checks ai goal
ai_evaluate_building [building key] [state region key]Prints AI debug data for selected state & building type.
ai_evaluate_interest [strategic region key]Prints AI debug data for selected strategic region declared interest.
ai_evaluate_production_method [building key] [pm key] [state region key]Prints AI debug data for selected production method in state for building type.
ai_evaluate_trade_route [goods key] [country tag]Prints AI debug data for selected goods & country trade partner.
annex [country tag/id]Annexes a country
annex_allAnnexes all other countries
audio.cpu_infoShows current cpu usage
audio.list_eventsList audio event
audio.play_eventPlay audio event
callstackPrint the callstack
change_lawChanges a Law to the specified key
changestatepop [state_id] [pop_type / all] [factor]Changes the pop size of the given pop type (can be ‘all’) by at most the given factor. Will be capped by max employment for each pop.
check_pollution_level [state region tag]Print out pollution for specified state region
check_saveChecks that saving and loading is consistent
clearlinesClear lines
clearspawnedentitiesClears entities spawned with spawnentity command
coa_preview_windowOpen the Coat of Arms Preview Window
compound_nodeeditorCompound Node Editor
conquerall [country tag]Set all enemy provinces under our control.
crashCause the application to crash
create_ai [self/all/tag]Creates AI for country or countries
create_building_historyCreates a game-history compliant .txt file of all buildings in the world / state ID as well as their PM / subsidy configurations.
create_country [country definition] [country type] [culture] [state id]Creates a country
create_political_movement [law type key]Creates a political movement
create_pop_historyCreates a dump in debug.log with a complete pop history
create_state_region_dataCreates a game-database compliant .txt file of all state regions in the world and their provinces/resources
data_types_explorerOpens the data types explorer dockable
data_wrappers_stats [Filter]Prints statistics about data wrappers
date [date in format]Changes current date
debug_lens_optionToggles the cheat mode debug_lens_option
debug_modeToggles debug mode
debugcharactersCreates a semi-colon delimited logfile with debug info regarding all characters.
debugcountrybudgetsCreates a semi-colon delimited logfile with debug info regarding all countries and their budgets.
debugemploymentCreates and appends a comma-delimited logfile with debug info regarding employment in the specified state ID.
debugmarketsCreates a semi-colon delimited logfile with debug info regarding all goods and markets.
debugpopconsumptionCreates a semi-colon delimited logfile with debug info regarding all pops’ consumption
debugpopwealthCreates a semi-colon delimited logfile of the current wealth status of all pops.
debugstatesWrite a semi-colon delimited logfile with debug info regarding all states.
debugterrainweightsPrints out the number of
debugtheatersWrite a semi-colon delimited logfile with debug info regarding all theaters.
deironDisables Ironman mode
disable_ai [all/tag]Disables AI
disable_pop_growthToggles the cheat mode disable_pop_growth
disable_retoolingToggles the cheat mode disable_retooling
drawcmdsviewerDraw Cmds Viewer
dump_data_typesDumps the registered data types
enable_ai [all/tag]Enables AI
entity_editorEntity Editor Dockable
escalate [amount]Adds escalation to player diplomatic plays.
event [event name] [ountry_tag/province_id]Executes an event
explorerShows an object explorer window
exportbuildingsWrite a semi-colon delimited logfile with all building type info
fastbuildToggles the cheat mode fastbuild
fastenactToggles the cheat mode fastenact
fasthireToggles the cheat mode fasthire
fastinstitutionsToggles the cheat mode fastinstitutions
fastinterestsToggles the cheat mode fastinterests
fastmobilizeToggles the cheat mode fastmobilize
fastresearchToggles the cheat mode fastresearch
fastrevolutionToggles the cheat mode fastrevolution
fastsecessionToggles the cheat mode fastsecession
fasttravelsToggles the cheat mode fasttravels
find_unemployedFind and report all unemployed pops with an optional cutoff
fix_state_regionsFix state regions.
force_oosMake this client go out of sync in multiplayer
generate_province_center_objectsGenerates a file with meshes in the center of each province
gfx.reloadtextureReload textures
gfx.skinSelect active gfx skin
gfx.texture_limitSet texture video memory limit in megabytes
gui_animation_editorGUI Animation Timeline Dockable
gui_editorSpawns gui editor
help [command name]Print out all console commands or a specific command description.
hq_show_idToggles the cheat mode hq_show_id
ignore_government_supportToggles the cheat mode ignore_government_support
invalidate_character [character id]Invalidate the modifier on the character with the specified ID
invalidate_country [country id]Invalidate the modifier on the country with the specified ID
invalidate_ig [interest group id]Invalidate the modifier on the interest group with the specified ID
invalidate_state [state id]Invalidate the modifier on the state with the specified ID
io_statsToggles IO Stats
io_stats.ResetResets IO Stats
kill_character [character name]Kills the named character
log_statusLog Status Dockable
log_ticktask_performanceStart outputing ticktask performance data to profiling.log
log_viewerLog Viewer Dockable
map_editorToggle map editor
mapmode [mapmode]Switches to a given mapmode
measure_frame_time [“start” or “stop” measuring]Measures avg/min/max frame time and prints the result to debug.log once stopped
memory_statsToggles Memory Stats
memory_stats.ResetResets Memory Stats
minidump [file path]Creates a minidump
money [amount]Adds specified amount of money
net_debuginfoPrint debug info about the networking layer
net_statsToggles Net Stats
net_stats.ResetResets Net Stats
norevolutionToggles the cheat mode norevolution
nosecessionToggles the cheat mode nosecession
observeStart observing the game
own [province id/state region tag] [country tag]Change the owner of specified province or state region
particleeditorParticle Node Editor
permitmarginalizedingovernmentToggles the cheat mode permitmarginalizedingovernment
pops_account_disconnect_steamDisconnect Paradox account from Steam
pops_account_login [email] [password]Login to a POPS Account
pops_account_logoutLogin to a POPS Account
pops_account_statusShow whether you are currently logged into POPS or not.
popstatPrints out amount of active pops.
portrait_editorOpen the portrait editor
print_gamestate_modifiersPrints Gamestate Modifiers
province_borders [true/false]Toggles showing of province borders
pseudoLocEnable/Disable Pseudo Localization on Text Widgets
recalc_cached_dataRecalculate cached gamestate data.
release_modeToggles release mode
reload [file name]Reloads assets
rendertypeReports what render backend is used
researchAcquire technologies
save_game_analyzerOpen the save game analyzer
screenshotTake screenshot
script_docsPrints script documentation
set_devastation_level [state region tag] [amount]Set devastation level in specified state region
set_pollution_level [state region tag] [amount]Set pollution level in specified state region
settingsSpawns a settings GUI with an optional argument for an initially selected category
shader_editorShader Editor Dockable
show_goalsShow AI goals.
skip_migrationToggles the cheat mode skip_migration
sleepSleep for specified amount of milliseconds
social_addfriend [Context Index] [Account ID]Add a friend to friends list
social_debuginfoPrint debug info about the social layer
social_joinroom [Context Index] [Room Name] [Nick Name]Join a chat room using the given social context
social_sendmessage [Context Index] [Room Name] [Message]Send a message to a chat room.
spawnentity [entity name] [state (optional)]Spawns specified entity at cursor position
spawnentity_at [entity name] [x] [y] [state (optional)]Spawns specified entity at xy-position
spawnline [line name] [start position ‘x,y,z’ (no spaces)] [end position x,y,z (no spaces)]Spawns specified line between 2 positions
spawnnotification [notificationtype] [scopeindex]Spawns notification of specified type.
swapchain.buffersQuery/Set swapchain buffers
switchlanguage [language name]Reload localization files and switch language
tag [country_tag]Switch control to another country
testaipactsTest whether AI would dissolve current pacts
testevent [event name] [country_tag/province_id]Tests an event
testobjective [subgoal key (optional)]Tests objective triggered effects
texturelistTexture List
textureviewerTexture Viewer
timeWhat time is it?
tools.skinsSkin Editor
treatyport [state region tag]Takes treaty port in state region
tweakSpawns a tweaker GUI
update_distributionUpdates garrison unit distribution in HQ of specified State ID
update_employmentTransfers employees between buildings in the specified state ID.
validate_employmentPrint out unemployment in states.
validate_incomePrint out countries with income deficits.
validate_popsEnsures all pops have valid params and prints them to the error log otherwise.
versionShows current build information, put 1 as second parameter for long version
vsyncToggle main swapchains vsync
wagerateGet or Set a building’s wage rate
yesmenAI will agree to all diplomatic proposals & sway offers from players

Bonus Cheat

  • debug [arguments]

Various debugging actions. Possible arguments:

  • ai
  • allmoney
  • alwaysdiplo
  • alwaysreform
  • alwaysupgradecolony
  • artisanchange
  • assert
  • cb_use
  • color
  • demotiondesc
  • eco
  • focusai
  • fow
  • influence
  • info
  • lines
  • market
  • minzoom
  • pops
  • profile
  • promotiondesc
  • render
  • textures
  • tooltips
  • wireframe
  • yesmen
Egor Opleuha
About Egor Opleuha 6974 Articles
Egor Opleuha, also known as Juzzzie, is the Editor-in-Chief of Gameplay Tips. He is a writer with more than 12 years of experience in writing and editing online content. His favorite game was and still is the third part of the legendary Heroes of Might and Magic saga. He prefers to spend all his free time playing retro games and new indie games.

Be the first to comment

Leave a Reply

Your email address will not be published.