Console commands
Europa Universalis V 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, §, ~, ^, °, ², or ` (key varies based upon keyboard layout). For QWERTY keyboards, the key is `. Otherwise, Alt + C or 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[edit | edit source]
Debug mode is a set of game tools that allows the modification of game behavior outside 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
- Ctrl + alt + clicking on a state on the map takes the state
- File watcher that automatically reloads changed files (including mods) into memory
Enabling debug mode[edit | edit source]
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:
Steam[edit | edit source]
On Steam:
- Right-click the game, open Properties
- Add
-debug_modeto the Launch Options at the bottom - Start the game
Windows[edit | edit source]
Without Steam, on Windows:
- Go to your Europa Universalis V directory, "binaries" folder
- Right-click eu5.exe and create a shortcut
- Right-click the shortcut, open Properties
- In the Target field, add
-debug_modeat the end (so it looks like this"...\eu5.exe" -debug_mode) - Launch the game using the shortcut
Disabling debug mode[edit | edit source]
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[edit | edit source]
When debug mode is activated, some tooltips (especially on the map) will show debug info, which is normally hidden during normal gameplay.
List[edit | edit source]
| Command | Aliases | Parameters | Effect |
|---|---|---|---|
| oos_prompt | [<local/dummy>] |
| |
| oos_dump |
| ||
| print_randomlog |
| ||
| force_oos |
| ||
| force_resync |
| ||
| event | [eventid] [target] |
| |
| Manpower |
| ||
| Sailors |
| ||
| cash |
| ||
| Stability |
| ||
| WarExhaustion |
| ||
| Inflation |
| ||
| Prestige |
| ||
| ArmyTradition |
| ||
| NavyTradition |
| ||
| GovernmentPower |
| ||
| Karma |
| ||
| ReligiousInfluence |
| ||
| Purity |
| ||
| Honor |
| ||
| Doom |
| ||
| RitePower |
| ||
| Yanantin |
| ||
| Righteousness |
| ||
| Harmony |
| ||
| SelfControl |
| ||
| YesMan |
| ||
| NoMan |
| ||
| WatchWindows |
| ||
| LoadingScreen |
| ||
| InstantMove |
| ||
| InstantSiege |
| ||
| NoRandom |
| ||
| FastDiplo |
| ||
| DelayDiploReply |
| ||
| InstantWar |
| ||
| InstantConstruction |
| ||
| InstantConquistadors |
| ||
| InstantCasusBelli |
| ||
| InstantExploration |
| ||
| InstantMission |
| ||
| FastRebels |
| ||
| ByPassRequirements |
| ||
| RemoveFogOfWar |
| ||
| no_peace_deals |
| ||
| recalc_cached_data |
| ||
| update_pop_cache |
| ||
| form_union | [<junior partner>] |
| |
| change_government | changeGov | [<Government Type>] |
|
| parliament_issue | [<parliament_issue>] |
| |
| end_parliament_issue |
| ||
| ignore_paused_time | ignore_pause | [<Bool Type>] |
|
| discover | ti | [<location key> / all] |
|
| discover_area | da | [<area key> / all] |
|
| override_scale_time | overr_scale, | [<Bool Type> <Float Type>] |
|
| debug_animation_time |
| ||
| change_devastation | chg_deva | [<location> <amount>] |
|
| tick_population | [<location>] |
| |
| weather | [<location> <front/cyclone/tornado>] |
| |
| change_control | chg_ctrl | [<location> <amount>] |
|
| change_winter | chg_winter | [<location> <amount>] |
|
| reload_terrain2_materials |
| ||
| print_selected_illustration_info | prt_ill_info | [eventidverbose] |
|
| print_selected_images_info | prt_img_info | [eventid] [verbose] |
|
| trigger_flag_animation |
| ||
| MapObjects.CheckLocators | [[optional] numbers of pixels to search for other location] |
| |
| PrintLocationBiome | [[optional] location id to print biome for] |
| |
| famine |
| ||
| build_everything | be | [<location> <id> / <country> <tag> / <region> <id> / all] |
|
| list_dhe_for |
| ||
| Cities.PrintUsedSchematics |
| ||
| MapObjects.DebugDefaultLocatorTransforms |
| ||
| reload_pin_collections |
| ||
| spawn_in_every_location |
| ||
| event_probabilities | [<on_action key> [lean]] |
use 'lean' option for a simpler breakdown. limited to the following on_action: monthly_country_pulse yearly_country_pulse biyearly_country_pulse four_yearly_country_pulse | |
| Map.SavePNGScaled | [<map mode>] [<file name>] [<yes/no> Should render flat (optional)] |
| |
| inspect_player_country |
| ||
| copy_mouse_pos |
| ||
| unit_viewer |
| ||
| unit_age | [<age>] |
| |
| start_location_gfx_test | [<Frames per Location>] |
| |
| stop_location_gfx_test |
| ||
| ecs_scene_viewer_dockable |
| ||
| portrait_editor | pe |
| |
| Portrait.ClearCache |
| ||
| mesh_importer_browser |
| ||
| mesh_importer |
| ||
| ecs_dependency_editor |
| ||
| init_flow_editor |
| ||
| update_flow_editor |
| ||
| Adjacencies.Rebuild |
| ||
| spawnline | [<line name>] [<start position 'x,y,z'> (no spaces)] [<end position x,y,z> (no spaces)] |
| |
| clearlines |
| ||
| spawn_schematic | [schematic name] |
| |
| clear_spawned_schematics |
| ||
| Ecs.RunRenderingBenchmark | [Schematic name] [Number of instances] [Duration (s)] |
| |
| spawnentity | [<entity name>] [<state> (optional)] |
| |
| spawnentity_at | [<entity name>] [x] [y] [<state> (optional)] |
| |
| list_entity_nodes | [{entity name}] |
| |
| list_entity_submeshes | [{entity name}] |
| |
| clearspawnedentities |
| ||
| MapObjects.GenerateGameLocators | [<type>] [<filename> (optional)] |
| |
| MapObjects.Debug |
| ||
| Camera.Debug |
| ||
| Camera.Save |
| ||
| Camera.Load |
| ||
| Camera.SetTransform | [X] [Y] [Z] [Zoom] [Pitch] [Yaw] |
| |
| Map.SavePNG | [<map mode>] [<file name>] [<yes/no> Should render flat (optional)] |
| |
| SplineNetwork.AppendAssets |
| ||
| SplineNetwork.ClearAssets |
| ||
| terrain2.reload | [data source ('empty' or 'dataset')] |
| |
| save_game_analyzer |
| ||
| entity_designer |
| ||
| entity_designer_node_editor | [Name of the schematic to open] |
| |
| update_graph_nodeeditor |
| ||
| animation_editor |
| ||
| scene_editor |
| ||
| entity_editor |
| ||
| gui_animation_curve_editor |
| ||
| gui_animation_editor |
| ||
| tweak |
| ||
| dump_tweakables |
| ||
| gui_data_profiler |
| ||
| log_viewer |
| ||
| log_status |
| ||
| Script.Profiling.Gui |
| ||
| script_docs | script_documentation |
| |
| Script.Profiling.Start |
| ||
| Script.Profiling.Stop |
| ||
| Script.Profiling.Restart |
| ||
| Session.GetEnabledDLCs |
| ||
| shader_debug |
| ||
| savegames.sync_cloud_files |
| ||
| dump_ref_lookup_memory_report |
| ||
| particleeditor |
| ||
| shader_editor |
| ||
| compound_nodeeditor |
| ||
| data_types_explorer |
| ||
| drawcmdsviewer |
| ||
| tools.skins |
| ||
| screenshot |
| ||
| settings |
| ||
| textureviewer |
| ||
| texturelist |
| ||
| sdk.testloyaltyrefresh |
| ||
| sdk.inventorylist |
| ||
| sdk.testloyaltyinventory |
| ||
| sdk.istelemetryenabled |
| ||
| RandomLog |
| ||
| measure_frame_time | ["start" or "stop" measuring] |
| |
| io_stats | iostats |
| |
| io_stats.Reset | iostats.reset |
| |
| net_stats | netstats |
| |
| net_stats.Reset | netstats.reset |
| |
| memory_stats | memstats |
| |
| memory_stats.Reset | memstats.reset |
| |
| 3dstats |
| ||
| 3dstats.EnableGfxZoneStats |
| ||
| 3dstats.EnableTextureStats |
| ||
| 3dstats.EnableDescriptorStats |
| ||
| MipLevelDebugTool |
| ||
| Graphics.CapFramerate |
| ||
| GUI.AnimationTimeline.LogStats |
| ||
| audio.list_events |
| ||
| audio.play_event | [Audio event] |
| |
| audio.cpu_info |
| ||
| audio.set_rtpc | [RTPC name] [RTPC value] |
| |
| audio.set_state | [State name] [State value] |
| |
| audio.set_switch | [Switch name] [Switch value] |
| |
| SDL.EventLogging |
| ||
| Localization.ToggleSkipDataSystemInLocOutput |
| ||
| Localization.ToggleIncludeKeyInLocOutput |
| ||
| Localization.ToggleOnlyKeyInLocOutput |
| ||
| rendertype |
| ||
| Debug.TextureMode | [Name of debug mode] |
| |
| vsync |
| ||
| swapchain.buffers |
| ||
| gfx.reloadtexture |
| ||
| FullSettings | [Optional file where the full settings will be saved] |
| |
| Threading.TaskThreadCount | [The number of task threads] |
| |
| log | [Various, see below] |
- log [on/off/level]: Turn all logs on/off or set global level - log "[Format Pattern]" Set global format pattern - log "[Category]" [on/off/level]: Turn all logs on/off or set level for Category - log "[Category]" "[Format Pattern]" Set format pattern for Category | |
| Log.ClearErrorLog |
| ||
| Log.ClearAll |
| ||
| log_ticktask_performance |
| ||
| ai_currency_misses |
| ||
| TickTask.Graph |
| ||
| TickTask.List |
| ||
| write_execution_flow_graphs |
| ||
| CrashReporter.SimulateCrash |
| ||
| CrashReporter.DeleteCrashData |
| ||
| minidump | [file path] |
| |
| gfx.skin |
| ||
| Dockables.Create | [Dockable name] |
| |
| Dockables.CreateUserLayout | [Dockable layout name] |
| |
| Dockables.SaveUserLayout | [Dockable layout name] |
| |
| Dockables.DeleteUserLayout | [Dockable layout name] |
| |
| Dockables.ShowLayout | [Dockable layout name] |
| |
| Dockables.HideLayout |
| ||
| Dockables.ShowManager |
| ||
| map_editor |
| ||
| AudioPersistentObjectManager.PostAudioEvent |
| ||
| Debug.Achievements.ToggleDebug | [<value>] |
| |
| Debug.Achievements.ListAll | [<value>] |
| |
| Debug.Achievements.ResetAll |
| ||
| switchlanguage | [language name] |
| |
| reload | [file name] |
| |
| time |
| ||
| crash |
| ||
| debug_mode |
| ||
| release_mode |
| ||
| GUI.CreateWidget | gui_test,test_gui | [File name] [Widget name] |
|
| GUI.CreateDockable | [File name] [Widget name] [Dockable id. If doesn't exist, it will be registered] |
| |
| GUI.ClearWidgets |
| ||
| pseudoLoc |
| ||
| dump_data_types | DumpDataTypes |
| |
| explorer |
| ||
| explorer_reset |
| ||
| Music.StopTrack |
| ||
| Music.PauseFactor |
| ||
| Music.PlayTrack | [<track name>] |
| |
| Music.Reset |
| ||
| Music.ListTracks |
| ||
| helplog |
| ||
| help | [command name] |
| |
| version |
| ||
| endgame | gameover |
| |
| tick_day | [number of days] |
| |
| load | [file name] |
| |
| test_save |
| ||
| save | [file name] |
| |
| save_replay | [file name] |
| |
| observe | ob |
| |
| watch | ww |
| |
| error |
| ||
| clear_pools |
| ||
| clear_map |
| ||
| gamelog |
| ||
| action_timer |
| ||
| t | [<CountryNamePrefix>] |
| |
| tag | [<CountryTag>] |
| |
| ai | [<CountryTag>] |
| |
| braindeadai | [<CountryTag>] |
| |
| clear_ai_objectives | [<CountryTag>] |
| |
| subject_stance | [<CountryTag>, <Stance>] |
| |
| ai_recalc_strategy |
| ||
| ai_tactical_dryrun | ['hourly'/'daily', <CountryTag>] |
| |
| ai_tactical_print | ['hourly'/'daily', <CountryTag>] |
| |
| ai_tactical_execute | ['hourly'/'daily', <CountryTag>] |
| |
| ai_daily_dryrun | [<CountryTag>] |
| |
| ai_daily_print | [<CountryTag>] |
| |
| ai_daily_execute | [<CountryTag>] |
| |
| ai_monthly_dryrun | [<CountryTag>] |
| |
| ai_monthly_execute | [<CountryTag>] |
| |
| ai_monthly_print | [<CountryTag>] |
| |
| ai_recalc_peace_deals |
| ||
| enable_all_commands | [<location_id>] |
| |
| recalc_trade_path_cache |
| ||
| ai_currency | [<currency>, <amount>, <location/rebel>] |
| |
| ai_monthly_currency | [<currency>, <amount>, <location/rebel>] |
| |
| mapmode | [<MapMode>] |
| |
| give_units | [<CountryTag>] |
| |
| kill_all_units | [<CountryTag>] |
| |
| kill_unit | [<UnitID>] |
| |
| resupply_all_units | [<CountryTag>] |
| |
| damage_all_units | [<CountryTag>] |
| |
| world_levies |
| ||
| debug_estate_logic |
| ||
| start_annex | [<country-tag>] |
| |
| lose_to | [<country-tag>] |
| |
| cb | add_casus_belli,casus_belli | [<country-tag>] |
|
| lend | [<CountryTag> <amount> <interest> <months>] |
| |
| spy | spies | [<CountryTag> <amount>] |
|
| favor | favors | [<CountryTag> <amount>] |
|
| trust | [<CountryTag> <amount>] |
| |
| rebel_progress | [<id> <progress>] |
| |
| set_societal_value | [<societal_value> <position>] |
| |
| add_subunit | [<subunit_def>] |
| |
| estate_satisfaction | [<estate_type> <progress>] |
| |
| estate_gold | [<estate_type> <gold>] |
| |
| disease | spawn_disease | [<disease>] |
|
| building | add_building | [<building_type> <location>] |
|
| add_random_trait | [<id>] |
| |
| add_trait | [<trait>] |
| |
| set_adm | [<id> <ability>] |
| |
| set_dip | [<id> <ability>] |
| |
| set_mil | [<id> <ability>] |
| |
| bankrupt | [<CountryTag>] |
| |
| remove_bankruptcy | [<CountryTag>] |
| |
| opinion | [<CountryTag> <amount>] |
| |
| convert_character | [<religion> <id>] |
| |
| kill_character | [<id>] |
| |
| impregnate | [<id>] |
| |
| give_birth | [<id>] |
| |
| kill | [<id>] |
| |
| suicide | [<id>] |
| |
| colonize | [<location>] |
| |
| colonize_and_finish | [<location>] |
| |
| finish_colony | [<location>] |
| |
| finish_all_colonies |
| ||
| move_random_pop | [<source location> <destination location>] |
| |
| population | [<location>] |
| |
| finish_constructions | [<location>] |
| |
| change_garrison | [<location>] |
| |
| freeze | [<location>] |
| |
| thaw | [<location>] |
| |
| recalc_loc | [<location>] |
| |
| pirate | [<area>] |
| |
| imperial_authority | [<amount>] |
| |
| annex | [<CountryTag>] |
| |
| reset_agendas |
| ||
| war_on_player | [<CountryTag>] |
| |
| declarewar | [<CountryTag>] |
| |
| revolt | [<rebel_id>] |
| |
| religion | [<religion>] |
| |
| culture | [<culture>] |
| |
| cultural_tradition | [<culture> <value>] |
| |
| cultural_influence | [<culture> <value>] |
| |
| location_language_loc | [<language/dialect> <region/area>] |
| |
| dialect_override | [<language/dialect>] |
| |
| convert | [<location>] |
| |
| win_siege | [<location>] |
| |
| economy |
| ||
| set_flag | [<flag_definition>] |
| |
| coa | [<country>] |
| |
| coa_export | [<string>] |
| |
| no_owner_pops |
| ||
| buildings_over_limit |
| ||
| slavery |
| ||
| raid | [<location_id>] |
| |
| building_queue_stats | [<countrytag>] |
| |
| run_select_expand_objectives | [<countrytag>] |
| |
| building_queue_buildings | [<countrytag>] |
| |
| building_queue_top | [<countrytag>] |
| |
| building_queue_clear | [<countrytag>] |
| |
| number_of_buildings | [<countrytag>] |
| |
| make_subject | [<subject_type> <countrytag>] |
| |
| occupy_location | [<location_tag>] |
| |
| occupy_floodfill | [<location_id>] |
| |
| occupy_country | [<countrytag>] |
| |
| occupy_province | [<province>] |
| |
| occupy_area | [<area>] |
| |
| occupy_region | [<region>] |
| |
| conquer | [<location_id>] |
| |
| conquer_country | [<countrytag>] |
| |
| conquer_province | [<province_definition>] |
| |
| conquer_area | [<area>] |
| |
| conquer_region | [<region>] |
| |
| change_dynastic_name | [<countrytag>] |
| |
| remove_location_from_all_ios | [<location_id>] |
| |
| age | change_age | [<age_tag>] |
|
| situation | activate_situation | [<situation>] |
|
| monthly_situation | [<situation>] |
| |
| disaster | activate_disaster | [<disaster>] |
|
| change_date | change_date | [<year>] |
|
| add_institution_progress | institution | [<institution_tag> <location_tag> <amount>] |
|
| dynasties_report |
| ||
| formable_report |
| ||
| content_report | cr |
| |
| seazone_report |
| ||
| building_report | br |
| |
| area_report |
| ||
| mapmode_report |
| ||
| icon_report |
| ||
| bad_goods |
| ||
| overpopulation | op |
| |
| societal_values_report | svr |
| |
| river_validation_report | rvr |
| |
| write_popdata | popdata |
| |
| print_location_list | location_list |
| |
| printmap | [<mapmode>] [<filename>] [<yes/no> Should render flat (optional)] |
| |
| setup_editor |
| ||
| pop_editor |
| ||
| cd_pop_editor |
| ||
| war_viewer |
| ||
| ai_currency_viewer |
| ||
| ai_diplomatic_objectives_viewer |
| ||
| ai_targets_viewer |
| ||
| port_editor |
| ||
| institution_editor |
| ||
| road_editor |
| ||
| players |
| ||
| kick | [<Player name>] |
| |
| new_culture | [<name>] |
| |
| merge_culture_group | [<name>] |
| |
| update_characters |
| ||
| create_character | [<male/female>] [lowborn/random/new] |
| |
| artist | [<artist_type>] |
| |
| workofart | [<work_of_art_type> [<location> [<quality>]]]] |
| |
| policy | add_policy | [<policy>] |
|
| border_distance | [<CountryTag>] |
| |
| diplomats | [<amount>] |
| |
| stockpile | [<market location key> <goods key> [<amount>]] |
| |
| reform_desire | [<amount>] |
| |
| add_core | [<amount>] |
| |
| maritime_presence | [<amount>] |
| |
| add_research | addresearch | [<amount>] |
|
| list_bankruptcies |
| ||
| list_high_debt_countries |
| ||
| show_diplomacy_stats |
| ||
| run_economy_stats |
| ||
| show_economy_stats |
| ||
| show_saving_mode | [<CountryTag>] |
| |
| calc_threat_level | [<CountryTag> <CountryTag>] |
| |
| codetest |
| ||
| research_all |
| ||
| finish_current_religious_focus |
| ||
| integrate_all |
| ||
| antagonism | [[<location>] <value>] |
| |
| finalise_resolution | [<ResolutionID>] |
| |
| create_pu | [<CountryTag>] |
| |
| research | [<advance>] |
| |
| embrace_all |
| ||
| event_counts |
| ||
| trigger_animations |
| ||
| effect | [{effect script}] |
| |
| run | [{effect file}] |
| |
| trigger | [{trigger script}] |
| |
| clear | clr |
| |
| Camera.Goto | goto | [<location>] |
|
| copy_dna | [<id>] |
|
References[edit | edit source]
| Documentation | Defines • Effects • Scopes • Scope links • Triggers | Macros • Mean time to happen • Modifier types • On actions • Script value • Variables | GUI script • Localization |
| Scripted content | Actions • Disasters • Events • Missions • Modifiers • Scripted gui • Setup • Situations • Customizable localization |
| Scripted types | Advances • Buildings • Casus belli • Characters • Concepts • Countries • Culture • Diplomacy • Estates • Goods • Institutions • International organizations • Laws • Peace treaties • Pops • Religion • Subject types • Traits • Units • Wargoals |
| Map | Map • Map mode modding |
| Graphics | 3D Models • Interface • Graphical assets • Fonts • Flags |
| Audio | Music • Sound |
| Other | AI • Console commands • Checksum • Mods • Mod files load order • Mod structure • Troubleshooting |
| Guides | Interface modding guide • Mod translation • Save-game editing • Settlement position modding guide |
| Tools | Arcanum • PDX DeepL • PDX Workshop Manager • Add Your Tool to the Wiki |