钢铁雄心4
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问钢铁雄心4百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
注意:请勿在本站上传违反中华人民共和国法律的相关项目及文本,包括但不限于涉及违法犯罪、历史虚无主义、侮辱先烈、暴力色情等,一经发现将立刻锁定证据并上报网警。
欢迎所有对百科感兴趣的同学加入钢4编辑群:
1137478871
。
阅读
查看源代码
查看历史
讨论
查看“控制台指令”的源代码
←
控制台指令
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|Timeless}}本页列出了可以输入控制台窗口的代码,控制台窗口是一个特殊的调试窗口,可以在非铁人游戏模式下使用键盘上的{{key press|^}}键, {{key press|°}} 键或左上角的{{Key press|~}}键来访问(按键根据键盘布局变化而变化)。按{{Key press|↑}}键或{{Key press|↓}}键可以在控制台窗口查阅执行过的命令。许多代码可以通过重复打出同一条命令来切换启动和关闭状态,但有的代码则需要重新加载游戏存档或退出游戏重新启动来切换它们的状态。请注意,有些代码在没有启用DLC时是没有作用的。mod可能会在游戏中引入新的命令、决议和国家tag。 铁人模式下不能使用控制台代码。 ==指令列表== 使用 Shift+2, §, ~, \, `, ", ^ or ALT+2+1, or Shift+3 启用控制台(具体按键取决于键盘布局) === 内部 ID === {{see also|Countries}} 控制台命令使用内部 ID,可以通过多种不同方式获取。 得到内部 ID 的一个简单方法就是调试模式。在控制台窗口输入debug命令可以切换调试模式,当鼠标悬停在国家焦点、国家精神(以及其他理念,例如法律或设计师)或科技上时,可以或的某些数据库条目的信息;当鼠标悬停在某个省份上时获取该州和省份的 ID 信息,以及该州所属国家的 3 个字母的国家tag。请注意,在进行mod制作时,控制台命令不会执行启动选项的所有功能,也不能替代启动选项。 如果这不不够,使用本地化查询是一种替代方法。为此,请前往到包含游戏的文件夹,然后找到到/Hearts of Iron IV/localisation/english/文件夹。其中的每个文件都包含了实际游戏内所分配的本地化键值。使用非默认文本编辑器还可以允许使用“在文件中搜索”功能(例如在 Notepad++、Sublime Text 或 Visual Studio Code 中),以便同时搜索每个本地化文件以查找指定的值。 === 解释说明 === 在本页文本中,使用了3种类型的括号: * 普通括号,如 <code>instantconstruction(ic)</code> 用于同样效果的两种不同书写形式,即控制台命令的替代名称。在这种情况下,在游戏中使用 <code>ic</code> 和<code>instantconstruction</code> 具有相同效果 * 方括号,如<code>fow [Province ID]</code> 表示可以选择性填写数值,或者不填写数值。例如 <code>fow</code> 和 <code>fow 1234</code> 都可以使用,但是效果可能不一样 * 方括号和尖括号组合使用,如 <code>event [<event ID>]</code> 表示必须填写的参数,如 <code>event generic.1</code> 有效, 但 <code>event</code> 无效 === 常用指令 === {| class="wikitable sortable" ! Command ! Effect ! Example/Comment |-id="help" |help [command name] |打印出所有控制台命令或特定命令的描述 | |-id="tag" |tag [<Country tag>] |切换玩家正在控制的国家 | |-id="event" |event [<event id>] [Target country tag] |执行事件 |[[Events#Event_pages|事件列表]] 展示了大部分游戏事件的ID. 如果事件有 <code>trigger = { ... }</code> 的提示, 则说明了这个事件触发所需要的条件有哪些已满足,有哪些没满足 |-id="add_ideas" |add_ideas [<idea name>] |添加国家精神 | |-id="remove_ideas" |remove_ideas [<idea name>] |移除国家精神 | |-id="gain_xp" |gain_xp [<amount>] |给选中的特工/陆军将领/海军将领添加经验 |gain_xp 100000可直接达到等级上限9级 |-id="gain_xp" |gain_xp [<trait>] |添加指定性质给所选特工/陆军将领/海军将领 |例子: gain_xp seawolf 为所选将领添加海狼性质<br/> '''注意''' 为了让此代码作用于新招募的通用海军将领:<br /> 1. 用文本编辑器打开 '' 'Documents\Paradox Interactive\Hearts of Iron IV\settings.txt' ''并将 "save_as_binary=yes" 改为 "save_as_binary=no".<br /> 2. 启动游戏, 载入游戏存档并将其保存为一个新的存档,然后退出游戏<br /> 3. 打开''<nowiki/>'Documents\Paradox Interactive\Hearts of iron IV\Save Games' 文件夹'', 打开新创建的游戏存档文件,查询 (CTRL+F) 你创建的通用海军将领的名字<br /> 4. 找到 '''max_traits=0.000''' 在后面添加下述代码模块 <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. 确保以'''ANSI'''编码格式保存文件<br /> 6. 启动游戏,载入存档,即可使用gain_xp指令<br /> (在settings.txt中可以选用是否启用二值化) |-id="cp" |cp [<amount>] |添加指挥点数 |cp 100 (上限为100) |-id="st" |st [<amount>] |添加稳定度 |st 100 (上限为100) |-id="add_war_support" |add_war_support(ws) [<amount>] |添加战争支持度 |ws 100 (上限为 100) |-id="allowtraits" |allowtraits |允许为所有陆军将领和海军将领自由添加一般性质 | |-id="add_equipment" |add_equipment(ae) [<equipment amount>] [<equipment name>] |添加指定数量装备 |装备使用基本格式为“ae 1000 infantry_equipment_1”。你只能添加已研究过的装备。不支持海军装备。(除了运输船:‘ae 1000 convoy_1’)要添加船只,可以考虑使用即时建造指令 instantconstruction(ic)(但ic也会影响AI) 要添加修改过的设备,你必须用它的名字。例如:你为'Matilda LP'-tank装配了更好的装甲模块和主炮模块,并把它命名为'Matilda LP Mk.IV'。现在你想要获得1000数量的该装备就要使用代码“add_equipment 1000 Matilda LP Mk. IV”。 |-id="add_latest_equipment" |add_latest_equipment(ale) [<equipment amount>] |添加指定数量最新装备 |要添加特定类型的最新设备,必须注明其名称。例如:你创造了一款拥有更好装甲和主炮的'Matilda LP'-tank的变种装备并将其命名为'Matilda LP Mk.IV' 那么你就要使用'add_latest_equipment 1000 Matilda LP Mk.IV'或者'ale 1000 Matilda LP Mk.IV'指令来获得指定数量的'Matilda LP Mk.IV'装备 |- |addfunds [number] |给所有军工机构添加指定资金 |默认为700 addfunds 1000给所有军工机构添加1000资金 |- |addTaskCapacity [number] |给所有军工机构添加指定任务容量 |默认为1 要为特定的军工机构添加任务容量,你需要从 ''\Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt'' 中找到你所需要的军工机构的id 然后使用指令 addTaskCapacity [<MIO id>] [number] |- |addSize [number] |为所有军工机构添加指定特质点数 |默认为1 要为特定的军工机构添加性质点数,你需要从in''\Hearts of Iron IV\common\military_industrial_organization\organizations\<your country's tag>.txt'' 中找到你所需要的军工机构的id 然后使用指令 addSize [<MIO id>] [number] |- |add_cic_bank [number] |为国际市场添加指定数量的经济产能盈余 |默认为1 |-id="whitepeace" |whitepeace(wp) [<country tags>] |与制定国家白和 | |-id="teleport" |teleport(tp) |部队快速移动 |可以传送单位到指定地方(选择想要传送的单位,右键点击目标省份) |-id="allowdiplo" |allowdiplo(adiplo,nocb) |允许无视规则使用所有外交行动(可以无理由宣战) |这是不需要战争目标就可以宣战的最有效的方法。如果你想要立刻完成正当化战争目标可以使用instant_wargoal |-id="debug_crash" |debug_crash(crash) |使游戏崩溃 | |-id="debug_nuking" |debug_nuking |允许无视条件对每个省份进行核打击 | |-id="instantconstruction" |instantconstruction (ic) |及时建造 |对AI有效,舰船也会立刻建造完毕,选择建筑点击目标省份即可建造完成,铁路和正在建造中的建筑需要隔一天完成 |-id="research" |research [<slot id> or "all"] |立刻完成指定科研槽正在研究的科技或所有科技 |research all 将立刻研究完成所有科技(对学说同样有效) |-id="research_on_icon_click" |research_on_icon_click (roic) |点击科研树图标即可完成对应科技 |允许在没有完成前置科技的情况下研究科技,也可以研究两个互斥的科技 |- id="sp_breakthrough" |sp_breakthrough [<number>] sp_breakthrough [<number> optional <specialisation>] (sp_br) |为所有实验设施增加特殊项目突破点 |例: sp_breakthrough 1 ex: sp_br 20 specialization_land Specialization are: specialization_land, specialization_air, specialization_naval, specialization_nuclear (对于mod添加的内容,它在mod内查询 Path\common\special_projects\specialization) |- id="sp_fast" |sp_fast |跳过原型研发阶段,直接进入项目迭代阶段 | |- id="sp_instant" |sp_instant |立刻完成当前正在进行的特殊项目 | |- id="sp_available" |sp_available |解锁/锁定所有未完成研究前置条件的特殊项目 |可以在没有研究“原子能研究”科技的情况下开启核专项项目 |- id="sp_unlock_all" |sp_unlock_all |所有的特殊项目都是可见和可用的。无论是否满足前置科技需求,以及前置项目是否完成 | |- id="sp_research_all" |sp_research_all (sp_ra) |研究所有特殊项目。如果没有科学家存在,它将创造一个,如果有科学但没有分配,它将任意挑选一个。 | |- id="sp_prototype_reward" |sp_prototype_reward |在项目中触发一个特定的原型奖励 | |- id="sp_add_scientist" |sp_add_scientist sp_add_scientist [<level> (optional)] [<specialisation> (optional)] | 增加一个没有专业或指定专业/技能等级的普通科学家 |sp_add_scientist 3 nuclear sp_add_scientist 1 |- |sp_add_mastermind | 增加一个具有所有专业和最高技能等级的普通科学家 | |- |sp_set_selected_scientist_level [<level>] |调整所选科学家等级 |需要打开目标科学家所属研究机构的GUI |- |sp_add_selected_scientist_trait [<trait>] |为所选科学家添加指定特质 |例如: sp_add_selected_scientist_trait scientist_trait_brilliant_theorist 为选定的科学家增加杰出的科学家特征。需要打开目标科学家所属研究机构的GUI。特质ID可以在"Hearts of Iron IV\common\scientist_traits\00_traits.txt"查询 |- id="annex" | annex [<Target Country Tag> or "all"] |吞并指定国家或全世界 |annex USA or annex d01 or annex all |- id="puppet" |puppet [<Puppeteer Country Tag>] [<Puppet Target Country Tag>] |傀儡指定国家 |puppet GER CZE 德意志帝国(GER)将傀儡捷克斯洛伐克(CZE) |- id="manpower" | manpower [amount] |添加指定数量人力 |默认1000w |- id="add_opinion" |add_opinion [<Country tag>] |为指定国家添加评价(好感) |add_opinion ENG为联合王国增加和获得100点意见 成功使用指令,会在控制台窗口显示"<country> have 100 more opinion about you" 在外交界面会显示 "cheat_opinion_modified_good"(良好评价作弊修正) |- id="observe" |observe(spectator) | 观察者模式,切换到不玩任何国家,不再显示消息或暂停游戏。然而,它也会干扰AI的性能,并且不能很好地展示AI在不使用观察模式时会做什么。 | |- id="tdebug" |tdebug |切换调试信息 |有助于查询国家tag和ID |- id="occupationpaint" |occupationpaint(op) | 切换占领绘图。与国家tag一起使用,则占领其所占领但并未实际控制的土地 |op JAP |- id="setowner" |setowner [<country tag>] |改变省份地块的所有者 |通过点击选择想要改变的所有者的省份的地块,然后输入代码 例:setowner JAP |- id="setcontroller" |setcontroller [<country tag>] [province id] |改变省份地块的控制者 | |- id="xp" |xp [<XP amount>] |添加海陆空三军经验 |默认500 |- id="pp" |pp(fuhrer_mana,political_power) [PP amount] |添加指定数量政治点数 |默认1000 |- id="fuel" |fuel [<amount>] |添加燃油 |fuel 100000 (以燃油储备容量为上限,添加更多会导致燃油变少) |- id="civilwar" |civilwar [<ideology>] [<target country tag>] |引发内战 |civilwar fascism ENG 引发英国法西斯内战 其他有效意识形态 "communism" "democratic" "neutrality" |- id="add_party_popularity" |add_party_popularity <ideology group> <value> |增加党派支持率 |在原版游戏中可以简写为 d(民主) f(法西斯) n(中立) c(共产) |- id="set_ruling_party" | set_ruling_party <ideology group> |设置执政党 |在原版游戏中可以简写为 d(民主) f(法西斯) n(中立) c(共产) |- id="Focus.AutoComplete" |Focus.AutoComplete (fa) |快速完成国策 | 对AI有效 |- id="Focus.NoChecks" |Focus.NoChecks |忽略国策要求条件 | 对AI有效 |- id="Focus.IgnorePrerequisites" |Focus.IgnorePrerequisites |忽略国策所需前置国策条件 | 允许从国策树中间开始点国策,对AI有效 |- id="Decision.FastRemove" |Decision.FastRemove |将国策所需时间缩短为一天 | |- id="Decision.NoChecks" | Decision.NoChecks | 忽略决议所需先决条件 |同时也禁用消耗,对AI有效 |- id="instant_prepare" |instant_prepare |立即完成海军入侵准备 |只在debug模式下有用. |- id="instanttraining" |instanttraining (it) |立刻完成师训练和军舰制造 |对AI有效 |- id="nuke" |nuke [number] |添加指定数量核弹 |添加100或1000 |- id="ai_accept" |ai_accept |AI将接受所有外交提议 | |- id="add_core" |add_core <state_id> |添加核心到指定ID省份 | |- id="Agency.Instant" |Agency.Instant |使情报机构的所有操作立刻完成 |相当于 Operation.Instant, IntelNetwork.Instant, Agency.InstantSlotUnlock, 和 Agency.Autocomplete的结合 |- id="Agency.InstantSlotUnlock" |Agency.InstantSlotUnlock |立刻完成间谍招募 | |- id="Agency.Autocomplete" |Agency.Autocomplete |立刻完成情报机构的升级 | |- id="prevent_operative_detection" |prevent_operative_detection |使特工/间谍不会被发现 | |- id="force_operative_detection" |force_operative_detection |使特工/间谍会被发现 | |- |Operation.instant |立即完成所有行动 |可能影响AI |- id="agency" | agency.keepexcessoperatives | | |- id="deleteallunits" |deleteallunits(delall) [country] | 删除指定国家所有陆军和海军 | deleteallunits SPR 删除西班牙国的所有陆军和海军 |- id="deleteallunitsbut" |deleteallunitsbut(delallbut) [country] |删除除指定国家外的所有国家的陆军和海军 |delallbut SPR 删除除西班牙国外所有国家的陆军和海军 |- id="add_autonomy" |add_autonomy [<Target Country Tag>] [num] |改变一个国家的自治点数 |add_autonomy PHI -200 降低菲律宾国200的自治点数 |- id="resistance" |resistance | 为所选省份添加一定抵抗力量 |例: (选择省份柏林) resistance 100 |- id="compliance" |compliance |为所选省份添加一定顺从度 |例: (选择省份但泽) 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] |添加对指定国家的民政/陆军/海军/空军的情报值,设定的情报值是一个静态值(在剩下的游戏过程中将会是永恒的) |例 (玩家对法国情报值设为最大): add_intel FRA 例 (玩家对美国陆军情报值为20%): add_intel GER USA army=20 例 (玩家对日本空军情报值为 90% 民政情报值为 76%): add_intel JAP airforce=90 civilian=76 |- |add_mines |将玩家在选定海域内水雷数设定为最大值 | |- |acclimization [<climate type>] [<number>] |设置所选师对指定气候类型的适应度及其百分比(减少来自冷/热天气或温度减值的惩罚) |例: acclimization cold_climate 75 例: acclimization hot_climate 20 注意,这可能会将相反的气候设置为 0% |- id="debug_smooth" |debug_smooth |切换平滑帧 |可以显著提高游戏速度,但具体取决于系统,通常在10%到35%之间 |} ===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" |get_var [<variable>] |Shows the value of a variable in the console | |- id="list_vars" |list_vars |Lists the variables set in the selected scope and their values. | |- id="set_country_flag" |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. |- id="set_global_flag" |set_global_flag [<Global Flag>] |Adds a global flag. | |- id="list_flags" |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. |- id="trigger" |trigger [<scripted_trigger_name>] |Checks if a scripted trigger is true or not. | |- id="effect" |effect (eval_effect) (e) [<scripted_effect_name>] | 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" |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 {{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) * reload focus (reloads focuses) *reload landcombat.gui (reloads land combat interface) |- id="reloadoob" | reloadoob [<Target Country Tag>] |Reloads orders of battle. | |- id="reloadinterface" |reloadinterface |Reloads the entire interface | |- id="reloadtechnologies" |reloadtechnologies |Reloads the technology database | |- id="updateequipments" |updateequipments |Updates the equipment database | |- id="updatesubunits" |updatesubunits |Updates the subunit database | |- id="update_loc" |update_loc [localization tag] |Updates the localization tag file | |- id="error" |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. |- 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" |goto_province [province id] |Moves the camera position to the specified province. | |- id="goto_state" | goto_state [state id] |Moves the camera position to the specified state. | |} ===Other in-game commands === {| class="wikitable sortable" !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. | |- id="rendertype" | rendertype |Reports what render backend is used | |- id="tweakergui" |tweakergui |Spawns a tweaker GUI | |- id="time" |time | What time is it? | |- id="reloadfx" |reloadfx [Arguments: map/mapname/postfx or *.fx filename] |Reloads the shader | |- id="particle_editor" |particle_editor |Spawns a particle editor | |- id="analyzetheatres" |analyzetheatres(anth) |Analyze theatres for errors. | |- id="massconquer" | massconquer(massc) |Mass conquer tool. Requires direct province names. Filed under developer only. | |- id="aircombat" |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. | |- id="fronts" |fronts |Toggle visibility of the foreign fronts | |- id="ai_front_dump" |ai_front_dump (aifrontdump) |Dump AI front data to log file, needs to have a unit selected | |- id="traderoutes" |traderoutes |Toggle visibility of trade routes | |- id="debug_tactics" |debug_tactics |Toggle visibility of debug tooltip for tactics | |- id="reloadsupply" |reloadsupply(relsup) |Reinitializes the supply systems. | |- id="deltat" |deltat [<speed factor>] |control animation speeds | |- id="building_health" |building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>] |Changes specified building health | |- id="nomapicons" |nomapicons |Toggles map icons. | |- id="nopausetext" |nopausetext |Toggles the pausebanner for nicer screenshots. | |- id="nextsong" |nextsong |Changes the currently playing soundtrack. | |- id="combatsound" | combatsound |How often does the combat view give a random sound? 0-50 | |- id="morehumans" |morehumans(humans) [num] |Adds more humans | |- id="window" |window(wnd) [Arguments: open/close] [window gui name] |Opens or closes the specified window | |- id="poll" | poll |Polls valid Events | |- id="pause_in_hours" |pause_in_hours |Pauses the game after X hours have passed after command is called | |- id="winwars" |winwars |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" | resign |Resign from the game | |- id="add_interest" |add_interest [<Country tag>] |Add specified country tag to your interest | |- id="remove_interest" |remove_interest [<Country tag>] |Removes specified country tag from your interest | |- id="add_diplo" |add_diplo |Adds diplomatic entroute | |- id="PrintSynchStuff" | PrintSynchStuff |Prints random count and seed | |- id="SetRandomCount" |SetRandomCount |Sets the random count to 0 or arg | |- id="ai_invasion" |ai_invasion |Toggles AI AI naval invasions | |- id="ai_pp_log" |ai_pp_log |Prints AI use of PP to log | |- id="ai_idea_desire_log" |ai_idea_desire_log |Prints AI desire for ideas to log. For current country only | |- id="ai_force_template" |ai_force_template |Force the AI to only spend army XP on template design | |- id="ai_force_equipment" |ai_force_equipment |Force the AI to only spend army XP on equipment design | |- id="ai_front_id" |ai_front_id |Get the address of selected group's front debug ID | |- id="fow" |fow(debug_fow) [Province ID] |Turns off fog of war, only within a province if specified. | |- id="collision" |collision(debug_collision) |Toggles debug display of normals/bounding boxes/collision | |- id="savegame" |savegame |Creates a savefile. | |- id="savecheck" |savecheck |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" |IP |Shows your IP | |- id="requestgamestate" |requestgamestate |Requests the gamestate from host | |- id="nudge" |nudge |Go to the nudge tool | |- id="mapmode" | mapmode [Mapmode type (int)] |Change mapmode. | |- id="fullscreen" | fullscreen |Toggles fullscreen | |- id="prices" |prices |Price Info | |- id="remove_core" |remove_core [<State ID>] [<Country Tag>] |Remove core. Note:Does not Work | |- id="debug_zoom" |debug_zoom |Zooms in the game | |- id="debug_types" |debug_types | Will print the data type for all dynamic reference objects. Can only be used if using RTTI. | |- id="debug_show_event_ID" |debug_show_event_ID |Shows event ID | |- id="debug_commands" |debug_commands |Printing commandcount to message.log | |- id="debug_events" |debug_events |Start Counting events | |- id="debug_dumpevents" |debug_dumpevents |Dump Event data to game log | |- id="debug_diploactions" |debug_diploactions |Start Counting diplomatic actions | |- id="debug_dumpdiploactions" |debug_dumpdiploactions |Dump diplomatic action data to game log | |- id="debug_assert" |debug_assert |Toggles asserts on/off | |- id="debug_nomouse" |debug_nomouse |Toggles mouse scrollwheel on/off | |- id="debug_terrain" |debug_terrain |Toggles Terrain on/off | |- id="debug_cities" | debug_cities | Toggles Cities painting mode on/off | |- id="debug_water" |debug_water |Toggles Water on/off | |- id="debug_fronts" |debug_fronts |Toggles interpolated fronts debug | |- id="debug_off_front_snap" |debug_off_front_snap(dbg_fsnap) |Toggles offensive fronts snapping debug | |- id="debug_borders" |debug_borders |Toggles Borders on/off | |- id="debug_trees" |debug_trees |Toggles Trees on/off | |- id="debug_rivers" |debug_rivers |Toggles Rivers on/off | |- id="debug_postfx" |debug_postfx |Toggles PostFX on/off | |- id="debug_sky" |debug_sky |Toggles Sky on/off | |- id="debug_bloom" |debug_bloom |Toggles Bloom on/off | |- id="debug_tooltip" |debug_tooltip |Toggles Tooltips on/off | |- id="flagsoutput" |flagsoutput [<path>] |Creates texture atlas files from memory. | |- id="cityreload" |cityreload |Reloads the cities | |- id="version" |version |Show current game version | |- id="debug_nogui" | debug_nogui | Toggles GUI on/off | |- id="debug_volume" |debug_volume [<Volume Delta>] |Modifies music volume | |- id="debug_lockcamera" |debug_lockcamera | Toggles Camera locked on/off | |- id="debug_lines" |debug_lines |Toggles Debuglines | |- id="debug_entities" |debug_entities |Toggles Debug entities | |- id="debug_info" |debug_info |Toggles Debug info | |- id="debug_particle" |debug_particle | Toggles Particles Debug info | |- id="debug_ai_budget" | debug_ai_budget [CountryTag] |Show ai budget data | |- id="debug_textures" |debug_textures |Writes Texture info to application debug log | |- id="debug_texture" |debug_texture |draws textures like bloom | |- id="debug_wireframe" |debug_wireframe |Toggles forced wireframe on/off | |- id="debug_achievements_clear" |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" |spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] |Spawns an actor with an optional animation | |- id="cameraclamp" |cameraclamp |Toggles the camera clamping | |- id="provtooltipdebug" |provtooltipdebug(tdebug) | Toggles the debug info in province tooltip | |- id="reloadweather" |reloadweather [<randomseed>] | Reload and regenerate weather | |- id="weather" |weather |Toggle weather simulation | |- id="debug_air_vs_land" |debug_air_vs_land(dbg_cas) |Toggle debug mode for air vs land combat. | |- id="mapnames" |mapnames |Toggle map names | |- id="gbreload" |gbreload | Reloads gradient borders |only for developers |- id="gbpaint" |gbpaint [layer] [channel] |Toggles gradient border painting | |- id="profilelog" |profilelog |Prints out the profiling informations into time.log | |- id="run" |run |Runs the specified file with list of commands | |- id="oos" |oos |Out of Synch | |- id="trigger_docs" |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" |hdr |Toggles hdr | |- id="hdr_debug" |hdr_debug | Toggles hdr debugging | |- id="srgb" |srgb | Toggles sRGB | |- id="bloom" |bloom |Toggles bloom | |- id="PostEffectVolumes.Default" |PostEffectVolumes.Default [posteffect_values name] |Toggles default posteffect values | |- id="night" |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') |- id="filewatcher" | filewatcher |Toggles filewatcher | |- id="createlean" |createlean |Create LEAN textures | |- id="helplog" |helplog |Print out all console commands to game.log file. | |- id="helphelp" |helphelp |Double Rainbow help. | |- id="hsv" |hsv |Converts RGB to HSV | |- id="tag_color" |tag_color |Test setting a country's color | |- id="browser" |browser [url] |Show browser window | |- id="browser_base_url" |browser_base_url [url] |Set browser base url | |- id="airealism" |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 |- |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== *[[Modding]] ==References== <references /> {{Modding navbox}} [[Category:Interface]] [[分类:Modding]] [[hoi4de:Konsolenbefehle]] [[hoi4es:Comandos de la consola]] [[hoi4fr:Commandes de console]] [[hoi4pl:Polecenia konsoli]] [[hoi4pt:Comandos do console]] [[hoi4ru:Консольные команды]]
本页使用的模板:
Template:Clear
(
查看源代码
)
Template:Hatnote
(
查看源代码
)
Template:Key press
(
查看源代码
)
Template:Modding navbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
Template:Path
(
查看源代码
)
Template:See also
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
控制台指令
。
×
登录
密码
记住登录
加入钢铁雄心4百科
忘记密码?
其他方式登录