维多利亚2
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
资助我们
×
欢迎访问维多利亚2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“控制台指令”的源代码
←
控制台指令
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|Heart of Darkness}} {{Rewrite}} 本页列出了可以输入到控制台窗口的代码,控制台窗口是一个特殊的调试窗口,可以通过按 ` 键访问(非美式键盘上的按钮可能有所不同)。按向上或向下箭头键可遍历以前执行的命令。许多代码可以通过重复这个命令来关闭,但有时需要重新加载保存或退出游戏。 使用这些代码通常被认为是作弊。 == 指令列表 == {| class="wikitable" |- ! 所需拓展包或补丁 !! 指令 !! 效果 !! 例子 !! 备注 |- | || money [amount] || 将特定金额添加到玩家所在国家的现金储备中。 || money 15000 || |- | patch 1.2 || prestige [amount] || Gives a specified amount of [[prestige]] to the player. || prestige 100 || |- | || leadership [amount] || Adds the desired amount of leadership to the player's nation's leadership reserves. || leadership 3 || |- | || goods [amount] || Gives the player the amount specified of all the goods in the game plus the same amount of money. Default is 10000. || goods 5000 || Warning: 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 75 || |- | || revolt [province id] || Rise all the valid [[rebels]] of the country that controls [province id] || revolt 1 || Use twice for it to take effect |- | || instantconstruction || [[Buildings]] finish in one day. || instantconstruction || Affects human and AI players. |- | || inc || Buildings finish in one day. || inc || Affects only human players, not the AI. |- | || instantresearch || [[Research]] finishes in one day. || instantresearch || Affects human and AI players. |- | || inr || Research finishes in one day. || inr || Affects only human players, not the AI. |- | || yesmen || The AI accepts any deal with the player or other AI players. || yesmen || This was changed to "debug yesmen" in the initial release of HoD. |- | HoD || debug yesmen || The AI accepts any deal with the player or other AI players. || debug yesmen || |- | || tag [TAG] || Change the player country to the one specified. || tag USA || The tag must be capitalized. More than 1 change "sleeps" the AI of the affected country until reload. |- | || event [event id] [province id] || Trigger province [[event]]s, regardless of the event requirements. || event 5162 1 || This 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 [[event]]s, regardless of the event requirements. || event 2001 USA || This 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 1 || |- | || changecontroller [TAG] [province id] || Change the current controller of [province id] to the TAG specified. || changecontroller USA 1 || Unless 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 USA || Unless there is a war between the specified country and the current country the provinces will return to the original owner. |- | || showprovinceid || Shows the id of the provinces. || showprovinceid || |- | || provid || Shows the id of the provinces. || provid || A 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 206 || In 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.gfx || No-one is sure which files can be reloaded and which cannot. |- | || reloadfx <effectname> || Reloads the specified shaders. || reloadfx map || |- | || reloadtexture <name> || Reloads the specified texture. || reloadtexture grass.png || |- | || break || Enforces [[rebel]]/movement demands. || break || The top-level rebels available in the movement window are the ones that have their demands met. |- | || upperhouse || Trigger a reelection of the [[upper house]]. || upperhouse || |- | || election || Starts common [[elections]]. || election || |- | || militancy [level] || Changes [[militancy]] of all pops by the specified amount. || militancy 1 || Both positive and negative values work. |- | || date || Changes the date. || date 1862.5.13 || |- | || fow || Turns on\of fog of war. || fow || |- | HoD|| debug fow || Turns on\of fog of war. || debug fow|| |- | || debug invent [invention] || Discover specified invention. || debug invent gas_attack || The names of all inventions are in the ''inventions'' folder. |- | || debug market || Turns on/off a log of price changes. || debug market || The log is located at which is located in My documents/Paradox Interactive/Victoria 2/Logs/game.log, and has a format described at [1]. |- | || minzoom || Controls max and minimum zoom. || minzoom || |- | || debug 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 MEX || The list can be too long to be completely displayed. |- | || wireframe || Switches units' 3D models to wireframe mode. || wireframe || |- | || blockade <provinceid> || Blockades the specified province.|| blockade 1 || |- | || reorg <provinceid> || All units in the specified province get 100% organization and full strength. || reorg 12 || |- | || fullscreen || Changes screen to fullscreen mode. || fullscreen || |- | || debug allmoney || Shows info for money transfers. || debug allmoney || |- | || debug alwaysdiplo || Makes diplomats endless. || debug alwaysdiplo || |- | || debug alwaysaddwargoal || Removes limitations for adding wargoals. || debug alwaysaddwargoal || |- | || debug researchpoints [number] || Grants the specified number of research points. || debug researchpoints 9001 || |- | || debug alwaysreform || Eliminates the 1-month wait between reforms.|| debug alwaysreform || You still need to have +50% of the upper house favorable to pass reforms. The effect of this command do not disappear until the game is restarted, and it's unknown if it also affects the AI. |- | || debug influence || Makes every [[Great Power]]'s [[influence]] on every country fixed at 100. When deactivated, all influence levels return to normal. || debug influence || Also affects the AI. It doesn't show any message on console when activated or deactivated. |- | || suppress || Set suppression points to 100. || suppress || |} == New commands in HoD == showrails(rails) - Toggles the railroads visibility mode. citysize [on/off] [<size 0-100>(if on)] - Overrides the cities size. newsfakegenerateall(fakenewsall) [<stylename>] [<randomseed>] - Generates fake news for each possible fake defined. newsfakegenerate(fakenews) [articlename] [<stylename>] [<randomseed>] - Generates fake news for specified article name. reloadnewsdatabase(reloadnews) - Reloads the news databases and styles. newsgeneratefrompath(newsfrom) [path] [<stylename>] [<randomseed>] - Generates news from specified folder. newsgenerate(news) [filename] [<stylename>] [<randomseed>] - Generates news from file. addresearch(addr) [techname] - Adds research at specified name. leaderprestige(lprestige) [province] [value] - Adds prestige to leaders attached to units at specified location. togglepopupdate(popupdate) - Toggles ON/OFF updating pops. popstat - Prints out amount of active pops. breakalliances(breakally) [<tag>] - Breaks all alliances for you or for specific country. lua [luacode] - Executes lua code typed instead of arguments. technologylist(techs) - Prints out all technologies morehumans(humans) [num] - Adds more humans window(wnd) [Arguments: open/close] [window gui name] - Opens or closes the specified window randomlog - Toggles random logging reload [file name] - Reloads the gui or lua file reloadinterface - Reloads the entire interface reloadfx [Arguments: map or *.fx filename] - Reloads the shader reloadtexture [texture file name] - Reloads the specified texture paint - Switch to map painting mode. rpaint - Switch to region painting mode. cpaint - Switch to continent painting mode. teleportselectionto(teleport) [province id] - Teleports currently selected unit to location reorg [province id] - Reorganize all units at location (includes enemies, so use wisely) tutorial [chapter id] [<reload>] - Sets or reload tutorial copyprov - Copy selected provinces ids to clipboard debug [Arguments: lines/alwaysupgradecolony/ai/influence/market/alwaysreform/allmoney/alwaysdiplo/alwaysaddwargoal/artisanchange/focusai/info/profile/pops/tooltips/assert/promotiondesc/demotiondesc/cb_use/eco/textures/fow/yesmen/wireframe/minzoom/render/color/save] - Various debugging actions spawnactor [actor name] [province id] [<animation>] [<gun>] [<hat>] - Spawns 3d object at location helplog - Print out all console commands to game.log file. help [command name] - Print out all console commands or a specific command description. ==External links== *[[Forum:685316|Cheat and Events...]] == Unconfirmed or not working commands == {{Spoiler|Header= |Text= '''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}} [1]{{Spoiler|Header=Format of the log generated|Text=[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}} [[Category:Victoria 2]]
本页使用的模板:
Template:Ambox
(
查看源代码
)
Template:Ambox/core
(
查看源代码
)
Template:Rewrite
(
查看源代码
)
Template:Spoiler
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
控制台指令
。
×
登录
密码
记住登录
加入维多利亚2百科
忘记密码?
其他方式登录