Console commands

From Europa Universalis 4 Wiki
Jump to: navigation, search
This page deals with commands used in the console. For the modding term, see commands.

This page lists the codes which may be inputted into the Console Window, a special debugging window which may be accessed on non-ironman games by pressing Shift+2, ALT+2+1, Shift+3,§, ~, ^, °, ², or ` (key varies based on keyboard layout). Press the up or down arrow keys to traverse through previously executed commands. Many codes can be turned off by repeating the command, but sometimes reloading the save or exiting the game is necessary.

Commonly used[edit]

Command Effect
cash (Insert Number) [<Country tag> OPTIONAL] Extra Money
manpower (Insert Number) [<Country tag> OPTIONAL] Extra manpower (in thousands)
sailors (Insert Number) [<Country tag> OPTIONAL] Extra sailors
prestige [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Adds prestige. Gives 5 prestige if no amount is given.
legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] Sets the legitimacy of the current ruler
adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get administrative power points (if not specified, gives 999)
dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get diplomatic power points (if not specified, gives 999)
mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get military power points (if not specified, gives 999)
yesman Toggle AI diplomatic responses (on: always accept; off: normal response)
fow Toggles fog of war on/off
ti Toggles terra incognita on/off

List of commands[edit]

DLC Command Description
add_age [<Country tag> OPTIONAL] Set age of current heir to 15 years.
Common Sense.png add_backer [<prov id>] The province becomes a backer of the current issue in the parliament.
add_baseunrest [<Province ID>] [<Base Unrest>] Adds base unrest to a province
add_cardinal Adds 1 new cardinal to a Catholic nation.
add_cb [<casus belli tag>] [<target country tag>] [<Actor Country tag> OPTIONAL] Add casus belli against target country
add_claim [<Province ID>] [<Country tag> OPTIONAL] Adds a claim to the province.
add_colonist [<Country tag>] Adds a colonist to the country.
Rights of Man.png add_consort [<Target Country Tag> OPTIONAL] [<Origin Country Tag> OPTIONAL] Adds a consort from a tag
add_core [<Province ID>] [<Country tag> OPTIONAL] Add core
add_diplo [<Country tag> OPTIONAL] Adds diplomatic enroute
add_faction [<factionname>] Adds a Faction to your country
add_heir [<Target Country Tag> OPTIONAL] Adds an heir (The current heir is immediately killed.)
add_idea_group [<Idea group key>] [<Country tag> OPTIONAL] Adds the specified idea group
add_interest [<Country tag>] Add specified country tag to your interest
Common Sense.png add_issue [<issue tag>] Adds issue to a parliament.
add_liberty_desire [<Amount>] [<Target Country tag> OPTIONAL] Adds liberty desire
add_local_autonomy [<Province ID>] [<Amount>] Adds local autonomy to a province
The Cossacks.png add_loyalty [<Target Estate>] [<Amount>] Adds loyalty to target estate
add_missionary [<Country tag>] Adds a missionary to a country
add_natives [<ProvinceID>] [<Amount>] Add natives to given province (100× [<Amount>])
add_opinion [<Actor Country tag>] [<Target Country tag> OPTIONAL] Add opinion to/from tag
add_pa [<Country tag>] Add patriarch authority to tag
add_permanent_claim [<Province ID>] [<Country tag> OPTIONAL] Add permanent claim
add_pi [<Country tag>] Add papal influence to tag
add_reformlevel [<Amount>] Adds imperial reforms to the Holy Roman Empire
add_republican_tradition [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get republican tradition
Rights of Man.png add_trait [<personality tag>, <heir> OPTIONAL, <consort> OPTIONAL] Add ruler personality
add_unrest [<CID Type>] [<CID Index>] [<Unrest>] Adds unrest to a faction
adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get administrative power (default value: 999)
admiral [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] Create an admiral
ai_minister [<0 = army, 1 = diplomacy, 2 = trade>] Enables/Disables specific AI ministers
ai(ai) [<Target Country Tag>] Enables/Disables AI for all nations or a specific tag
aiinvalid Print invalid AI command counts
aiview Toggles additional AI info
annex [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Annexes the specified tag without adding cores
army_tradition [<Amount>] [<Target Country tag> OPTIONAL] Adds army tradition to the player
El Dorado.png authority [<AMOUNT>] [<Country tag> OPTIONAL] Add to a country's authority (Inti religion)
autosave Triggers an autosave.
balance Balance data dumped to game.log, with regions (development,number of provinces) and countries (tax, manpower, development, number of forts).
bearhaslanded [<Province ID> OPTIONAL] An unwise command to use
Spawns Jan Mayen.
canals Debug canals on map
cash [<Amount> OPTIONAL] [<Target Country tag> OPTIONAL] Adds ducats to the treasury. Default is 5000 ducats.
change_religion [<province ID>] [<religion>] Change religion of the province
The religions have the following identifier:
  • Catholic: catholic
  • Protestant: protestant
  • Reformed: reformed
  • Orthodox: orthodox
  • Coptic: coptic
  • Sunni: sunni
  • Shia: shiite
  • Ibadi: ibadi
  • Theravada: buddhism
  • Vajrayana: vajrayana
  • Mahayana: mahayana
  • Confucian: confucianism
  • Shinto: shinto
  • Hindu: hinduism
  • Sikh: sikhism
  • Animist: animism
  • Fetishist: shamanism
  • Totemist: totemism
  • Inti: inti
  • Nahuatl: nahuatl
  • Mayan: mesoamerican_religion
  • Norse: norse_pagan_reformed
  • Tengri: tengri_pagan_reformed
  • Jewish: jewish
  • Zoroastrian: zoroastrian
Common Sense.png church_power [<Amount>] [<Target Country tag> OPTIONAL] Adds church power to the player (Protestant religion)
clear Clears the console
Rights of Man.png clr_consort_flag [<Tag>] [<Flag>] Clears a global flag
clr_flag [<Flag>] Clears a global flag
clr_prov_flag [<Flag>] [<Province>] Clears a flag from a province
collision(debug_collision) Toggles debug display of normals/bounding boxes/collision
colonize [province ID] Colonizes and cores a unsettled province (and gets some prestige). The province retains its original culture and religion.

Note: Works also for settled provinces and keeps any previous owner's core.

combatsound How often does the combat view give a random sound? 0-50
control [<Province ID>] [<Country tag> OPTIONAL] Changes the controller of the province.
controll [<Province ID>] [<Country tag> OPTIONAL] Changes the controller of the province.
corrupt [<AMOUNT>] [<Country tag> OPTIONAL] Sets the corruption of the country to the given amount.
country_modifier [<country tag>] [<Modifier type>] Show country modifier values.
create_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] The specified tag becomes a march (of the actor country).
culture [<Province ID>] Changes culture on a province to your primary culture
date [date in format yyyy.mm.dd] Changes current date
debug_info Toggles Debug info
debug_mode Makes some debug features available. Displays province ID, country tag, and border distance when mousing over provinces.
debug_nogui Toggles GUI on/off
debug_reload_areas Reload map areas
debug_reload_regions Reload map regions
declare_war [<attacker tag>] [<defender tag>] [<call willing allies>] Declares war between two nations (no CB)
delete_wars [<Country tag> OPTIONAL] Delete wars without removing truces
die(kill) [<Target Country Tag> OPTIONAL] The ruler (of the specified country) is killed.
dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get diplomatic power (default value: 999)
diplocount Prints out global diploaction statistics to game.log
diplomacy_info Print summary information about currently active diplomatic relations. to console
disaster [disaster_key] Adds 100 progress to a disaster
discover [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Discover capital of target tag
El Dorado.png doom [<AMOUNT>] [<Country tag> OPTIONAL] Add to a country's doom (Nahuatl religion)
economy [] Prints out global economy statistics to game.log
embrace [<Province ID>] [<institution name> optional] Embraces all institutions in a province
epicfail [<Target Country Tag> OPTIONAL] Makes all spies of target country fail
event [event id] [<Target Country Tag> OPTIONAL] [<Option id> OPTIONAL] Executes an event
exhaust [<Amount>] [<Country tag> OPTIONAL] Alter your war exhaustion
fast_diplo Ignore the date check for enroute diplomats
favors [<Target Country tag>] [<Amount>] Adds favors with target country
Wealth of Nations.png fervor [<Amount>] [<Target Country tag> OPTIONAL] Adds fervor to the player (Reformed religion)
form_union [<Country tag>] [<Country tag> OPTIONAL] Forms Union with target
fow(debug_fow) [<Province ID> OPTIONAL] Turns off fog of war in a province or in general
frenzy Force enable Great Power frenzy!!!
frenzy_off Force disable Great Power frenzy!!!
fullscreen Toggles fullscreen
gamespeed [speed (0-5)] Set the current game speed, pausing the game at speed 0.
god godmode on/off
golden_age [<Country tag>] Starts a golden age in that country. A tag is required.
help [command name] Print out all console commands or a specific command description.
helphelp Displays “No help for you!” in the command box
helplog Print out all console commands to game.log file.
The Cossacks.png horde_unity [<AMOUNT>] [<Country tag> OPTIONAL] Set the unity of a horde
ideadump Dump all countries that have generic national ideas to game.log
imperial_authority [<Amount>] [<Country tag> OPTIONAL] Increases the imperial authority of the emperor.
infinite_combat Infinite combat
inflation [<Amount>] [<Country tag> OPTIONAL] Increase your inflation
integrate [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Integrates the specified tag into actor's country (adds cores)
Common Sense.png karma [<Amount>] [<Target Country tag> OPTIONAL] Adds karma to the player (Buddhist religions)
kill_cardinal [<Countrytag> OPTIONAL] Kills first cardinal in the list
Rights of Man.png kill_consort [<Target Country Tag> OPTIONAL] Kills your consort
kill_heir [<Target Country Tag> OPTIONAL] Kills the heir of a tag
kill_leader Kill a random leader with given death cause
leader [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] Creates a general with the given values.
leak Leaks memory
leak_gpu [Chunk size (bytes)] [Number of Chunks] Leaks GPU memory
legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] Set the legitimacy of the ruler
low_memory Simulates a low memory alert and tries to reduce memory usage
lucky [<Country tag> OPTIONAL] Toggles lucky nation status.
manpower [<Amount>] [<Target Country tag> OPTIONAL] Adds manpower to pool (1000× [<Amount>]) (default 5)
map_random [<seed=-1>] [<restore>] [<nosmooth>] [<nosmoothcoasts>] [<topology>] [<terrain>] [<colormap>] [<minimap>] [<rivers>] [<trees>] Randomize new world part of map (heightmap, terrain, ...)
map_vertextextures Toggle map rendering with vertex textures
mapmode [Mapmode type (int)] Change mapmode.
memory Prints out the used memory
mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get military power (default value: 999)
morehumans(humans) [num] Adds more humans
msg Toggles all messages popup
native_uprising [<ProvinceID>] Create native uprising in given province
navy_tradition [<Amount>] [<Target Country tag> OPTIONAL] Adds navy tradition to the specified country
nextsong Changes the currently playing soundtrack.
nolimit_missions Removes the limit of number of major missions to choose from
nopausetext Toggles the pausebanner for nicer screenshots.
nudge Go to the nudge tool
observe_mode [] Changes to the observe mode
observe(spectator) Switches to play no country at all, and no longer shows messages or pauses the game
oos Make the client go oos
own [<Province ID>] [<Country tag> OPTIONAL] Changes ownership of a province
own_core [<Province ID>] [<Country tag> OPTIONAL] Changes ownership of a province and adds core
piety [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Adds piety. (Muslim religions) (default: +10)
pirate [<Province ID>] Starts a Pirate in a province
poll Polls valid Events
population [<ProvinceID>] [<Amount>] Adds population to a province. (Only for colonies.)
power [<stability/tech_table_key/idea_key>] [<Country tag> OPTIONAL] Adds the specified idea group
powerpoints [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get power in all powers. Maximizes monarch points if no number specified.
powerspend [] Prints out global powerspend statistics
prestige [<Amount>] [<Country tag> OPTIONAL] Increases the prestige of the specified country. (default value: 5)
prices Price Info to game.log
print_flags Prints global flags
print_prov_flags [<Prov ID>] Prints province flags
PrintSynchStuff Prints random count and seed
protectorate [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Protectorate the specified tag
province_modifier Show province modifier values.
reform [<Target Province ID>] Begin reformation in the specified province ID
refreshknowledgecount [] Refresh knowledge perf couner
reinitchat [] Posts a CChatSyncAllCommand
reload [file name] Reloads the gui or lua file
reload_canals Reload the canal bitmaps
reload_heightmap Reloads the heightmap
reload_lakes Reloads the lakes
reload_map Reloads the map
reload_provincemap Reloads the provincemap
reload_straits Update strait vertex buffers
reload_treemap Reloads the treemap
reloadfx [Arguments: map/mapname/postfx or *.fx filename] Reloads the shader
reloadinterface Reloads the entire interface
reloadloc Reloads the localisation
reloadtexture [texture file name] Reloads the specified texture
reloadtradewinds Reloads trade winds
remove_cb [<casus belli tag>] [<target country tag>] [<Actor Country tag> OPTIONAL] Remove casus belli from target country
remove_claim [<Province ID>] [<Country tag> OPTIONAL] Remove claim
remove_core [<Province ID>] [<Country tag> OPTIONAL] Remove core
remove_defender_faith Removes the defender of the Faith for the players religion
remove_interest [<Country tag>] Removes specified country tag from your interest
remove_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] make a march the specified tag
remove_rival [<Country tag>] Removes a rival.
Rights of Man.png remove_trait [<personality tag>] Removes a ruler personality.
rendertype Reports what render backend is used
reset_economy [] Resets global economy statistics
Wealth of Nations.png reset_god Resets personal deity
Conquest of Paradise.png reset_migrate Resets the time you'll have to wait until migration is allowed again.
reset_mission_cancel [<Country tag>] Resets time to new mission after cancelling old one.
reset_powerspend [] Resets global powerspend statistics
revolt [<Province ID>] Starts a Revolt in a province
revolution_target [<CountryTag>] Sets the revolution target.
rgb(rgb) [<Amount>] Prints desired amount of random color values to game.log
run [] Runs effects in specified file
sailors [<Amount>] [<Target Country tag> OPTIONAL] Adds sailors (default value: 5000)
savegame Creates an savefile.
score Score data dumped to game.log
selflearningai Enables/Disables Self-Learning AI
Rights of Man.png set_consort_flag [<Tag>] [<Flag>] Sets a global flag
set_flag [<Flag>] Sets a global flag
set_leader_trait [<personality>] Set selected leader's personality trait
set_prov_flag [<Flag>] [<Province>] Sets a flag for a province
setmissionaryprogress [<ProvinceID>] [<Amount>] Sets the missionary progress for a province.
SetRandomCount Sets the randomcount to 0 or arg
show_ideas [<Country tag>] National ideas of the specified country dumped to game.log
siege [<Province ID>] Wins the siege in the specified province
smoothframelog Toggles smooth frame logging
spawn [<Province ID>] [<SubUnit Type>] Spawns a unit in a province. For example, "spawn 1 western_medieval_infantry" spawns a Latin Medieval Infantry in Stockholm. See the file names in the common/units folder for a complete list of <SubUnit Type>.
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] Spawns an actor with an optional animation
spectate(spectate) Goes into Spectator mode
spritelevel [<Sprite level>] Sets a forced sprite level. Specify no argument to reset.
spynetwork [<Target Country tag>] [<Amount>] Adds spy network with target country
stability [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Changes the stability of the specified country (to maximum without value)
state [<Province ID>] Toggles State for owner of region of province.
stats Stats dumped to game.log
surrender Surrender
tag [<Country tag>] Switch tag to another country
tech [<AMOUNT>] Gets levels in all technology types
test_achievement [<achievement>] tests a specific achievement
testevent [<Event ID>] [<Character ID>] Tests an event without triggering it
testmission [<Mission Name>] Tests a mission without triggering it
texture_usage Prints texture usage
ti(debug_ti) Toggles Terra Incognita on/off
time Displays the current time in the command box.
timer Prints out debug timing info
timer_reset Resets debug timing
timer_restart Restarts (resets and starts) debug timing
timer_start Starts debug timing
timer_stop Stops debug timing
touch_test Testing touch
trust [<Target Country tag>] [<Amount>] Adds trust with target country
update_loc [localization tag] Updates the localization tag file
validateevents Validates all events without triggering it
vassalize [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Vassalize the specified tag
version Prints the game version
victorycard Force enables victory cards in singleplayer
window(wnd) [Arguments: open/close] [window gui name] Opens or closes the specified window
winwars Gives max war score in all wars for the country
yesman Toggles AI positive responses (on: always accept; off: normal response)

Casus belli IDs[edit]

For use with add_cb and remove_cb.

List of events[edit]

Event ID Name of event Event's effect
trade_company_events.3 [<Province ID>] Resettlement Plan Succeeds Changes the culture of a specified province to the owner's culture and adds 1 base tax.
Example: event trade_company_events.3 162 while playing Hungary will make Zemplen a Hungarian culture province
5056 Diplomatic Insult Get Diplomatic Insult CB on neighbor / +60 opinion to neighbors
5073 [<Province ID>] New Land Claimed Tax Base Icon.png+1 base tax / Manpower.png+1 base manpower/ Production.png+1 base production
flavor_jap.15 The Za Mercantilism.png+10% mercantilism
flavor_sco.8 The Glasgow Chamber of Commerce Mercantilism.png+5% mercantilism
colonial.12 [<Province ID>] The Call of the Hunt Sets trade good to Fur.pngfur
colonial.13 [<Province ID>] Fur Trade Dwindles Sets trade good to Naval supplies.pngnaval supplies / Grain.pnggrain
colonial.18 [<Province ID>] New World Coffee Sets trade good to Coffee.pngcoffee
9520 [<Province ID>] Slavery Abolished in $ProvinceName$ Sets trade good to Unknownunknown
9469 Lux Stella gives choice between heir with 6Military power.png / 6Administrative power.png / 6Diplomatic power.png

See also[edit]