1行目:
1行目:
{{Version|1.2}}
{{Version|1.2}}
−
このページでは、コンソールウィンドウに入力できるコードの一覧を示します。コンソールウィンドウは特別なデバッグウィンドウで、デバッグモードのときにShift+2、Alt+2+1、Shift+3、{{key press|§}}、{{key press|~}}、{{key press|^}}、{{key press|²}}、または{{key press|`}}(キーはキーボードレイアウトによって異なります<ref>日本語環境下に置いては調査中</ref>)を押すとアクセスできます。QWERTYキーボードの場合、キーは{{key press|`}}<ref>訳者注:バックスラッシュのことです。日本語キーボードではアットマークの部分をシフトを押しながら印可してください</ref>です。それ以外の場合は、上記の組み合わせが機能しなかった場合に、Shift+Alt+Cが機能することがあります。上矢印キーまたは下矢印キーを押して、前に実行したコマンドに移動します。多くのコードは、コマンドを再度繰り返すことによってオフにすることができますが、保存の再読み込みやゲームの終了が必要になる場合もあります。
+
このページでは、コンソールウィンドウに入力できるコードの一覧を示します。コンソールウィンドウは特別なデバッグウィンドウで、デバッグモードのときにShift+2、Alt+2+1、Shift+3、{{key press|§}}、{{key press|~}}、{{key press|^}}、{{key press|²}}、または{{key press|`}}(キーはキーボードレイアウトによって異なります<ref>日本語環境下に置いては調査中</ref>)を押すとアクセスできます。QWERTYキーボードの場合、キーは{{key press|`}}です。'''訳者注:日本語キーボードにおいてはエスケープキーの下にある半角/全角漢字キーを押してください'''それ以外の場合は、上記の組み合わせが機能しなかった場合に、Shift+Alt+Cが機能することがあります。上矢印キーまたは下矢印キーを押して、前に実行したコマンドに移動します。多くのコードは、コマンドを再度繰り返すことによってオフにすることができますが、保存の再読み込みやゲームの終了が必要になる場合もあります。
キャラクターIDは、デバッグモードを有効にした時にキャラクターの上にカーソルを置くと表示されます。
キャラクターIDは、デバッグモードを有効にした時にキャラクターの上にカーソルを置くと表示されます。
9行目:
9行目:
__TOC__
__TOC__
+
+
== Debug mode ==
+
Debug mode is a set of tools within the game that are typically hidden from the user. They allow the user to modify game behavior outside normal means. Debug mode contains the following tools:
+
* Console Window (user can input console commands)
+
* Debug Menus (including the Portrait Editor, GUI Editor, Tweak Menu and others)
+
* [[#Debug info|Debug Info]]
+
* Debug Interactions (user can instantly change opinion, imprison and more)
+
* Ctrl + clicking on a portrait takes control of the character, while Alt + click kills them.
+
* File watcher that automatically reloads changed files (including mods) into memory.
+
+
=== Enabling debug mode ===
+
Debug mode must be enabled upon launching the game. It can also be disabled within the Console Window.
+
+
==== Steam ====
+
To start the game in debug mode, within Steam, right-click to set the game's Properties, then under the General tab, click the Set Launch Options... button. Add '''-debug_mode''' to the launch options. You will have to restart the game.
+
+
==== Without Steam ====
+
Alternatively, without using Steam, you can start the game in debug mode by going to your main CK3 installation folder and creating a shortcut by right-clicking on the main CK3 application and selecting Create shortcut. Right-click the new shortcut and select properties. In the Shortcut tab where it says Target add -debug_mode to the very end of the field and hit apply. This will enable debug mode when launching the game using that shortcut.
+
+
==== 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>
+
+
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!
+
+
=== Disabling debug mode ===
+
In order to activate your achievement system, you need to totally deactivate the debug mode (not just through the Console Window).
+
+
==== Steam ====
+
To deactivate debug mode, within Steam, right-click to set the game's Properties, then under the General tab, click the Set Launch Options... button. remove -debug_mode in the launch options. You will have to restart the game.
+
+
=== Debug info ===
+
When debug mode is activated, characters, interactions and events will show debug info which is normally hidden during normal gameplay.
== チート ==
== チート ==