控制台指令:修订间差异

本页面讲述的内容长期有效
无编辑摘要
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
{{version|Timeless}}
{{version|Timeless}}
  本页面列出了游戏中可以在控制台输入的指令,你可以在非铁人模式的单人游戏中使用键盘上的 {{key press|~}}  (按键因键盘布局不同而存在变化)。键盘上的上下箭头可以遍历之前输入执行的指令。绝大部分指令的开关是通过再次输入实现的,但关闭某些指令是需要保存退出或重新开始游戏的。请注意,这些指令中有许多会随着 '''DLC''' 的开启和关闭导致其中一些不能正常发挥作用。
{{需要翻译|译者=霜泽图书馆}}
This page lists the codes which may be input into the Console Window, a special debugging window which may be accessed on non-ironman games by hitting {{key press|^}} ,  {{key press|°}}  or tilde (~) (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. Please note that many of these commands come in and out with each DLC making some of them not work. Mods may introduce commands and more commonly, tags into the game to enhance their gameplay.


请注意,铁人模式中无法使用控制台!
Also of note, commands may not work in ironman games by design.


== 指令列表==
==List of commands==
使用 {{key press|shift}} + {{key press|2}} 、 {{key press|~}} 、 {{key press|`}} 、 {{key press|^}} 、 {{key press|shift}} + {{key press|2}} + {{key press|1}} 、 {{key press|shift}} + {{key press|3}} 来开启控制台 (按键因键盘布局不同而存在变化)。
Press Shift+2, §, ~, \, `, ", ^ or ALT+2+1, or Shift+3 to access the console (key varies based on keyboard layout)


==== 国家代码 ====
=== Internal IDs ===
{{see also|Countries}}
{{see also|Countries}}
国家的 tags<ref>tag 列表文件可以在 {{path|common/country_tags/}} 文件夹中找到。</ref> 不区分大小写,但通常是大写的。例如:USA, CHI, ENG, SOV。在内战中产生的国家将依据可用性被赋予D01、D02、D03及以后的范围的 tag (注意, '''D50''' 是最大的可用tag)。
Console commands use internal IDs, which may be obtained in a variety of different ways.


可以通过输入“tdebug”并将鼠标悬停在您想知道的国家的省份上,来查看该国家的 tag
An easy way to tell internal IDs is debug mode. <code>debug</code> as a console command will turn on debug mode which can provide information about certain database entries, such as focuses, national spirits (and other ideas such as laws or designers), or technologies when hovering over them, as well as obtaining information when hovering over a province of IDs of the state and the province, as well as the 3-letter country tag of the country it belongs to. [[Modding#Advantages to using debug|Note that while modding, the console command does not do everything that the launch option does and cannot serve as a substitute.]]


使用键盘上的{{Key press|tab}} 键可以自动补全指令和查看所有指令。
If that is impossible, using localisation is an alternative. To do that, navigate to the folder where the game is contained, then to the {{path|localisation/english/}} folder. Each file in there contains localisation keys with values that actually appear in-game assigned to them. Using a non-default text editor can also allow using the 'Search in files' function (Such as in Notepad++, Sublime Text, or Visual Studio Code) in order to search through every single localisation file at the same time to find a specified value.


==== 常用指令 ====
=== Disambiguation ===
{| class="wikitable sortable"
In this article, there are 3 types of brackets used within commands:
! Command || Effect || Example/Comment
* Regular brackets as in <code>instantconstruction(ic)</code> are used to show aliases, alternate names for the console commands. In this case, using <code>ic</code> or <code>instantconstruction</code> has the same effect in-game.
|-
* Square brackets as in <code>fow [Province ID]</code> signify an ''optional'' argument. In this case, both <code>fow</code> and <code>fow 1234</code> will work, but may have different effects.
| gain_xp [<amount>] || 向选定的领导人/陆军将领/海军上将增加经验值 || gain_xp 100000(等级最高为 9 级)。也可用来添加将领特性,例如:gain_xp desert_fox(相应列表可以在你 ''../localisation/traits_l_english.yml'' 的文件中找到。[[Command_group|这里有一些对相应解释]]。)
* Square brackets in combination with angle brackets as in <code>event [<event ID>]</code> signify a ''mandatory'' argument. In this case, <code>event generic.1</code> will work, but <code>event</code> will not.
|-
 
| gain_xp [<trait>] || 向选定的领导人/陆军将领/海军上将添加'''可获取'''的特性。 || 例如:gain_xp seawolf (相应列表可以在你 ''../localisation/traits_l_english.yml'' 的文件中找到。[[Command_group|这里有一些对相应解释]]。)
=== Useful commands ===
'''注意''' 要让这在新征募的通用海军上将上生效:<br />
{|class="wikitable sortable"
1. 使用文本编辑器打开 '' 'Documents\Paradox Interactive\Hearts of Iron IV\settings.txt' '',并将 'save_as_binary=yes' 修改为 'save_as_binary=no'。<br />
! Command
2. 打开游戏,载入存档并另存为一个新文件,然后退出游戏。<br />
! Effect
3. 打开 '' 'Documents\Paradox Interactive\Hearts of Iron IV\Save Games' '',打开新创建的存档文件,搜索(CTRL-F)你征募的通用海军上将的名字 <br />
! Example/Comment
4. 在 '''max_traits=0.000''' 下面几行添加下列代码块
|-id="help"
<br /><code>
|help [command name]
in_progress={<br />
|Print out all console commands or a specific command description.
seawolf=0.000<br />
|
superior_tactician=0.000<br />
|-id="tag"
spotter=0.000<br />
|tag [<Country tag>]
fly_swatter=0.000<br />
|Changes the country that the player controls.
ironside=0.000<br />
air_controller=0.000<br />
}
</code><br />
5. 确保存储文件时使用了 '''ANSI''' 编码格式。<br />
6. 开始游戏,载入存档,使用 gain_xp 指令,享受吧。<br />
(可以选择在 settings.txt 里重新开启二进制化)
|-
| cp [<amount>] || 增加指挥点数 || cp 100 (上限为 100)
|-
| st [<amount>] || 增加稳定度 || st 100 (上限为 100)
|-
| ws [<amount>] || 增加战争支持度 || ws 100 (上限为 100)
|-
| allowtraits || 允许自由添加将领特性 ||
|-
| add_equipment(ae) [<equipment amount>] [<equipment name>] || 增加装备 || 装备要用最基础的名字,所以用 'ae 1000 infantry_equipment_1'。你只能添加已研究了的装备。不支持添加海军装备。(运输船除外: 'ae 1000 convoy_1')。要添加舰船,考虑使用 <code>instantconstruction</code> (ic 对 AI 也会起作用)。
要添加衍生型装备,你必须要指定它的名字。例子:你创建了 'Matilda LP' 型坦克的衍生型,拥有更好的装甲和主炮,并把它命名为 'Matilda LP Mk. IV'
现在就要使用 'add_equipment 1000 Matilda LP Mk. IV'了。
|-
| add_latest_equipment(ale) [<equipment amount>] || 给予玩家一定量的最新装备 || 要添加你最新装备中指定的一种,你需要指定它的名字。例子:你创建了 'Matilda LP' 型坦克的衍生型,拥有更好的装甲和主炮,并把它命名为 'Matilda LP Mk. IV'。
现在就要使用 'add_equipment 1000 Matilda LP Mk. IV'了。
|-
| whitepeace(wp) [<country tags>] || 指定的国家之间白和。 ||
|-
| teleport(tp) ||瞬间移动|| 可以传送军队到你选择的任何地方
|-
| allowdiplo adiplo,nocb || 无论规则如何,可以使用所有的外交行动。(无需正当化就可以宣战) || 这应该是想开战而'''无'''需等待正当化最有效率的方式。如果你只想立刻正当化而不是想做正当化后才能做的事,那就用(instant_wargoal)。
|-
| debug_nuking || 无需任何条件向所有的世界上所有的省份投放核弹 ||
|-
| instantconstruction || 开关立刻建造的作弊码。 || 对 AI 有效。舰船也会立刻建造完成。
|-
| event [event id] [<Target Country Tag>] || 触发一个事件 || event political.3 触发共产主义政变 6 触发民主主义 9 触发法西斯主义
|-
| trigger [scripted_trigger_name] || 检查一个脚本触发器的值是否为真或假 ||
|-
| effect [scripted_effect_name] || 执行一个脚本的效果 ||
|-
| research [<slot id> or "all"] || 研究完成指定科研槽的科技(slot id)或所有科技(all) || 使用"Research all"将立即研发所有科技。
|-
| research_on_icon_click || 在点击科技树上的图标时立刻研究完相应科技 || 允许你研究完一项科技而无需其前置科技
|-
| annex [<Target Country Tag>] || 吞并输入的国家 || annex USA 或者 annex d01 亦或 annex all
|-
|-
| manpower [<Amount>] || 向玩家增加人力 || 如果只输入 "manpower" ,后面不跟数字则会给你一千万人力
|-
| add_opinion [<Country tag>] || 增加指定国家好感度 || 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
|-
| addFuds[amount] || 增加所有製造商經費 || 向所有製造商增加經費(類似製造商經驗值)
|-
| tag [<Country tag>] || 切换到输入的国家 ||
|-
| observe(spectator) || 切换到无国家状态,并且不再弹出信息或是暂停游戏。但是,开启观察模式会干扰 AI 的操作,并且 AI 的行为可能会与未开启观察模式下不同。 ||
|-
| tdebug || 开关调试信息 || 对查看国家 tag 和 ID 很有帮助
|-
| spawn [<子单位类型>] [<省份 ID>] [<数量>] || 增加单位到指定的省份 || 仅在调试模式下工作。
|-
| occupationpaint(op) || 开关占领地区绘色。如果和国家 tag 配合使用则只绘色该国家拥有而不是控制的地区,比如,op JAP。 ||
|-
| setowner [country tag] [state id] || 设置地区拥有者 || 通过点击选择一个地区也会生效。当一个地区已被选中则其他地区不能再被改变。
|-
| setcontroller [country tag] [province id] || 设置省份控制者 ||
|-
| xp [XP amount] || 玩家获得海陆空三军指定数量的经验 || 一天能用一次
|-
| pp(fuhrer_mana,political_power) [PP amount] || 向玩家增加政治点数 ||
|-
| fuel [<amount>] || 增加燃油 || fuel 100000 (上限取决于你的储备容量,超出将会导致燃油减少)
|-
| civilwar [<意识形态>] [<目标国家 TAG>] || 引发内战 || civilwar fascism ENG :
其他可输入意识形态 "communism"(共产主义) "democratic" (民主主义) "neutrality"(中立)
|-
|add_party_popularity <ideology group> <value> || 增加政党支持度 || ideology group 在钢铁雄心原版理念组里有对应快捷键 d f n c。
|-
|set_ruling_party <ideology group> || 设置执政党 || ideology group 在钢铁雄心原版理念组里有对应快捷键 d f n c。
|-
| help [command name] || 输出所有的控制台指令或者指定指令的介绍。 ||
|-
| Focus.AutoComplete || 允许国策立刻完成 || 对 AI 有效
|-
| Focus.NoChecks || 无视国策的条件 || 对 AI 有效
|-
| Focus.IgnorePrerequisites || 无视国策前提要求 || 允许从国策树中间开始点国策
|-
| Decision.NoChecks || 无视决策的条件 || 同样不会消耗政治点数
|-
| instant_prepare || 立刻准备好海军入侵 || 只在调试模式下生效。
|-
| it || 陆军和海军立刻演练完成 || 对 AI 有效
|-
| nu [number] || 增加国家凝聚力 || 仅在 1.5 以前的版本有效
|-
|nuke [number] || 增加核弹数量 || 添加 100 或者 1000
|-
|ai_accept || AI 会同意所有外交请求 ||
|-
|add_core <province_id> || 增加核心 ||
|-
|agency.instantslotunlock || 移除在间谍招募时中间的等待时间 ||
|-
|agency.autocomplete || 立刻完成间谍机构的升级 ||
|-
|prevent_operative_detection || 你的特工/间谍不会再被发现 ||
|-
|force_operative_detection || 你的特工/间谍会被发现 ||
|-
|Operation.Instant
|秒完成任务
|
|
|-
|-id="event"
|agency.keepexcessoperatives || ||
|event [<event id>] [Target country tag]
|-
|Executes an event
|resistance || 增加设定数值到选中省份的抵抗度 || 例如:(选择柏林的一个省份)resistance 100(效果為增加該省分的抵抗度,增幅為100)
|[[Events#Event_pages|Event pages]] can be used to tell the IDs of events. If the event has a <code>trigger = { ... }</code> block, it says which triggers were met and which weren't.
|-
|-id="add_ideas"
|compliance || 增加设定数值到选中省份的顺从度 || 例如:(选择但泽的一个省份)compliance 100(效果為增加該省分的順從度,增幅為100)
|add_ideas [<idea name>]
|-
|Adds ideas with <id> to the country
|collaboration
|快速建立合作政府
|先右键一个国家,用控制台输入collaboration 100,然后吞并全部领土,让时间走一会,就会有事件提醒建立合作政府。注意这个代码对D01之类的国家无效,需要将这类国家吞并后用setowner+国家代码缩写把这个地方原来的不是D01之类的国家调出来,然后再重复上述步骤,就可以发现所有占领区的顺从度都变为100,比一个一个占领区输入compliance 100方便多了。(PS:中国地区必须对CHI输入该代码,对PRC等无效)
|-
|puppet [< 宗主国>] [<要傀儡的国家>]
| 快速傀儡其他国家
| 注意宗主国在前!要傀儡的国家在后!
|-
|debug
|决议调试模式
|在原版输入该代码会额外多出一些决议,比如特工位+99。在模组里输入:比如TNO,除了多出很多决议还能显示民族精神代码,配合remove_ideas可以移除这些精神
|}
 
==== 全部指令 ====
{| class="wikitable"
|+
| 指令
|效果
|例子/解释
|-
|3dstats
|Toggles  3D Stats
|
|
|-
|-id="remove_ideas"
|add_autonomy [<Target  Country Tag>] [num]
|remove_ideas [<idea name>]
|改变目标国家的自治度
|Removes national idea.
|add_autonomy  PHI -200
|-
|add_core [<State  ID>] [<Country Tag>]
| 添加核心
|
|
|-
|-id="gain_xp"
|add_diplo
|gain_xp [<amount>]
| 增加外交途径
|Adds experience to selected Leader/General/Admiral
|gain_xp 100000(level capped at 9)
|-id="gain_xp"
|gain_xp [<trait>]
|Adds '''gainable''' trait to selected Leader/General/Admiral
|ie: gain_xp seawolf<br/>
'''Note''' To make it work with new, generic created Admirals:<br />
1. Open '' 'Documents\Paradox Interactive\Hearts of Iron IV\settings.txt' '' with a text editor and change "save_as_binary=yes" to "save_as_binary=no".<br />
2. Start game, load savegame and save as new file, exit game.<br />
3. Open '' 'Documents\Paradox Interactive\Hearts of iron IV\Save Games' '', open the newly created savegame file, search (CTRL-F) for the name of your generic created Admiral <br />
4. Go a few lines below to '''max_traits=0.000''' and add the following code block behind it
<pre>
in_progress={
seawolf=0.000
superior_tactician=0.000
spotter=0.000
fly_swatter=0.000
ironside=0.000
air_controller=0.000
}
</pre>
5. Make sure to save the file with '''ANSI''' encoding format.<br />
6. Start game, load save game, use gain_xp command, enjoy.<br />
(Optional turn back on binarization in settings.txt)
|-id="cp"
|cp [<amount>]
|Adds Command Power
|cp 100 (capped at 100)
|-id="st"
|st [<amount>]
|Adds Stability
|st 100 (capped at 100)
|-id="add_war_support"
|add_war_support(ws) [<amount>]
|Adds War Support
|ws 100 (capped at 100)
|-id="allowtraits"
|allowtraits
|Allows free assignment of general traits
|
|
|-id="add_equipment"
|add_equipment(ae) [<equipment amount>] [<equipment name>]
|Adds equipment
|Equipment uses the basic name so 'ae 1000 infantry_equipment_1'.You can only add researched equipment. Does not support Naval equipment. (with the exception of convoy: 'ae 1000 convoy_1') To add ships, consider using instantconstruction(ic) (ic also effects AI).
To add modified equipment, you have to address it by given name. Example: You create a variant of 'Matilda LP'-tank with better Armor and Main Gun and name it 'Matilda LP Mk. IV'.
Now use 'add_equipment 1000 Matilda LP Mk. IV'.
|-id="add_latest_equipment"
|add_latest_equipment(ale) [<equipment amount>]
|Gives player amount of latest equipment variants
|To add only a specific type of your latest equipment, you have to address it's given name. Example: You create a variant of 'Matilda LP'-tank with better Armor and Main Gun and name it 'Matilda LP Mk. IV'.
Now use 'add_latest_equipment 1000 Matilda LP Mk. IV'.
|-
|-
|add_equipment(ae)  [<equipment amount>] [<equipment name>]
|addfunds
| 添加装备
|Adds funds to all MIOs
|add_equipment  200 Sonderkraftfahrzeug 251/20:在 "equipment_l_english.yml"  中能查阅到所有装备的名字
|Adds 1000 funds to every MIO (military industrial organisation)
|-
|-
|add_ideas [<idea  name>]
|addTaskCapacity [number]
| 带着  <id> 添加民族精神会添加到对应国家
|Adds task capacity to all MIOs
| 在  .\common\ideas 下的文件查看各国的民族精神
|Defaults to 1 if no input given.
To add task capacity to only a specific MIO, you will need to find the MIO id in ''\Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt''
Then you use addTaskCapacity [<MIO id>] [number]
|-
|-
|add_interest [<Country  tag>]
|addSize [number]
| 将指定的国家标签添加到您的兴趣中
|Adds trait points to all MIOs
|
|Defaults to 1 if no input given.
To add trait points to only a specific MIO, you will need to find the MIO id in ''\Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt''
Then you use addSize [<MIO id>] [number]
|-
|-
|add_latest_equipment(ale) [<equipment amount>]
|add_cic_bank [number]
| 给予玩家一定量的最新装备
|Adds Economic Capacity Surplus for the player in the International Market
|Defaults to 1 if no input given
|-id="whitepeace"
|whitepeace(wp) [<country tags>]
|White peace with the specified countries.
|
|
|-
|-id="teleport"
|add_opinion [<Country  tag>]
|teleport(tp)
| 增加指定国家好感度
|Activates the Teleportation tool
| 向指定国家增加  100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100  more opinion about you" 并会在外交界面中显示为  "cheat_opinion_modified_good"。
|Can teleport units where ever you tell them to go (right click a province with a selected unit)
|-
|-id="allowdiplo"
|add_party_popularity  <ideology group> <value>
|allowdiplo(adiplo,nocb)
| 增加特定政党支持度
|Allows to use all diplomatic actions for no matter the rules. (Can declare war without justification)
| 在原版游戏中,意识形态组可以使用缩写,f(法西斯主义),d(民主主义),c(共产主义),n(不结盟主义)
|This is likely the most effective way of wanting to start a war '''without''' needing to wait for the justification. If you only want instant justification and not the extra options it comes with, then use (instant_wargoal).
|-
|-id="debug_crash"
|ai
|debug_crash(crash)
| 打开或关闭  AI
|Crashes the game.
|
|
|-
|-id="debug_nuking"
|ai_accept(yesman)
|debug_nuking
| 打开或关闭AI始终接受外交
|Allows to nuke every province without checking any conditions.
|
|
|-
|-id="instantconstruction"
|ai_invasion
|instantconstruction (ic)
| 打开或关闭AI海军入侵
|Toggles instant construction cheat.
|Affects AI. Ships are also constructed instantly.
|-id="research"
|research [<slot id> or "all"]
|Researches a technology from research slot or all.
|Research all will instant research all technologies
|-id="research_on_icon_click"
|research_on_icon_click (roic)
|Research a technology when clicking on technology tree icon
|Will Allow you to research an item without its prerequisite or two mutually exclusive items
|-id="annex"
|annex [<Target Country Tag> or "all"]
|Begin annex/annexes the specified tag
|annex USA or annex d01 or annex all
|-id="puppet"
|puppet [<Puppeteer Country Tag>] [<Puppet Target Country Tag>]
|Turns the target country into a puppet of the puppeteer
|puppet GER CZE (Czechoslovakia becomes a puppet of German Reich)
|-id="manpower"
|manpower [amount]
|Adds manpower to player
|Defaults to 10 million if the number isn't specified.
|-id="add_opinion"
|add_opinion [<Country tag>]
|Add opinion to/from tag
|Adds 100 opinion (hardcoded number) to and from target country (add_opinion ENG for instance). A successfull call prints "<country> have 100 more opinion about you" and it appears as "cheat_opinion_modified_good" in the diplomacy screen
|-id="observe"
|observe(spectator)
|Switches to play no country at all, and no longer shows messages or pauses the game. However, it also interferes with AI performance and is not a good indication of what the AI will do if observe mode is not used.
|
|
|-
|-id="tdebug"
|aidump
|tdebug
| 将AI前端数据转储到日志文件,需要选择一个单元
|Toggles Debug info
|Helpful for finding nation tags and ID's
|-id="occupationpaint"
|occupationpaint(op)
|Toggles occupation painting. If used with country tag occupies all of their owned, not controlled, land,
|op JAP
|-id="setowner"
|setowner [<country tag>]
|Sets state owner
|Select the state you would like to set owner as. Select a state by clicking it. You need to click the state as the state id no longer works.
|-id="setcontroller"
|setcontroller [<country tag>] [province id]
|Sets province controller
|
|
|-
|-id="xp"
|aircombat(airc)  [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator  country>] [<equipment creator country>]
|xp [<XP amount>]
| 在指定位置生成一场空战
|Gives Army, navy and air experience to player
|Can be used once per day
|-id="pp"
|pp(fuhrer_mana,political_power) [PP amount]
|Gives(or removes) political power to player
|Defaults to 1000 if the amount is unset.
|-id="fuel"
|fuel [<amount>]
|Adds Fuel
|fuel 100000 (capped at your deposits capacity, adding much more will result in decreasing fuel)
|-id="civilwar"
|civilwar [<ideology>] [<target country tag>]
|Spawns a civil war
|civilwar fascism ENG :
Other Valid ideologies "communism" "democratic" "neutrality"
|-id="add_party_popularity"
|add_party_popularity <ideology group> <value>
|Adds party popularity
|ideology group has shortcuts d f n c for vanilla HOI groups.
|-id="set_ruling_party"
|set_ruling_party <ideology group>
|Sets ruling party
|ideology group has shortcuts d f n c for vanilla HOI groups.
|-id="Focus.AutoComplete"
|Focus.AutoComplete (fa)
|Allows national focuses to be instantly finished
|Affects AI
|-id="Focus.NoChecks"
|Focus.NoChecks
|Ignores focus requirements
|Affects AI
|-id="Focus.IgnorePrerequisites"
|Focus.IgnorePrerequisites
|Ignores focus prerequisites
|Allows you to start a focus in the middle of the tree. Affects AI
|-id="Decision.FastRemove"
|Decision.FastRemove
|Shortens decisions to 1 day
|
|
|-
|-id="Decision.NoChecks"
|airealism
|Decision.NoChecks
| 开启真实  AI
|Ignores decision requirements
|Also disables cost, affects AI
|-id="instant_prepare"
|instant_prepare
|Instantly prepares naval invasions
|Only works in debug mode.
|-id="instanttraining"
|instanttraining (it)
|Instantly trains divisions and ships
|Affects AI
|-id="nuke"
|nuke [number]
|Adds nukes
|Add 100 or 1000
|-id="ai_accept"
|ai_accept
|AI will accept all diplomatic offers
|
|
|-
|-id="add_core"
|aiview
|add_core <state_id>
| 展示AI调试x
|Adds cores
|
|
|-
|-id="Agency.Instant"
|allowdiplo(adiplo,nocb)
|Agency.Instant
| 允许使用所有外交行动,无论规则如何
|Makes everything regarding agencies instant.
|Equivalent to a combination of Operation.Instant, IntelNetwork.Instant, Agency.InstantSlotUnlock, and Agency.Autocomplete
|-id="Agency.InstantSlotUnlock"
|Agency.InstantSlotUnlock
|Removes wait time between agent recruits
|
|
|-
|-id="Agency.Autocomplete"
|analyzetheatres(anth)
|Agency.Autocomplete
| 分析战区的错误
|Instantly completes agency upgrades
|
|
|-
|-id="prevent_operative_detection"
|annex [<Target Country  Tag>]
|prevent_operative_detection
| 吞并目标国家(不带核心,不能继承目标国家军队)
|Your operatives/spies won't be detected anymore
|annex  USA or annex d01
|-
|bloom
|Toggles  bloom
|
|
|-
|-id="force_operative_detection"
|browser [url]
|force_operative_detection
|Show  browser window
|Your operatives/spies will be detected
|
|
|-
|-
|browser_base_url [url]
|Operation.instant
|Set  browser base url
|Instantly finishes all operations
|Might affect ai
|-id="agency"
|agency.keepexcessoperatives
|
|
|-
|building_health(bhealth)  [<building type>] [<state or prov id>] [<building level>]  [<health to add>]
|更改指定的建筑的血量
|
|
|-id="deleteallunits"
|deleteallunits(delall) [country]
|Delete all armies and fleets of the specified countries.
|deleteallunits SPR
|-id="deleteallunitsbut"
|deleteallunitsbut(delallbut) [country]
|Delete all countries' armies and fleets, with the exception of one country.
|delallbut SPR
|-id="add_autonomy"
|add_autonomy [<Target Country Tag>] [num]
|Changes a country's autonomy level
|add_autonomy PHI -200
|-id="resistance"
|resistance
|Increases resistance in the selected province by set amount
|ex: (selects one of the provinces in Berlin) resistance 100
|-id="compliance"
|compliance
|Increases compliance in the selected province in game by set amount
|ex: (selects one of the provinces in Danzig) compliance 100
|-
|-
|bypass_invasion_superiority_check
|add_intel [<Country tag 1>] [Country Tag 2] [civilian,army,navy,airforce]=[number]
| 无视制海权进行海军入侵
add_intel [<Target Country tag>] [civilian,army,navy,airforce]=[number]
|
|Sets the inputted intel the first tag has against the second tag. The set intel amount is a static value (will be permanent for the rest of the game).
|ex (sets intel player has against France to max): add_intel FRA
ex (sets army intel Germany has against USA to 20%): add_intel GER USA army=20
 
ex (sets airforce and civilian intel Player has against Japan to 90% and 76% respectively): add_intel JAP airforce=90 civilian=76
|-
|-
|cameraclamp
|add_mines
|Toggles  the camera clamping
|Maximises player owned naval mines in the selected regions
|
|
|-
|-
|cityreload
|acclimization [<climate type>] [<number>]
| 重新加载城市
|Sets the selected division's acclimization to the specified climate type and its percentage (reduces penalties from cold/hot weather or temperature debuffs)
|ex: acclimization cold_climate 75
ex: acclimization hot_climate 20
'''Note''' that it resets the opposite climate type to 0%
|-id="debug_smooth"
|debug_smooth
|Toggle framesmoothing
|Can increase game speed significantly, depending on system typically between 10 and 35 percent
|}
 
=== Modding-useful commands ===
Several other commands previously mentioned, such as [[#event|event]], are useful in modding too.
{|class="wikitable sortable"
! Command
! Effect
! Example/Comment
|-id="guibounds"
|guibounds(gui)
|Toggles the GUI bounds debug, allowing to test for different window sizes easier.
|Also grants the name of the sprite and the interface element the player is hovering on, allowing to find the location of the image by [[Modding#Universal modding concepts|searching every {{path|interface/*.gfx}} file at the same time.]]
|-id="set_var"
|set_var [<variable>] [<value>]
|Changes the value of a variable to the specified value.
|
|
|-
|-id="get_var"
| rowspan="2" |civilwar  [<ideology>] [<target country tag>]
|get_var [<variable>]
| rowspan="2" |在特定国家发起内战
|Shows the value of a variable in the console
|civilwar  fascism ENG
|-
|其他可输入意识形态 "communism"(共产主义)  "democratic"(民主主义) "neutrality"(中立)
|-
|collision(debug_collision)
|Toggles  debug display of normals/bounding boxes/collision
|
|
|-
|-id="list_vars"
|combatsound
|list_vars
| 战斗视图多久发出一次随机声音??  0-50
|Lists the variables set in the selected scope and their values.
|
|
|-
|-id="set_country_flag"
|createlean
|set_country_flag [<Country Flag>]
|Create  LEAN textures
|Adds a country flag to currently played nation.
|Does not work if you put another nations tag in the command such as "set_country_flag flag AUS", even if it says in console that it does.
|-id="set_global_flag"
|set_global_flag [<Global Flag>]
|Adds a global flag.
|
|
|-
|-id="list_flags"
|Decision.NoChecks
|list_flags
| 决议无条件
|Lists currently active flags in the console windows.
|对 AI 有效
|Context senstive if nothing (global_flag), country (country_flag) or state (state_flag) is selected when entering this command.
|-
|-id="trigger"
|Decision.FastRemove
|trigger [<scripted_trigger_name>]
|决议生效时间为一天
|Checks if a scripted trigger is true or not.
|对 AI 有效
|-
|debug_achievements_clear
|Clear  all achievements and user stats
|
|
|-
|-id="effect"
|debug_ai_budget  [CountryTag]
|effect (eval_effect) (e) [<scripted_effect_name>]
|Show  ai budget data
|Executes a [[scripted effect]], within the currently selected scope.
|Example: <code>e POL_remove_danzig_effect</code> on a state will execute that effect on the state.
|-id="ai"
|ai [country tag...]
|Toggles the AI on or off
|Without parameters toggles the AI for all countries. With parameters, toggles exceptions for those countries from the general rule. Can be used to confirm if a crash is AI-related.
|-id="aiview"
|aiview
|Enable AI debug info
|
|
|-
|-id="human_ai"
|debug_air_vs_land(dbg_cas)
|human_ai
|Toggle  debug mode for air vs land combat.
|Makes the AI control the country currently led by the player while the player also remains in control.
|AI will also create logs within {{path|logs/scripted_ai.log}} in the [[Modding|user directory]].
|-id="set_cosmetic_tag"
|set_cosmetic_tag [<country tag>] [<cosmetic tag>]
|changes the name and flag of the country
|set_cosmetic_tag USA SOV
|-id="reload"
|reload [<type>]
|Reloads files of a given type. Also accepts individual files within the {{path|interface/}} folder. Equivalent to the effect done automatically when saving over a file with debug mode turned on via launch options.
|
|
|-
* reload loc (reloads localisation files)
|debug_assert
* reload focus (reloads focuses)
|Toggles  asserts on/off
* reload landcombat.gui (reloads land combat interface)
|-id="reloadoob"
|reloadoob [<Target Country Tag>]
|Reloads orders of battle.
|
|
|-
|-id="reloadinterface"
|debug_bloom
|reloadinterface
|Toggles  Bloom on/off
|Reloads the entire interface
|
|
|-
|-id="reloadtechnologies"
|debug_borders
|reloadtechnologies
|Toggles  Borders on/off
|Reloads the technology database
|
|
|-
|-id="updateequipments"
|debug_cities
|updateequipments
|Toggles  Cities painting mode on/off
|Updates the equipment database
|
|
|-
|-id="updatesubunits"
|debug_commands
|updatesubunits
|Printing  commandcount to message.log
|Updates the subunit database
|
|
|-
|-id="update_loc"
|debug_crash(crash)
|update_loc [localization tag]
|Crash!
|Updates the localization tag file
|
|
|-
|-id="error"
|debug_diploactions
|error
|Start  Counting diplomatic actions
|Opens the error log file.
|If there are special characters in the folder path, this won't work. Equivalent to pressing on the error dog if enabling debug mode in launch options.
|-id="imgui"
|imgui
|Controls ImGui UIs. Use <code>imgui show</code> to list the available subcommands. These UIs cover a wide variety of useful modding tools, such as script profiling, AI debugging, and listing characters.
|
|
|-
|-id="goto_province"
|debug_dumpdiploactions
|goto_province [province id]
|Dump  diplomatic action data to game log
|Moves the camera position to the specified province.
|
|
|-
|-id="goto_state"
|debug_dumpevents
|goto_state [state id]
|Dump  Event data to game log
|Moves the camera position to the specified state.
|
|
|}
=== Other in-game commands ===
{|class="wikitable sortable"
! Command
! Effect
! Example/Comment
|-
|-
|debug_entities
|ShowTechBonus
|Toggles  Debug entities
|Unknown what it does, however with the name we can make a guess it has to do something with tech bonuses. Filed as developer only.
|
|
|-
|-
|debug_events
|normals
|Start  Counting events
|Unknown what it does. Filed as developer only.
|
|
|-
|-id="rendertype"
|debug_fronts
|rendertype
|Toggles  interpolated fronts debug
|Reports what render backend is used
|
|
|-
|-id="tweakergui"
|debug_info
|tweakergui
|Toggles  Debug info
|Spawns a tweaker GUI
|
|
|-
|-id="time"
|debug_lines
|time
|Toggles  Debuglines
|What time is it?
|
|
|-
|-id="reloadfx"
|debug_lockcamera
|reloadfx [Arguments: map/mapname/postfx or *.fx filename]
|Toggles  Camera locked on/off
|Reloads the shader
|
|
|-
|-id="particle_editor"
|debug_nogui
|particle_editor
|Toggles  GUI on/off
|Spawns a particle editor
|
|
|-
|-id="analyzetheatres"
|debug_nomouse
|analyzetheatres(anth)
|Toggles  mouse scrollwheel on/off
|Analyze theatres for errors.
|
|
|-
|-id="massconquer"
|debug_nuking
|massconquer(massc)
| 无视所有条件对所有省份发射核弹
|Mass conquer tool. Requires direct province names. Filed under developer only.
|
|
|-
|-id="aircombat"
|debug_off_front_snap(dbg_fsnap)
|aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>]
|Toggles  offensive fronts snapping debug
|Spawns an air combat in desired location.
|
|
|-
|-id="fronts"
|debug_particle
|fronts
|Toggles  Particles Debug info
|Toggle visibility of the foreign fronts
|
|
|-
|-id="ai_front_dump"
|debug_postfx
|ai_front_dump (aifrontdump)
|Toggles  PostFX on/off
|Dump AI front data to log file, needs to have a unit selected
|
|
|-
|-id="traderoutes"
|debug_rivers
|traderoutes
|Toggles  Rivers on/off
|Toggle visibility of trade routes
|
|
|-
|-id="debug_tactics"
|debug_show_event_ID
|debug_tactics
| 展示事件所对应的ID
|Toggle visibility of debug tooltip for tactics
|
|
|-
|-id="reloadsupply"
|debug_sky
|reloadsupply(relsup)
|Toggles  Sky on/off
|Reinitializes the supply systems.
|
|
|-
|-id="deltat"
|debug_smooth
|deltat [<speed factor>]
|Toggle  framesmoothing
|control animation speeds
|
|
|-
|-id="building_health"
|debug_tactics
|building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>]
| 切换战术调试工具提示的可见性
|Changes specified building health
|
|
|-
|-id="nomapicons"
|debug_terrain
|nomapicons
|Toggles Terrain on/off
|Toggles map icons.
|
|
|-
|-id="nopausetext"
|debug_texture
|nopausetext
|draws  textures like bloom
|Toggles the pausebanner for nicer screenshots.
|
|
|-
|-id="nextsong"
|debug_textures
|nextsong
|Writes  Texture info to application debug log
|Changes the currently playing soundtrack.
|
|
|-
|-id="combatsound"
|debug_tooltip
|combatsound
|Toggles  Tooltips on/off
|How often does the combat view give a random sound? 0-50
|
|
|-
|-id="morehumans"
|debug_trees
|morehumans(humans) [num]
|Toggles  Trees on/off
|Adds more humans
|
|
|-
|-id="window"
|debug_types
|window(wnd) [Arguments: open/close] [window gui name]
|Will  print the data type for all dynamic reference objects. Can only be used if  using RTTI.
|Opens or closes the specified window
|
|
|-
|-id="poll"
|debug_volume [<Volume  Delta>]
|poll
|Modifies  music volume
|Polls valid Events
|
|
|-
|-id="pause_in_hours"
|debug_water
|pause_in_hours
|Toggles  Water on/off
|Pauses the game after X hours have passed after command is called
|
|
|-
|-id="winwars"
|debug_wireframe
|winwars
|Toggles  forced wireframe on/off
|Gives max war score in all wars for the country
|Command no longer exists as of patch 1.9.1
|-id="testevent"
|testevent [<Event ID>] [<Character ID>]
|Tests an event without triggering it
|
|
|-
|-id="resign"
|debug_zoom
|resign
|Zooms  in the game
|Resign from the game
|
|
|-
|-id="add_interest"
|deleteallunits(delall)
|add_interest [<Country tag>]
|删除指定国家的全部陆军和海军。
|Add specified country tag to your interest
|deleteallunits  SPR
|-
|deltat [<speed  factor>]
| 控制游戏速度
|
|
|-
|-id="remove_interest"
|error
|remove_interest [<Country tag>]
| 在日志中显示错误
|Removes specified country tag from your interest
|
|
|-
|-id="add_diplo"
|event [event id]  [<Target Country Tag>]
|add_diplo
|执行事件
|Adds diplomatic entroute
|event  political.3 for communist coup
|-
|filewatcher
|Toggles  filewatcher
|
|
|-
|-id="PrintSynchStuff"
|flagsoutput [<path>]
|PrintSynchStuff
|Creates  texture atlas files from memory.
|Prints random count and seed
|
|
|-
|-id="SetRandomCount"
|Focus.AutoComplete(fa)
|SetRandomCount
| 国家焦点瞬间完成
|Sets the random count to 0 or arg
|同样作用于AI
|-
|Focus.NoChecks
|无视某些国家焦点的条件
|同样作用于AI
|-
|fow(debug_fow)  [<Province ID> OPTIONAL]
|打开/关掉游戏或特定省份的战争迷雾
|
|
|-
|-id="ai_invasion"
|fronts
|ai_invasion
| 切换外国前线的可见性
|Toggles AI AI naval invasions
|
|
|-
|-id="ai_pp_log"
|fullscreen
|ai_pp_log
| 切换为填充(全屏)模式
|Prints AI use of PP to log
|
|
|-
|-id="ai_idea_desire_log"
|gbpaint [layer] [channel]
|ai_idea_desire_log
|Toggles  gradient border painting
|Prints AI desire for ideas to log. For current country only
|
|
|-
|-id="ai_force_template"
|gbreload
|ai_force_template
|Reloads  gradient borders
|Force the AI to only spend army XP on template design
|仅供开发者使用
|-
|goto_province [province  id]
|Centers  to province
|
|
|-
|-id="ai_force_equipment"
|goto_state [state id]
|ai_force_equipment
|Centers  to state
|Force the AI to only spend army XP on equipment design
|
|
|-
|-id="ai_front_id"
|guibounds(gui)
|ai_front_id
|Toggles  GUI bounds debug
|Get the address of selected group's front debug ID
|
|
|-
|-id="fow"
|hdr
|fow(debug_fow) [Province ID]
|Toggles  hdr
|Turns off fog of war, only within a province if specified.
|
|
|-
|-id="collision"
|hdr_debug
|collision(debug_collision)
|Toggles hdr debugging
|Toggles debug display of normals/bounding boxes/collision
|
|
|-
|-id="savegame"
|help [command name]
|savegame
|Print  out all console commands or a specific command description.
|Creates a savefile.
|
|
|-
|-id="savecheck"
|helphelp
|savecheck
|Double  Rainbow help.
|Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
|
|
|-
|-id="IP"
|helplog
|IP
|Print  out all console commands to game.log file.
|Shows your IP
|
|
|-
|-id="requestgamestate"
|hsv
|requestgamestate
|Converts  RGB to HSV
|Requests the gamestate from host
|
|
|-
|-id="nudge"
|human_ai
|nudge
| 打开或关闭玩家  AI
|Go to the nudge tool
|
|
|-
|-id="mapmode"
|instant_prepare
|mapmode [Mapmode type (int)]
|Instantly  prepares naval invasions
|Change mapmode.
|仅供开发者使用
|-
|instant_wargoal
|允许你迅速正当化战争理由
|
|
|-
|-id="fullscreen"
|instantconstruction(ic)
|fullscreen
| 所有建筑立即完工(对ai同样有效)
|Toggles fullscreen
|
|
|-
|-id="prices"
|instanttraining(it)
|prices
| 立即完成训练
|Price Info
|假设此时你已经开始训练若干个单位,分了10个训练线,每个生产线限制训练5个师,则在控制台输入这条指令后,当天24时,这10个师会训练完毕并立即部署,之后每天24时训练完10个师,因此以上50个师训练完需要5天。
|-
|IP
|显示你的  IP
|
|
|-
|-id="remove_core"
|ic
|remove_core [<State ID>] [<Country Tag>]
|''(参见instantconstruction)''
|Remove core. Note:Does not Work
|
|
|-
|-id="debug_zoom"
|it
|debug_zoom
|''(参见instanttraining)''
|Zooms in the game
|
|
|-
|-id="debug_types"
|manpower [<Amount>]
|debug_types
| 给玩家增加人力
|Will print the data type for all dynamic reference objects. Can only be used if using RTTI.
|
|
|-
|-id="debug_show_event_ID"
|mapmode [Mapmode type  (int)]
|debug_show_event_ID
| 改变地图模式
|Shows event ID
|
|
|-
|-id="debug_commands"
|mapnames
|debug_commands
|Toggle  map names
|Printing commandcount to message.log
|
|
|-
|-id="debug_events"
|massconquer(massc)
|debug_events
| 大规模征服工具
|Start Counting events
|
|
|-
|-id="debug_dumpevents"
|morehumans(humans) [num]
|debug_dumpevents
| 增加人口
|Dump Event data to game log
|
|
|-
|-id="debug_diploactions"
|moveunit [<Unit ID>]  [<Province ID>]
|debug_diploactions
| 将一个单位移动到指定省份
|Start Counting diplomatic actions
|
|
|-
|-id="debug_dumpdiploactions"
|nextsong
|debug_dumpdiploactions
| 更改当前播放的配乐
|Dump diplomatic action data to game log
|
|
|-
|-id="debug_assert"
|night
|debug_assert
|Toggles night
|Toggles asserts on/off
|*as  of 1.01 this does not seem to work (filed under developer-only command) This  command can be emulated via the day/night loop option at the bottom right  toolbar (shortcut key 'N')
|-
|nomapicons
|切换地图图标
|
|
|-
|-id="debug_nomouse"
|nopausetext
|debug_nomouse
| 切换暂停横幅以获得更好的屏幕截图
|Toggles mouse scrollwheel on/off
|
|
|-
|-id="debug_terrain"
|nu [number]
|debug_terrain
|Adds  the specified amount of National Unity
|Toggles Terrain on/off
|
|
|-
|-id="debug_cities"
|nudge
|debug_cities
|Go  to the nudge tool
|Toggles Cities painting mode on/off
|
|
|-
|-id="debug_water"
|nuke [number]
|debug_water
| 增加玩家核弹数量
|Toggles Water on/off
|
|
|-
|-id="debug_fronts"
|observe(spectator)
|debug_fronts
| 切换到观察者模式,不再显示消息或暂停游戏。然而,它会干扰AI的性能,还有这并不能很好地指示AI在不使用观察模式时会做什么
|Toggles interpolated fronts debug
|
|
|-
|-id="debug_off_front_snap"
|occupationpaint(op)
|debug_off_front_snap(dbg_fsnap)
|Toggles occupation painting
|Toggles offensive fronts snapping debug
|
|
|-
|-id="debug_borders"
|oos
|debug_borders
|Out  of Synch
|Toggles Borders on/off
|
|
|-
|-id="debug_trees"
|particle_editor
|debug_trees
| 生成一个粒子编辑器
|Toggles Trees on/off
|
|
|-
|-id="debug_rivers"
|pause_in_hours
|debug_rivers
| 在调用命令X小时后暂停游戏
|Toggles Rivers on/off
|
|
|-
|-id="debug_postfx"
|poll
|debug_postfx
| 查询有效事件
|Toggles PostFX on/off
|
|
|-
|-id="debug_sky"
|PostEffectVolumes.Default  [posteffect_values name]
|debug_sky
|Toggles default posteffect values
|Toggles Sky on/off
|
|
|-
|-id="debug_bloom"
|pp [number]
|debug_bloom
| 增加政治点数
|Toggles Bloom on/off
|Not  specifying the amount of political power will give the player 1000 political  power.
|-
|pp(fuhrer_mana,political_power)  [PP amount]
|给玩家政治点数
|
|
|-
|-id="debug_tooltip"
|prices
|debug_tooltip
|Price  Info
|Toggles Tooltips on/off
|
|
|-
|-id="flagsoutput"
|PrintSynchStuff
|flagsoutput [<path>]
| 打印随机计数和种子
|Creates texture atlas files from memory.
|
|
|-
|-id="cityreload"
|profilelog
|cityreload
|Prints  out the profiling informations into time.log
|Reloads the cities
|
|
|-
|-id="version"
|provtooltipdebug(tdebug)
|version
|Toggles  the debug info in province tooltip
|Show current game version
|
|
|-
|-id="debug_nogui"
| rowspan="3" |reload [file name]
|debug_nogui
| rowspan="3" |重载游戏资源
|Toggles GUI on/off
|reload  loc (重载本地化文件)
|-
|reload focus (重载国策)
|-
|reload landcombat.gui (重载陆战界面)
|-
|reloadfx  [参数:map/mapname/postfx 或者 *.fx 文件]
|重载着色器
|
|
|-
|-id="debug_volume"
|reloadinterface
|debug_volume [<Volume Delta>]
| 重新加载整个界面
|Modifies music volume
|
|
|-
|-id="debug_lockcamera"
|reloadoob [<Target  Country Tag>]
|debug_lockcamera
| 重新加载  OOBs
|Toggles Camera locked on/off
|
|
|-
|-id="debug_lines"
|reloadsupply(relsup)
|debug_lines
| 重新初始化补给系统
|Toggles Debuglines
|
|
|-
|-id="debug_entities"
|reloadtechnologies
|debug_entities
| 重新加载技术数据库
|Toggles Debug entities
|
|
|-
|-id="debug_info"
|reloadweather  [<randomseed>]
|debug_info
|Reload  and regenerate weather
|Toggles Debug info
|
|
|-
|-id="debug_particle"
|remove_core [<State  ID>] [<Country Tag>]
|debug_particle
| 移除核心.  Note:Does not Work
|Toggles Particles Debug info
|
|
|-
|-id="debug_ai_budget"
|remove_interest  [<Country tag>]
|debug_ai_budget [CountryTag]
| 从您的兴趣中删除指定的国家/地区标记
|Show ai budget data
|
|
|-
|-id="debug_textures"
|rendertype
|debug_textures
| 输出所使用的渲染后端
|Writes Texture info to application debug log
|
|
|-
|-id="debug_texture"
|requestgamestate
|debug_texture
|Requests  the gamestate from host
|draws textures like bloom
|
|
|-
|-id="debug_wireframe"
|research [<slot id>  or "all"]
|debug_wireframe
| 完成研究从科研槽或全部
|Toggles forced wireframe on/off
|
|
|-
|-id="debug_achievements_clear"
|research_on_icon_click
|debug_achievements_clear
| 点击科技树图标时研究一项技术
|Clear all achievements and user stats
|only for developer
|-id="moveunit"
|moveunit [<Unit ID>] [<Province ID>]
|Moves a unit to a province
|
|
|-
|-id="spawnactor"
|resign
|spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]
| 退出游戏
|Spawns an actor with an optional animation
|
|
|-
|-id="cameraclamp"
|run
|cameraclamp
|Runs  the specified file with list of commands
|Toggles the camera clamping
|
|
|-
|-id="provtooltipdebug"
|savecheck
|provtooltipdebug(tdebug)
|Makes  a save file (Test_01), loads the save file, makes a new savegame (Test_02).  Those save files should look the same.
|Toggles the debug info in province tooltip
|
|
|-
|-id="reloadweather"
|savegame
|reloadweather [<randomseed>]
| 保存游戏
|Reload and regenerate weather
|
|
|-
|-id="weather"
|set_cosmetic_tag  [<country tag>] [<cosmetic tag>]
|weather
|改变国家的民族精神
|Toggle weather simulation
|set_cosmetic_tag  USA SOV
|-
|set_country_flag  [<Country Flag>]
|为当前的国家添加民族精神
|Does  not work if you put another nations tag in the command such as  "set_country_flag flag AUS". The console will give a message  confirming the command, but in my testing no flag is set.
|-
|set_ruling_party  <ideology group>
|改变执政党
|可输入意识形态缩写c (communism), d (democratic), n (neutrality), f (facism)
|-
|setcontroller [country  tag] [province id]
| 设置省份拥有者
|
|
|-
|-id="debug_air_vs_land"
|setowner [country tag]  [state id]
|debug_air_vs_land(dbg_cas)
| 设置地区拥有者
|Toggle debug mode for air vs land combat.
|经测试,若在与对方战争期间将对方的一个地区设置为自己或其他非战争参与国家,则在谈判时不会出现该地区,因为它实际上已由该国家所“拥有”(own)而非“占领”(control) ,因此如果你的领土与之相连,则你依然可以在此征兵。
|-
|SetRandomCount
| 将随机计数设置为0或不变
|
|
|-
|-id="mapnames"
|sleep(wait) [time in sec]
|mapnames
|Sleep
|Toggle map names
|
|
|-
|-id="gbreload"
|spawn [<子单位类型>]  [<省份 ID>] [<数量>]
|gbreload
| 增加单位到指定的省份
|Reloads gradient borders
| 仅供开发者使用
|only for developers
|-
|-id="gbpaint"
|spawnactor  [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]
|gbpaint [layer] [channel]
|Spawns  an actor with an optional animation
|Toggles gradient border painting
|
|
|-
|-id="profilelog"
|srgb
|profilelog
|Toggles  sRGB
|Prints out the profiling informations into time.log
|
|
|-
|-id="run"
|tag [<Country tag>]
|run
| 更换当前控制的国家
|Runs the specified file with list of commands
|
|
|-
|-id="oos"
|tag_color
|oos
|Test  setting a country's color
|Out of Synch
|
|
|-
|-id="trigger_docs"
|teleport(tp) [<province_id>]
|trigger_docs(effect_docs, scripting_docs, docs)
| 传送选中陆军或海军到指定省份
|Print docs for triggers, effects, and variables
|Documentation for triggers/effects printed to game.log file
|-id="threat"
|threat [Threat amount]
|Adds or show threat level of the current tag, which is the world tension generated by the tag.
|Positive values will add to the world tension generated by the active tag, while negative values will subtract from the world tension generated by the active tag, with corresponding entries in the world tension history log. By tag-switching, it is possible to raise or lower the world tension generated by any particular country. If one does "threat 999999999" it will reset the world tension to 0.
|-id="3dstats"
|3dstats
|Toggles 3D Stats
|
|
|-
|-id="hdr"
|testevent [<Event  ID>] [<Character ID>]
|hdr
| 测试一个事件而不触发它
|Toggles hdr
|
|
|-
|-id="hdr_debug"
|testtool(test)
|hdr_debug
| 测试工具。
|Toggles hdr debugging
|
|
|-
|-id="srgb"
|theatersrebuild(trebuild)
|srgb
| 重建世界上所有的战区,所有命令都将被清理
|Toggles sRGB
|
|
|-
|-id="bloom"
|threat [Threat amount]
|bloom
|改变世界紧张度
|Toggles bloom
|If  one does "threat 999999999" it will reset the world tension to 0
|-
|time
| 当前时间
|
|
|-
|-id="PostEffectVolumes.Default"
|traderoutes
|PostEffectVolumes.Default [posteffect_values name]
| 切换贸易路线的可见性
|Toggles default posteffect values
|
|
|-
|-id="night"
|trigger_docs(effect_docs)
|night
|Print  docs for triggers and effects
|Toggles night
|*as of 1.01 this does not seem to work (filed under developer-only command)  This command can be emulated via the day/night loop option at the bottom right toolbar (shortcut key 'N')
|-id="filewatcher"
|filewatcher
|Toggles filewatcher
|
|
|-
|-id="createlean"
|tweakergui
|createlean
| 生成一个调整器  GUI
|Create LEAN textures
|
|
|-
|-id="helplog"
|update_loc [localization  tag]
|helplog
| 更新本地化标记文件
|Print out all console commands to game.log file.
|
|
|-
|-id="helphelp"
|updateequipments
|helphelp
| 更新设备数据库
|Double Rainbow help.
|
|
|-
|-id="hsv"
|updatesubunits
|hsv
| 更新子单元数据库
|Converts RGB to HSV
|
|
|-
|-id="tag_color"
|version
|tag_color
| 显示当前游戏版本
|Test setting a country's color
|
|
|-
|-id="browser"
|weather
|browser [url]
|Toggle  weather simulation
|Show browser window
|
|
|-
|-id="browser_base_url"
|whitepeace(wp)  [<country tags>]
|browser_base_url [url]
| 指定的国家之间白和。
|Set browser base url
|
|
|-
|-id="airealism"
|window(wnd) [Arguments: open/close] [window gui name]
|airealism
| 打开或关闭特定窗口
|Enable realistic AI
|An easter egg making the AI smacktalk in chats. Useless since unactivable in multiplayer and chat unactivable in singleplayer.<ref>A comment of podcat about the command been found https://www.reddit.com/r/hoi4/comments/6cb8vh/the_secrets_of_hoi4/dhtdr4x/</ref>
|-id="instant_wargoal"
|instant_wargoal
|Will allow instant justificatiion of war goals on countries
|
|
|-id="allowideas"
|allowideas
|Allows the player to pick any idea even if normally unavailable
|This overrides the <code>available</code> and <code>visible</code> triggers of ideas, but not the <code>allowed</code> trigger
|-id="release"
|release [<country tag>]
|Releases a country or releasable nation
|release slv releases Slovenia
|-
|-
|winwars
|InternationalMarket.AddSubsidyForTags [<economic capacity>] [<equipment>] [<country tag>]
| 在全国所有战争中获得最高战争分数
|Adds a subsidy for the player to buy off from a specified country.
| 该指令在  1.9.1 后无效
|ex (Adds a subsidy for the player to be able to help buy German sold light tanks for up to 5k EC): InternationalMarket.AddSubsidyForTags 5000 light_tank_chassis GER
|-
|-
|xp [XP amount]
|random_seed
| 给予玩家相应的海陆空三军经验
|Randomises the current seed the game is using
|
|The AI uses this seed to decide all their focuses and decisions.
|}<!-- 致编辑者:在该表格中插入新指令时请依据字母顺序插入 2023/1/17 -->
You can use this to generate a more favourable outcome to any ai action you dislike (e.g. you want to ally with country)
|}


== 另见 ==
== See also ==
*[[Modding|模组制作]]
*[[Modding]]


== 参考 ==
== References ==
<references />
<references />


{{Modding navbox}}
{{Modding navbox}}


[[ 分类:Interface]]
[[Category:Interface]]
[[分类:Modding]]
[[分类:Modding]]


[[en:Console commands]]
[[hoi4de:Konsolenbefehle]]
[[fr:Console commands]]
[[hoi4es:Comandos de la consola]]
[[hoi4fr:Commandes de console]]
[[hoi4pl:Polecenia konsoli]]
[[hoi4pt:Comandos do console]]
[[hoi4ru:Консольные команды]]

2024年9月21日 (六) 20:07的最新版本

This page lists the codes which may be input into the Console Window, a special debugging window which may be accessed on non-ironman games by hitting ^ , ° or tilde (~) (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. Please note that many of these commands come in and out with each DLC making some of them not work. Mods may introduce commands and more commonly, tags into the game to enhance their gameplay.

Also of note, commands may not work in ironman games by design.

List of commands

Press Shift+2, §, ~, \, `, ", ^ or ALT+2+1, or Shift+3 to access the console (key varies based on keyboard layout)

Internal IDs

参见:Countries

Console commands use internal IDs, which may be obtained in a variety of different ways.

An easy way to tell internal IDs is debug mode. debug as a console command will turn on debug mode which can provide information about certain database entries, such as focuses, national spirits (and other ideas such as laws or designers), or technologies when hovering over them, as well as obtaining information when hovering over a province of IDs of the state and the province, as well as the 3-letter country tag of the country it belongs to. Note that while modding, the console command does not do everything that the launch option does and cannot serve as a substitute.

If that is impossible, using localisation is an alternative. To do that, navigate to the folder where the game is contained, then to the /Hearts of Iron IV/localisation/english/ folder. Each file in there contains localisation keys with values that actually appear in-game assigned to them. Using a non-default text editor can also allow using the 'Search in files' function (Such as in Notepad++, Sublime Text, or Visual Studio Code) in order to search through every single localisation file at the same time to find a specified value.

Disambiguation

In this article, there are 3 types of brackets used within commands:

  • Regular brackets as in instantconstruction(ic) are used to show aliases, alternate names for the console commands. In this case, using ic or instantconstruction has the same effect in-game.
  • Square brackets as in fow [Province ID] signify an optional argument. In this case, both fow and fow 1234 will work, but may have different effects.
  • Square brackets in combination with angle brackets as in event [<event ID>] signify a mandatory argument. In this case, event generic.1 will work, but event will not.

Useful commands

Command Effect Example/Comment
help [command name] Print out all console commands or a specific command description.
tag [<Country tag>] Changes the country that the player controls.
event [<event id>] [Target country tag] Executes an event Event pages can be used to tell the IDs of events. If the event has a trigger = { ... } block, it says which triggers were met and which weren't.
add_ideas [<idea name>] Adds ideas with <id> to the country
remove_ideas [<idea name>] Removes national idea.
gain_xp [<amount>] Adds experience to selected Leader/General/Admiral gain_xp 100000(level capped at 9)
gain_xp [<trait>] Adds gainable trait to selected Leader/General/Admiral ie: gain_xp seawolf

Note To make it work with new, generic created Admirals:
1. Open 'Documents\Paradox Interactive\Hearts of Iron IV\settings.txt' with a text editor and change "save_as_binary=yes" to "save_as_binary=no".
2. Start game, load savegame and save as new file, exit game.
3. Open 'Documents\Paradox Interactive\Hearts of iron IV\Save Games' , open the newly created savegame file, search (CTRL-F) for the name of your generic created Admiral
4. Go a few lines below to max_traits=0.000 and add the following code block behind it

			in_progress={
				seawolf=0.000
				superior_tactician=0.000
				spotter=0.000
				fly_swatter=0.000
				ironside=0.000
				air_controller=0.000
			}

5. Make sure to save the file with ANSI encoding format.
6. Start game, load save game, use gain_xp command, enjoy.
(Optional turn back on binarization in settings.txt)

cp [<amount>] Adds Command Power cp 100 (capped at 100)
st [<amount>] Adds Stability st 100 (capped at 100)
add_war_support(ws) [<amount>] Adds War Support ws 100 (capped at 100)
allowtraits Allows free assignment of general traits
add_equipment(ae) [<equipment amount>] [<equipment name>] Adds equipment Equipment uses the basic name so 'ae 1000 infantry_equipment_1'.You can only add researched equipment. Does not support Naval equipment. (with the exception of convoy: 'ae 1000 convoy_1') To add ships, consider using instantconstruction(ic) (ic also effects AI).

To add modified equipment, you have to address it by given name. Example: You create a variant of 'Matilda LP'-tank with better Armor and Main Gun and name it 'Matilda LP Mk. IV'. Now use 'add_equipment 1000 Matilda LP Mk. IV'.

add_latest_equipment(ale) [<equipment amount>] Gives player amount of latest equipment variants To add only a specific type of your latest equipment, you have to address it's given name. Example: You create a variant of 'Matilda LP'-tank with better Armor and Main Gun and name it 'Matilda LP Mk. IV'.

Now use 'add_latest_equipment 1000 Matilda LP Mk. IV'.

addfunds Adds funds to all MIOs Adds 1000 funds to every MIO (military industrial organisation)
addTaskCapacity [number] Adds task capacity to all MIOs Defaults to 1 if no input given.

To add task capacity to only a specific MIO, you will need to find the MIO id in \Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt Then you use addTaskCapacity [<MIO id>] [number]

addSize [number] Adds trait points to all MIOs Defaults to 1 if no input given.

To add trait points to only a specific MIO, you will need to find the MIO id in \Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt Then you use addSize [<MIO id>] [number]

add_cic_bank [number] Adds Economic Capacity Surplus for the player in the International Market Defaults to 1 if no input given
whitepeace(wp) [<country tags>] White peace with the specified countries.
teleport(tp) Activates the Teleportation tool Can teleport units where ever you tell them to go (right click a province with a selected unit)
allowdiplo(adiplo,nocb) Allows to use all diplomatic actions for no matter the rules. (Can declare war without justification) This is likely the most effective way of wanting to start a war without needing to wait for the justification. If you only want instant justification and not the extra options it comes with, then use (instant_wargoal).
debug_crash(crash) Crashes the game.
debug_nuking Allows to nuke every province without checking any conditions.
instantconstruction (ic) Toggles instant construction cheat. Affects AI. Ships are also constructed instantly.
research [<slot id> or "all"] Researches a technology from research slot or all. Research all will instant research all technologies
research_on_icon_click (roic) Research a technology when clicking on technology tree icon Will Allow you to research an item without its prerequisite or two mutually exclusive items
annex [<Target Country Tag> or "all"] Begin annex/annexes the specified tag annex USA or annex d01 or annex all
puppet [<Puppeteer Country Tag>] [<Puppet Target Country Tag>] Turns the target country into a puppet of the puppeteer puppet GER CZE (Czechoslovakia becomes a puppet of German Reich)
manpower [amount] Adds manpower to player Defaults to 10 million if the number isn't specified.
add_opinion [<Country tag>] Add opinion to/from tag Adds 100 opinion (hardcoded number) to and from target country (add_opinion ENG for instance). A successfull call prints "<country> have 100 more opinion about you" and it appears as "cheat_opinion_modified_good" in the diplomacy screen
observe(spectator) Switches to play no country at all, and no longer shows messages or pauses the game. However, it also interferes with AI performance and is not a good indication of what the AI will do if observe mode is not used.
tdebug Toggles Debug info Helpful for finding nation tags and ID's
occupationpaint(op) Toggles occupation painting. If used with country tag occupies all of their owned, not controlled, land, op JAP
setowner [<country tag>] Sets state owner Select the state you would like to set owner as. Select a state by clicking it. You need to click the state as the state id no longer works.
setcontroller [<country tag>] [province id] Sets province controller
xp [<XP amount>] Gives Army, navy and air experience to player Can be used once per day
pp(fuhrer_mana,political_power) [PP amount] Gives(or removes) political power to player Defaults to 1000 if the amount is unset.
fuel [<amount>] Adds Fuel fuel 100000 (capped at your deposits capacity, adding much more will result in decreasing fuel)
civilwar [<ideology>] [<target country tag>] Spawns a civil war civilwar fascism ENG :

Other Valid ideologies "communism" "democratic" "neutrality"

add_party_popularity <ideology group> <value> Adds party popularity ideology group has shortcuts d f n c for vanilla HOI groups.
set_ruling_party <ideology group> Sets ruling party ideology group has shortcuts d f n c for vanilla HOI groups.
Focus.AutoComplete (fa) Allows national focuses to be instantly finished Affects AI
Focus.NoChecks Ignores focus requirements Affects AI
Focus.IgnorePrerequisites Ignores focus prerequisites Allows you to start a focus in the middle of the tree. Affects AI
Decision.FastRemove Shortens decisions to 1 day
Decision.NoChecks Ignores decision requirements Also disables cost, affects AI
instant_prepare Instantly prepares naval invasions Only works in debug mode.
instanttraining (it) Instantly trains divisions and ships Affects AI
nuke [number] Adds nukes Add 100 or 1000
ai_accept AI will accept all diplomatic offers
add_core <state_id> Adds cores
Agency.Instant Makes everything regarding agencies instant. Equivalent to a combination of Operation.Instant, IntelNetwork.Instant, Agency.InstantSlotUnlock, and Agency.Autocomplete
Agency.InstantSlotUnlock Removes wait time between agent recruits
Agency.Autocomplete Instantly completes agency upgrades
prevent_operative_detection Your operatives/spies won't be detected anymore
force_operative_detection Your operatives/spies will be detected
Operation.instant Instantly finishes all operations Might affect ai
agency.keepexcessoperatives
deleteallunits(delall) [country] Delete all armies and fleets of the specified countries. deleteallunits SPR
deleteallunitsbut(delallbut) [country] Delete all countries' armies and fleets, with the exception of one country. delallbut SPR
add_autonomy [<Target Country Tag>] [num] Changes a country's autonomy level add_autonomy PHI -200
resistance Increases resistance in the selected province by set amount ex: (selects one of the provinces in Berlin) resistance 100
compliance Increases compliance in the selected province in game by set amount ex: (selects one of the provinces in Danzig) compliance 100
add_intel [<Country tag 1>] [Country Tag 2] [civilian,army,navy,airforce]=[number]

add_intel [<Target Country tag>] [civilian,army,navy,airforce]=[number]

Sets the inputted intel the first tag has against the second tag. The set intel amount is a static value (will be permanent for the rest of the game). ex (sets intel player has against France to max): add_intel FRA

ex (sets army intel Germany has against USA to 20%): add_intel GER USA army=20

ex (sets airforce and civilian intel Player has against Japan to 90% and 76% respectively): add_intel JAP airforce=90 civilian=76

add_mines Maximises player owned naval mines in the selected regions
acclimization [<climate type>] [<number>] Sets the selected division's acclimization to the specified climate type and its percentage (reduces penalties from cold/hot weather or temperature debuffs) ex: acclimization cold_climate 75

ex: acclimization hot_climate 20 Note that it resets the opposite climate type to 0%

debug_smooth Toggle framesmoothing Can increase game speed significantly, depending on system typically between 10 and 35 percent

Modding-useful commands

Several other commands previously mentioned, such as event, are useful in modding too.

Command Effect Example/Comment
guibounds(gui) Toggles the GUI bounds debug, allowing to test for different window sizes easier. Also grants the name of the sprite and the interface element the player is hovering on, allowing to find the location of the image by searching every /Hearts of Iron IV/interface/*.gfx file at the same time.
set_var [<variable>] [<value>] Changes the value of a variable to the specified value.
get_var [<variable>] Shows the value of a variable in the console
list_vars Lists the variables set in the selected scope and their values.
set_country_flag [<Country Flag>] Adds a country flag to currently played nation. Does not work if you put another nations tag in the command such as "set_country_flag flag AUS", even if it says in console that it does.
set_global_flag [<Global Flag>] Adds a global flag.
list_flags Lists currently active flags in the console windows. Context senstive if nothing (global_flag), country (country_flag) or state (state_flag) is selected when entering this command.
trigger [<scripted_trigger_name>] Checks if a scripted trigger is true or not.
effect (eval_effect) (e) [<scripted_effect_name>] Executes a scripted effect, within the currently selected scope. Example: e POL_remove_danzig_effect on a state will execute that effect on the state.
ai [country tag...] Toggles the AI on or off Without parameters toggles the AI for all countries. With parameters, toggles exceptions for those countries from the general rule. Can be used to confirm if a crash is AI-related.
aiview Enable AI debug info
human_ai Makes the AI control the country currently led by the player while the player also remains in control. AI will also create logs within /Hearts of Iron IV/logs/scripted_ai.log in the user directory.
set_cosmetic_tag [<country tag>] [<cosmetic tag>] changes the name and flag of the country set_cosmetic_tag USA SOV
reload [<type>] Reloads files of a given type. Also accepts individual files within the /Hearts of Iron IV/interface/ folder. Equivalent to the effect done automatically when saving over a file with debug mode turned on via launch options.
  • reload loc (reloads localisation files)
  • reload focus (reloads focuses)
  • reload landcombat.gui (reloads land combat interface)
reloadoob [<Target Country Tag>] Reloads orders of battle.
reloadinterface Reloads the entire interface
reloadtechnologies Reloads the technology database
updateequipments Updates the equipment database
updatesubunits Updates the subunit database
update_loc [localization tag] Updates the localization tag file
error Opens the error log file. If there are special characters in the folder path, this won't work. Equivalent to pressing on the error dog if enabling debug mode in launch options.
imgui Controls ImGui UIs. Use imgui show to list the available subcommands. These UIs cover a wide variety of useful modding tools, such as script profiling, AI debugging, and listing characters.
goto_province [province id] Moves the camera position to the specified province.
goto_state [state id] Moves the camera position to the specified state.

Other in-game commands

Command Effect Example/Comment
ShowTechBonus Unknown what it does, however with the name we can make a guess it has to do something with tech bonuses. Filed as developer only.
normals Unknown what it does. Filed as developer only.
rendertype Reports what render backend is used
tweakergui Spawns a tweaker GUI
time What time is it?
reloadfx [Arguments: map/mapname/postfx or *.fx filename] Reloads the shader
particle_editor Spawns a particle editor
analyzetheatres(anth) Analyze theatres for errors.
massconquer(massc) Mass conquer tool. Requires direct province names. Filed under developer only.
aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>] Spawns an air combat in desired location.
fronts Toggle visibility of the foreign fronts
ai_front_dump (aifrontdump) Dump AI front data to log file, needs to have a unit selected
traderoutes Toggle visibility of trade routes
debug_tactics Toggle visibility of debug tooltip for tactics
reloadsupply(relsup) Reinitializes the supply systems.
deltat [<speed factor>] control animation speeds
building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>] Changes specified building health
nomapicons Toggles map icons.
nopausetext Toggles the pausebanner for nicer screenshots.
nextsong Changes the currently playing soundtrack.
combatsound How often does the combat view give a random sound? 0-50
morehumans(humans) [num] Adds more humans
window(wnd) [Arguments: open/close] [window gui name] Opens or closes the specified window
poll Polls valid Events
pause_in_hours Pauses the game after X hours have passed after command is called
winwars Gives max war score in all wars for the country Command no longer exists as of patch 1.9.1
testevent [<Event ID>] [<Character ID>] Tests an event without triggering it
resign Resign from the game
add_interest [<Country tag>] Add specified country tag to your interest
remove_interest [<Country tag>] Removes specified country tag from your interest
add_diplo Adds diplomatic entroute
PrintSynchStuff Prints random count and seed
SetRandomCount Sets the random count to 0 or arg
ai_invasion Toggles AI AI naval invasions
ai_pp_log Prints AI use of PP to log
ai_idea_desire_log Prints AI desire for ideas to log. For current country only
ai_force_template Force the AI to only spend army XP on template design
ai_force_equipment Force the AI to only spend army XP on equipment design
ai_front_id Get the address of selected group's front debug ID
fow(debug_fow) [Province ID] Turns off fog of war, only within a province if specified.
collision(debug_collision) Toggles debug display of normals/bounding boxes/collision
savegame Creates a savefile.
savecheck Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
IP Shows your IP
requestgamestate Requests the gamestate from host
nudge Go to the nudge tool
mapmode [Mapmode type (int)] Change mapmode.
fullscreen Toggles fullscreen
prices Price Info
remove_core [<State ID>] [<Country Tag>] Remove core. Note:Does not Work
debug_zoom Zooms in the game
debug_types Will print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_show_event_ID Shows event ID
debug_commands Printing commandcount to message.log
debug_events Start Counting events
debug_dumpevents Dump Event data to game log
debug_diploactions Start Counting diplomatic actions
debug_dumpdiploactions Dump diplomatic action data to game log
debug_assert Toggles asserts on/off
debug_nomouse Toggles mouse scrollwheel on/off
debug_terrain Toggles Terrain on/off
debug_cities Toggles Cities painting mode on/off
debug_water Toggles Water on/off
debug_fronts Toggles interpolated fronts debug
debug_off_front_snap(dbg_fsnap) Toggles offensive fronts snapping debug
debug_borders Toggles Borders on/off
debug_trees Toggles Trees on/off
debug_rivers Toggles Rivers on/off
debug_postfx Toggles PostFX on/off
debug_sky Toggles Sky on/off
debug_bloom Toggles Bloom on/off
debug_tooltip Toggles Tooltips on/off
flagsoutput [<path>] Creates texture atlas files from memory.
cityreload Reloads the cities
version Show current game version
debug_nogui Toggles GUI on/off
debug_volume [<Volume Delta>] Modifies music volume
debug_lockcamera Toggles Camera locked on/off
debug_lines Toggles Debuglines
debug_entities Toggles Debug entities
debug_info Toggles Debug info
debug_particle Toggles Particles Debug info
debug_ai_budget [CountryTag] Show ai budget data
debug_textures Writes Texture info to application debug log
debug_texture draws textures like bloom
debug_wireframe Toggles forced wireframe on/off
debug_achievements_clear Clear all achievements and user stats only for developer
moveunit [<Unit ID>] [<Province ID>] Moves a unit to a province
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] Spawns an actor with an optional animation
cameraclamp Toggles the camera clamping
provtooltipdebug(tdebug) Toggles the debug info in province tooltip
reloadweather [<randomseed>] Reload and regenerate weather
weather Toggle weather simulation
debug_air_vs_land(dbg_cas) Toggle debug mode for air vs land combat.
mapnames Toggle map names
gbreload Reloads gradient borders only for developers
gbpaint [layer] [channel] Toggles gradient border painting
profilelog Prints out the profiling informations into time.log
run Runs the specified file with list of commands
oos Out of Synch
trigger_docs(effect_docs, scripting_docs, docs) Print docs for triggers, effects, and variables Documentation for triggers/effects printed to game.log file
threat [Threat amount] Adds or show threat level of the current tag, which is the world tension generated by the tag. Positive values will add to the world tension generated by the active tag, while negative values will subtract from the world tension generated by the active tag, with corresponding entries in the world tension history log. By tag-switching, it is possible to raise or lower the world tension generated by any particular country. If one does "threat 999999999" it will reset the world tension to 0.
3dstats Toggles 3D Stats
hdr Toggles hdr
hdr_debug Toggles hdr debugging
srgb Toggles sRGB
bloom Toggles bloom
PostEffectVolumes.Default [posteffect_values name] Toggles default posteffect values
night Toggles night *as of 1.01 this does not seem to work (filed under developer-only command) This command can be emulated via the day/night loop option at the bottom right toolbar (shortcut key 'N')
filewatcher Toggles filewatcher
createlean Create LEAN textures
helplog Print out all console commands to game.log file.
helphelp Double Rainbow help.
hsv Converts RGB to HSV
tag_color Test setting a country's color
browser [url] Show browser window
browser_base_url [url] Set browser base url
airealism Enable realistic AI An easter egg making the AI smacktalk in chats. Useless since unactivable in multiplayer and chat unactivable in singleplayer.[1]
instant_wargoal Will allow instant justificatiion of war goals on countries
allowideas Allows the player to pick any idea even if normally unavailable This overrides the available and visible triggers of ideas, but not the allowed trigger
release [<country tag>] Releases a country or releasable nation release slv releases Slovenia
InternationalMarket.AddSubsidyForTags [<economic capacity>] [<equipment>] [<country tag>] Adds a subsidy for the player to buy off from a specified country. ex (Adds a subsidy for the player to be able to help buy German sold light tanks for up to 5k EC): InternationalMarket.AddSubsidyForTags 5000 light_tank_chassis GER
random_seed Randomises the current seed the game is using The AI uses this seed to decide all their focuses and decisions.

You can use this to generate a more favourable outcome to any ai action you dislike (e.g. you want to ally with country)

See also

References

  1. A comment of podcat about the command been found https://www.reddit.com/r/hoi4/comments/6cb8vh/the_secrets_of_hoi4/dhtdr4x/

hoi4de:Konsolenbefehle hoi4es:Comandos de la consola hoi4fr:Commandes de console hoi4pl:Polecenia konsoli hoi4pt:Comandos do console hoi4ru:Консольные команды