Console commands - Victoria 2 Wiki (2024)


This page lists the codes which may be input into the Console Window, a special debugging window which may be accessed by pressing the ` key (button may vary on non-American keyboards). 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.

They are often considered cheating to use.

Expansion or patch requiredCommandEffectExampleCommentsmoney [amount]Adds the desired amount of money to the player's nation's cash reserves.money 15000patch 1.2prestige [amount]Gives a specified amount of prestige to the player.prestige 100Prestige change is affected by technologies.leadership [amount]Adds the desired amount of leadership to the player's nation's leadership reserves.leadership 3goods [amount]Gives the player the amount specified of all the goods in the game plus the same amount of money. Default is 10000.goods 5000Warning: creating a large amount of goods with this code will probably lead to economic problems.plurality [number]Set the player plurality to the number given.plurality 75revolt [province id]Rise all the valid rebels of the country that controls [province id]revolt 1Use twice for it to take effectinstantconstructionBuildings finish in one day.instantconstructionAffects human and AI players.incBuildings finish in one day.incAffects only human players, not the AI.instantresearchResearch finishes in one day.instantresearchAffects human and AI players.inrResearch finishes in one day.inrAffects only human players, not the AI.yesmenThe AI accepts any deal with the player or other AI players.yesmenThis was changed to "debug yesmen" in the initial release of HoD.HoDdebug yesmenThe AI accepts any deal with the player or other AI players.debug yesmentag [TAG]Change the player country to the one specified.tag USAThe tag must be capitalized.

More than 1 change "sleeps" the AI of the affected country until reload.

event [event id] [province id]Trigger province events, regardless of the event requirements.event 5162 1This command applies to province events only. If the province ID is not specified, the event is triggered in the capital province of the player's country.event [id] [TAG]Trigger country events, regardless of the event requirements.event 2001 USAThis command applies to country events only. If the country tag is not specified, the event is triggered in the player's country.changeowner [TAG] [province id]Change the current owner of [province id] to the TAG specified.changeowner USA 1changecontroller [TAG] [province id]Change the current controller of [province id] to the TAG specified.changecontroller USA 1Unless there is a war between the original owner and the specified country the province will return to the original owner.conquerall [TAG]Set all enemy provinces under the current country's control.conquerall USAUnless there is a war between the specified country and the current country the provinces will return to the original owner.showprovinceidShows the id of the provinces.showprovinceidprovidShows the id of the provinces.providA shortened version of the previous command.spawnunit [unit] [province id]A [unit] appears in the province specified at 0 organization and full strength.spawnunit hussar 206In case of a land unit, the soldiers will come from a random province.reload <filename>Allows some files, such as the interface files, to be reloaded.reload interface.gfxNo-one is sure which files can be reloaded and which cannot.reloadfx <effectname>Reloads the specified shaders.reloadfx mapreloadtexture <name>Reloads the specified texture.reloadtexture grass.pngbreakEnforces rebel/movement demands.breakThe top-level rebels available in the movement window are the ones that have their demands met.upperhouseTrigger a reelection of the upper house.upperhouseelectionStarts common elections.electionmilitancy [level]Changes militancy of all pops by the specified amount.militancy 1Both positive and negative values work.dateChanges the date.date 1862.5.13fowTurns on\of fog of war.fowHoDdebug fowTurns on\of fog of war.debug fowdebug invent [invention]Discover specified invention.debug invent gas_attackThe names of all inventions are in the inventions folder. The "debug" part of this command may not be required.debug marketTurns on/off a log of price changes.debug marketThe log is located at which is located in My documents/Paradox Interactive/Victoria 2/Logs/game.log, and has a format described at [1].debug minzoomControls maximum and minimum camera zoom.minzoomdebug cb_use <cb_type> <TAG> <TAG>Show all the requirements for a certain Casus Belli, marking which ones are currently valid or invalid. The first TAG is the country trying to use the CB; the second TAG is the country against the CB is evaluated.debug cb_use conquest_cb USA MEXThe list can be too long to be completely displayed.wireframeSwitches units' 3D models to wireframe mode.wireframeblockade <provinceid>Blockades the specified province.blockade 1reorg <provinceid>All units in the specified province get 100% organization and full strength.reorg 12fullscreenChanges screen to fullscreen mode.fullscreendebug allmoneyShows info for money transfers.debug allmoneydebug alwaysdiploMakes diplomats endless.debug alwaysdiplodebug alwaysaddwargoalRemoves limitations for adding wargoals.debug alwaysaddwargoalresearchpoints [number]Grants the specified number of research points.researchpoints 9001debug alwaysreformEliminates the 1-month wait between reforms.debug alwaysreformIt's unknown if it this affects the AI.debug influenceMakes every Great Power's influence on every country fixed at 100. When deactivated, all influence levels return to normal.debug influenceAlso affects the AI.

It doesn't show any message on console when activated or deactivated.

HoDdebug assertEvents won't pause the game.debug assertThis is a regular game option that you can switch on and off in some newer Paradox games.suppressSet suppression points to 100.suppressHoDshowrails(rails)Toggles the railroads visibility modeshowrails(rails)HoDCitysize [on/off] [<size 0-100>(if on)]Overrides the cities size.Citysize [off]HoDnewsfakegenerateall(fakenewsall) [<stylename>] [<randomseed>]Generates fake news for each possible fake defined.newsfakegenerateall(fakenewsall) [<stylename>] [<randomseed>]HoDnewsfakegenerate(fakenews) [articlename] [<stylename>] [<randomseed>]Generates fake news for specified article name.newsfakegenerate(fakenews) [articlename] [<stylename>] [<randomseed>]HoDreloadnewsdatabase(reloadnews) [articlename] [<stylename>] [<randomseed>]Reloads the news databases and styles.reloadnewsdatabase(reloadnews)HoDnewsgeneratefrompath(newsfrom) [path] [<stylename>] [<randomseed>]Generates news from specified folder.newsgeneratefrompath(newsfrom) [path] [<stylename>] [<randomseed>]HoDnewsgenerate(news) [filename] [<stylename>] [<randomseed>]Generates news from file.newsgenerate(news) [filename] [<stylename>] [<randomseed>]HoDaddresearch(addr) [techname]Adds research at specified name.addresearch(addr) [techname]Typing an invalid technology name crashes the game, so use with caution. Technology names can be found in inventions.txt in the game files.HoDleaderprestige(lprestige) [province] [value]Adds prestige to leaders attached to units at specified location.leaderprestige(lprestige) [1456] [10]HoDtogglepopupdate(popupdate)Toggles ON/OFF updating pops.togglepopupdate(popupdate)HoDpopstatPrints out amount of active pops.popstatHoDbreakalliances(breakally) [<tag>]Breaks all alliances for you or for specific country.breakalliances(breakally) [ENG]HoDlua [luacode]Executes lua code typed instead of arguments.lua [luacode]HoDtechnologylist(techs)Prints out all technologiestechnologylist(techs)HoDmorehumans(humans) [num]Adds more humansmorehumans(humans) [2]HoDwindow(wnd) [Arguments: open/close] [window gui name]Opens or closes the specified windowwindow(wnd) [Arguments: open/close] [window gui name]HoDrandomlogToggles random loggingrandomlogHoDreload [file name]Reloads the gui or lua filereload [file name]HoDreloadinterfaceReloads the entire interfacereloadinterfaceHoDreloadfx [Arguments: map or *.fx filename]Reloads the shaderreloadfx [Arguments: map or *.fx filename]HoDreloadtexture [texture file name]Reloads the specified texturereloadtexture [texture file name]HoDpaintSwitch to map painting mode.paintHoDrpaintSwitch to region painting mode.rpaintHoDcpaintSwitch to continent painting mode.cpaintHoDteleportselectionto(teleport) [province id]Teleports currently selected unit to locationteleportselectionto(teleport) [1]HoDreorg [province id]Reorganize all units at location (includes enemies, so use wisely)reorg [1] (reorganizes units in Stockholm)HoDtutorial [chapter id] [<reload>]Sets or reload tutorialtutorial [1] [<reload>]HoDcopyprovCopy selected provinces ids to clipboardcopyprovHoDspawnactor [actor name] [province id] [<animation>] [<gun>] [<hat>]Spawns 3d object at locationspawnactor [actor name] [province id] [<animation>] [<gun>] [<hat>]HoDhelplogPrint out all console commands to game.log file.helplogHoDhelp [Command name]Print out all console commands or a specific command description.helplog

'

promotiondesc: Somehow should descript pop promotion. Looks like game crashing.

demotiondesc: Somehow should descript pop demotion. Looks like game crashing.

cthulhu: Calls Cthulhu R'lyeh.

help: Displays the message 'No help for you!' Work in Heart of Darkness.

morehumans

rand_log Rand log enabled

tech

list

lua

window Valid commands are: open <windowName> close reload

view_ai

no_pop_update Pops are not updating Pops are updating

tutorial

All follow use with debug prefix:

debug lines

alwaysupgradecolony (Always can upgrade colony)

natfoc Prio for:

artisanchange

focusai National focus

ai debug toggled water???

shadow shadows info

profile

tooltips

assert

eco

textures Texture info has been written to the debug log.

render Render options: Trees: yes no Borders: Text: Overlay: Objects: MapObjects:Rivers: Water: WaterBorders: Effects:

save

spawnactor Syntax is spawnactor <actorname> <provinceid> [animation] [gun] [hat]

Flag

name

HelmetNode

test

addresearch

runresearch

processinvent

Format of the log generated

[worldmarket.cpp:861]: Ammunition demand: 2213.24

[worldmarket.cpp:862]: Ammunition supply: 731.901

[worldmarket.cpp:863]: Ammunition price: 15.5681

....

TOTAL_LEFT_ON_WORLD_MARKET_NOT_BOUGHT

[worldmarket.cpp:1538]: --------------------------------------------

[worldmarket.cpp:1546]: Ammunition _ActualSold Domestic markets: 444.897

[worldmarket.cpp:1547]: Ammunition Suppply World markets: 366.213

[worldmarket.cpp:1549]: Ammunition _ActualSold World: 130.501

[worldmarket.cpp:1550]: Ammunition left on market: 235.712

....

ACTUAL SOLD

[worldmarket.cpp:3001]: --------------------------------------------

[worldmarket.cpp:3006]: Ammunition(i:0) sold(domestic): 444.897

[worldmarket.cpp:3007]: Ammunition(i:0) sold(world): 130.501

....

EXPORTED_TO_WORLD_MARKET_FOR_NEXT_TURN

[worldmarket.cpp:3011]: --------------------------------------------

[worldmarket.cpp:3016]: Ammunition on next market: 290.749

Console commands - Victoria 2 Wiki (2024)
Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5798

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.