定义:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.2
(咯咯炀移动页面Defines定义
无编辑摘要
第1行: 第1行:
{{version|1.2}}
{{version|1.2}}
 
'''定义'''('''Defines''' )是影响某些非脚本化游戏行为的变量,如军队移动和谋略。
'''Defines''' are variables that affect certain non-scriptable game behaviors, such as army movement and schemes.


==Configuration==
==Configuration==


Vanilla defines are set in ''game\common\defines\00_defines.txt''.
游戏本体的定义位于<code>game\common\defines\00_defines.txt</code>。


To modify defines, it is best not to modify the original file, but rather to use a mod. To do so, [[Mod_structure#Creating_initial_files|create a mod]], then create a text file in ''Documents\Paradox Interactive\mod\[mod name]\commond\defines''. To change a define, use the following format in the following example, which changes the end date to 1800:
要修改定义,最好不要修改原版文件,而是使用模组。To do so, [[Mod_structure#Creating_initial_files|create a mod]], then create a text file in ''Documents\Paradox Interactive\mod\[mod name]\commond\defines''. To change a define, use the following format in the following example, which changes the end date to 1800:
<pre>
<pre>
NGame = {
NGame = {
第15行: 第14行:
The file only needs to contain the edited defines—ones that are not being changed can be left out.
The file only needs to contain the edited defines—ones that are not being changed can be left out.


==List of defines==
== 定义列表==


The following is a (non-exhaustive) list of defines, organized by category.
以下是分类列出的不完整定义列表。


===Game===
=== 游戏===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Variable !! Unit !! Notes/description
! 变量 !! 单位 !! 注释/ 描述
|-
|-
| END_DATE = "1453.1.1" || || YYYY.M.D
| END_DATE = "1453.1.1" || || YYYY.M.D 年.月.日
|-
|-
| GAME_SPEED_TICKS || Seconds || Number of seconds a day should take at every game speed (first value is speed 1, last value is speed 5).
| GAME_SPEED_TICKS || || 每级游戏速度下模拟一天的实际秒数(第一个值是最慢速度,最后一个值是最快速度)。
|-
|-
| COMBAT_TICK_LIMIT = 1 || || 
| COMBAT_TICK_LIMIT = 1 || || 
|-
|-
| LAG_DECREASE_SPEED_DAYS = 15 || Days || Number of days of client lag that will cause a speed decrease in multiplayer.
| LAG_DECREASE_SPEED_DAYS = 15 || || 在多人游戏中,将会导致游戏速度降低的玩家端延迟天数。
|-
|-
| LAG_PAUSE_DAYS  = 30|| Days || Number of days of client lag that will cause a pause in multiplayer.
| LAG_PAUSE_DAYS  = 30|| || 在多人游戏中,将会导致游戏暂停的玩家端延迟天数。
|-
|-
| MULTIPLAYER_EVENT_TIME_OUT = 90 || Days || Number of days an event will show in multiplayer. When all time has passed, the game will automatically select an option.
| MULTIPLAYER_EVENT_TIME_OUT = 90 || || 在多人游戏中,一个事件将会持续显示的天数。如果时间已过,游戏将自动选择一个选项。
|-
|-
| BENCHMARK_TEST_DURATION = 135 || Seconds || Duration of a benchmark test using the "-benchmark" launch option.
| BENCHMARK_TEST_DURATION = 135 || || Duration of a benchmark test using the "-benchmark" launch option.
|-
|-
| BENCHMARK_INTERFACE_INTERVAL = 5.0 || Seconds || Time before the benchmark changes the open UI window.
| BENCHMARK_INTERFACE_INTERVAL = 5.0 || Seconds || Time before the benchmark changes the open UI window.

2020年12月31日 (四) 13:53的版本

定义Defines)是影响某些非脚本化游戏行为的变量,如军队移动和谋略。

Configuration

游戏本体的定义位于game\common\defines\00_defines.txt

要修改定义,最好不要修改原版文件,而是使用模组。To do so, create a mod, then create a text file in Documents\Paradox Interactive\mod\[mod name]\commond\defines. To change a define, use the following format in the following example, which changes the end date to 1800:

NGame = {
    END_DATE = "1800.1.1"
}

The file only needs to contain the edited defines—ones that are not being changed can be left out.

定义列表

以下是分类列出的不完整定义列表。

游戏

变量 单位 注释/描述
END_DATE = "1453.1.1" YYYY.M.D 年.月.日
GAME_SPEED_TICKS 每级游戏速度下模拟一天的实际秒数(第一个值是最慢速度,最后一个值是最快速度)。
COMBAT_TICK_LIMIT = 1
LAG_DECREASE_SPEED_DAYS = 15 在多人游戏中,将会导致游戏速度降低的玩家端延迟天数。
LAG_PAUSE_DAYS = 30 在多人游戏中,将会导致游戏暂停的玩家端延迟天数。
MULTIPLAYER_EVENT_TIME_OUT = 90 在多人游戏中,一个事件将会持续显示的天数。如果时间已过,游戏将自动选择一个选项。
BENCHMARK_TEST_DURATION = 135 Duration of a benchmark test using the "-benchmark" launch option.
BENCHMARK_INTERFACE_INTERVAL = 5.0 Seconds Time before the benchmark changes the open UI window.
BENCHMARK_OBSERVE_CHARACTER = k_england Title The title of the character who will be observed for the benchmark.
BENCHMARK_WAYPOINTS Where the camera should pan during the benchmark.