该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
{{Version|1. | {{Version|1.0}}{{需要翻译}} | ||
This page lists the codes that may be input into the Console Window, a special debugging window that may be accessed on non-ironman games whilst in debug mode by pressing Shift+2, ALT+2+1, Shift+3,{{key press|§}}, {{key press|~}}, {{key press|^}}, {{key press|°}}, {{key press|²}}, or {{key press|`}} (key varies based upon keyboard layout). For QWERTY keyboards, the key is {{key press|`}}. Otherwise, Shift + Alt + C may work if the combinations above did not. 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. | |||
Character IDs can be seen by hovering the cursor over a character with debug mode enabled. | |||
__TOC__ | __TOC__ | ||
==调试模式== | ==调试模式== | ||
调试模式是游戏中的一组工具 | 调试模式是游戏中 对用户隐藏 的一组工具 。它们 允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具: | ||
*控制台端口( | *控制台端口( 用于玩家输入 指定命令) | ||
*调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等) | *调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等) | ||
* | *调试信息 (显示有关角色,隐藏的事件和互动) | ||
*调试 | *调试互动(玩家可以立即更改意见、囚禁等) | ||
*{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。 | *{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。 | ||
=== | ===Enabling debug mode=== | ||
Debug | Debug mode must be enabled upon launching the game. It can also be disabled within the Console Window. | ||
====Steam==== | |||
若需要在steam运行调试模式,需要在steam库里面,右键该游戏,然后点击属性,在 [常规] 选项里面点击 [设置启动选项...] ,将 ['''-debug_mode'''] 添加到启动项里面。此操作需要重 启 游戏。 | |||
==== | ====Without Steam==== | ||
在不使用steam平台打开游戏的情况下,可以通过在ck3文件夹的binaries文件夹里面找到ck3.exe,右键它发送到桌面快捷方式,然后右键桌面的ck3图标并点击属性,在目标那一栏里面的最后面,空格一下然后输入[-debug_mode] ,然后应用即可 。 | |||
====Xbox game pass==== | |||
For the Xbox gamepass edition/windows 10 store edtion it's a tad more complicated, as you cannot create a normal shortcut for it, so you'll have to run the following commands in Command Prompt every time you open the game: | |||
==== | |||
<code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code> | <code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code> | ||
Suffice you don't want to run Command Prompt every time, you can create a batch (.bat) file to execute the aforementioned command instead, that can run from your desktop. | |||
To create a simple batch file on Windows 10, follow these steps: | |||
*Open Start. | |||
*Search for Notepad, and click the top result to start the app. | |||
*Paste in the aforementioned command. | |||
*Click the File menu. | |||
*Select the Save As option or {{key press|CTRL}} + {{key press|SHIFT}} + {{key press|S}}. | |||
*Type a name for the script, for example "ck3debug.bat". '''whatever you call it, it must end in .bat''' | |||
*Select Desktop for location. | |||
*Click save and you're done! | |||
== | ==Cheats== | ||
下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 。They are different from scripted [[commands]]. 注意,在调试窗口打开时,按下 {{Key press|Tab}} 将显示指令列表,在输入选择的指令后,按下 {{Key press|Tab}} 将在调试窗口中显示适用于该指令的参数。 | |||
下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 | |||
{| class="wikitable" | {| class="wikitable" | ||
!指令 | !指令 | ||
第133行: | 第56行: | ||
|add_claim | |add_claim | ||
|添加宣称 [<nowiki/>[[Console_commands#Title_IDs|头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。 | |添加宣称 [<nowiki/>[[Console_commands#Title_IDs|头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。 | ||
| | |[<nowiki/>[[Console_commands#Title_IDs|头衔id]]] [角色id] | ||
|add_claim e_hre | |add_claim e_hre | ||
|- | |- | ||
第197行: | 第120行: | ||
|- | |- | ||
|add_trait | |add_trait | ||
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] 被添加到<nowiki/> [角色id],如果没有指定角色id则默认为玩家角色 | |[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] 被添加到<nowiki/> [角色id],如果没有指定角色id则默认为玩家角色。 | ||
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] [角色id] | |[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] [角色id] | ||
|add_trait witch | |add_trait witch | ||
第230行: | 第153行: | ||
|[指定数值] [角色id] | |[指定数值] [角色id] | ||
|add_learning_lifestyle_xp 2000 | |add_learning_lifestyle_xp 2000 | ||
|- | |- | ||
|change_culture | |change_culture | ||
第280行: | 第198行: | ||
|[指定数值] [角色id] | |[指定数值] [角色id] | ||
|change_prowess 16 | |change_prowess 16 | ||
|- | |- | ||
|clear_character_modifiers | |clear_character_modifiers | ||
第317行: | 第230行: | ||
|- | |- | ||
|discover_innovation | |discover_innovation | ||
|[革新id] 被 [角色id] 的文化发现,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。 | |[革新id] 被 [角色id] 的文化发现 ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。 | ||
|[革新id] [角色id] | |[革新id] [角色id] | ||
|discover_innovation innovation_motte | |discover_innovation innovation_motte | ||
第330行: | 第243行: | ||
|无 | |无 | ||
|end_schemes | |end_schemes | ||
|- | |- | ||
|event | |event | ||
|触发 [事件id]。 | |触发 [事件id]。 | ||
|[事件id | |[事件id] | ||
|event lifestyle_nicknames.0001 | |event lifestyle_nicknames.0001 | ||
|- | |- | ||
第357行: | 第260行: | ||
|- | |- | ||
|give_title | |give_title | ||
|添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色 | |添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色。 | ||
|[头衔id] [角色id] | |[头衔id] [角色id] | ||
|give_title e_hre | |give_title e_hre | ||
第364行: | 第267行: | ||
|添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。 | |添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。 | ||
|[指定数值] | |[指定数值] | ||
| | |add_gold 500 | ||
|- | |- | ||
|instabuild | |instabuild | ||
第485行: | 第388行: | ||
|[指定数值] [角色id] | |[指定数值] [角色id] | ||
|set_prowess 16 | |set_prowess 16 | ||
|- | |- | ||
|yesmen | |yesmen | ||
第497行: | 第395行: | ||
|} | |} | ||
== | ==Testing commands== | ||
Testing commands are used for developer, beta tester or modder testing. | |||
{| class="wikitable" | {| class="wikitable" | ||
!指令 | !指令 | ||
!效果 | !效果 | ||
第509行: | 第407行: | ||
|无 | |无 | ||
|clear | |clear | ||
|- | |- | ||
|effect | |effect | ||
|执行脚本效果。 | |执行脚本效果。 | ||
|[效果脚本] | |[效果脚本] | ||
|effect test | |effect test | ||
第565行: | 第457行: | ||
|无 | |无 | ||
|portrait_editor | |portrait_editor | ||
|- | |- | ||
|run | |run | ||
第585行: | 第472行: | ||
|[角色id] | |[角色id] | ||
|set_is_player 1234 | |set_is_player 1234 | ||
|} | |} | ||
==特质ID== | ==特质ID== | ||
{{main| | {{main|Traits}} | ||
All traits have an ID that is referenced internally by the game. They can be found in <code>game\common\traits\00_traits.txt</code>. A trait's ID typically matches its name. To get a trait's ID from its name, perform the following steps: | |||
* | *If a trait displays two names in-game, use the one in brackets | ||
* | *Replace spaces (<code> </code>) and dashes (<code>-</code>) with underscores (<code>_</code>) | ||
* | *Remove all apostrophes (<code>'</code>) | ||
* | *Turn all upper case letters into lower case (<code>A...Z->a...z</code>) | ||
Traits that do not follow this pattern have been listed below for reference. | |||
{| class="wikitable" style="float: left; margin-right: 30px;" | {| class="wikitable" style="float: left; margin-right: 30px;" | ||
第738行: | 第620行: | ||
|physique_good_3 | |physique_good_3 | ||
|- | |- | ||
|{{icon|Melancholic}} 抑郁 | |{{icon|Melancholic}} 抑郁 症患者 | ||
|depressed_1 / depressed_genetic | |depressed_1 / depressed_genetic | ||
|- | |- | ||
第798行: | 第680行: | ||
|{{icon|Patriarch}} 顾家男人 / 顾家女人 | |{{icon|Patriarch}} 顾家男人 / 顾家女人 | ||
|family_first | |family_first | ||
|} | |} | ||
<!-- Creation of this table was partly aided by this script: https://github.com/SaucyPigeon/ck3_mapdata --> | |||
{| class="wikitable" style="float: left; margin-right: 30px;" | {| class="wikitable" style="float: left; margin-right: 30px;" | ||
!其他特质 | !其他特质 | ||
第844行: | 第725行: | ||
|{{icon|The Savior}} 救主 | |{{icon|The Savior}} 救主 | ||
|savior | |savior | ||
|- | |- | ||
|{{icon|Blood of the Prophet}} 先知的血脉(未生效) | |{{icon|Blood of the Prophet}} 先知的血脉(未生效) | ||
|blood_of_prophet | |blood_of_prophet | ||
|- | |- | ||
|{{icon| | |{{icon|Raider}} 劫掠者 / 维京 | ||
| | |viking | ||
|- | |- | ||
|{{icon| | |{{icon|Lover's pox}} / {{icon|Great pox}} Early Great Pox (mimics Lover's Pox) | ||
|early_great_pox<!--待验证--> | |||
|} | |} | ||
{{clear}} | {{clear}} | ||
== | ==Title IDs== | ||
{{main| | {{main|Titles}} | ||
All titles have an internal title ID that can be found in <code>game\common\landed_titles\00_landed_titles.txt</code>. Title IDs have a prefix based on their rank, followed by an underscore (<code>_</code>) and then their name. | |||
{| class="mildtable" | {| class="mildtable" | ||
!等级 | !等级 | ||
第920行: | 第746行: | ||
!举例 | !举例 | ||
|- | |- | ||
|{{ | |{{iconify|Barony}} | ||
|<code>b_</code> | |<code>b_</code> | ||
|<code>Wigmore -> b_wigmore</code> | |<code>Wigmore -> b_wigmore</code> | ||
|- | |- | ||
|{{ | |{{iconify|County}} | ||
|<code>c_</code> | |<code>c_</code> | ||
|<code>Sundgau -> c_sundgau</code> | |<code>Sundgau -> c_sundgau</code> | ||
|- | |- | ||
|{{ | |{{iconify|Duchy}} | ||
|<code>d_</code> | |<code>d_</code> | ||
|<code>Sicily -> d_sicily</code> | |<code>Sicily -> d_sicily</code> | ||
|- | |- | ||
|{{ | |{{iconify|Kingdom}} | ||
|<code>k_</code> | |<code>k_</code> | ||
|<code>Denmark -> k_denmark</code> | |<code>Denmark -> k_denmark</code> | ||
|- | |- | ||
|{{ | |{{iconify|Empire}} | ||
|<code>e_</code> | |<code>e_</code> | ||
|<code>Persia -> e_persia</code> | |<code>Persia -> e_persia</code> | ||
|- | |- | ||
|} | |} | ||
Title IDs can also be seen in their respective title lists: | |||
*[[List of baronies]] | |||
*[[ | *[[List of counties]] | ||
*[[ | *[[List of duchies]] | ||
*[[ | *[[List of kingdoms]] | ||
*[[ | *[[List of empires]] | ||
[[ | |||
===Finding title IDs based on in-game name=== | |||
The title ID may not match the title's name in-game. For example, the player may have their game set to a language other than English or a title has a culture-specific name. Use the following steps to find a title ID purely on its in-game name: | |||
== | *Navigate to the file located at <code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> with your game language. | ||
* | *Open the file with a text editor like Notepad++ and search for any instances of the in-game name using {{key press|CTRL}} + {{key press|F}}. | ||
* | *If you managed to find a match: | ||
**The line should look similar to <code> b_my_barony_name:0 "In-game name for barony"</code>. | |||
**The title ID is the word before the <code>:0</code>, therefore being <code>b_my_barony_name</code> in this example. | |||
*If you could not find a match: | |||
**Close the file. | |||
**In the same folder as the previous file, open the file <code>titles_cultural_names_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> appropriately. | |||
**Repeat your search for the title's in-game name in this file. | |||
**When you find a match, it should look like so: <code> cn_lunden:0 "Lunden"</code>. | |||
**Remember/copy the word before the <code>:0</code> (in this example, <code>cn_lunden</code>); this is a ''cultural name key'' of the title. | |||
**Close the file. | |||
**Navigate to the file <code>game\common\landed_titles\00_landed_titles.txt</code> and open it with your text editor. | |||
**Perform a search for the ''cultural name key'' you found in the previous file (e.g., <code>cn_lunden</code>). | |||
**The search query should land within a block named <code>cultural_names</code> enclosed by curly brackets (<code>{</code>, <code>}</code>). | |||
**Read the lines above until you reach another start of a block (denoted by <code>b_london = {</code>). Ignore any blocks like <code>color = {</code> or <code>color2 ={</code>. | |||
**The word in place of <code>b_london</code> is your title ID. | |||
== | ===Finding custom title ID=== | ||
Custom titles (i.e. the title of a player created Empire) do not follow the same naming convention. To find the ID: | |||
*From the debug console use the command <code>explorer</code> to open Object Browser | |||
*In Object Browser choose Provider: Landed Titles | |||
*Enter search term | |||
*Hover over the Name field to show the title card | |||
{{Modding navbox}} | {{Modding navbox}} | ||
[[Category:模组制作]] | [[Category: 模组制作]] | ||
[[en:Console commands]] | [[en:Console commands]] |