模组结构:修订间差异

(merge from offical wiki)
 
无编辑摘要
第1行: 第1行:
Mods are located in the folder ''~\Paradox Interactive\Crusader Kings III\mod'', which must contain:
Mod位于该路径下 ''~\Paradox Interactive\Crusader Kings III\mod'', 里面必须包含:


* the *.mod file, to tell the launcher what to do with the mod folder
* 一个 *.mod 文件, 用于告诉启动器如何处理mod文件夹
* the mod folder or zip containing the mod data. The mod data must have the same file and folder structure as if it was along with CK2game.exe in the game directory. Note that folder and file names are case sensitive on Mac and Linux.
* mod 文件夹或者是压缩包包含了mod的数据。mod数据必须和游戏本体中 CK2game.exe 所在路径的文件和文件夹架构一致。注意文件和文件夹名称在Mac和Linux系统上需要区分大小写。


== The *.mod file ==
== *.mod 文件 ==


Note: With the Crusader Kings III launcher, you can generate a mod folder as well as it's corresponding *.mod file by navigating to <Mods> -> <Mod Tools (Next to Manage Mods)> -> <Create Mod> and typing in the corresponding name, version, version compatibility, icon, tags, and the mod folder directory/archive. Since it is much easier to get started with creating your mod this way, it is highly recommended that you do this first, and then make alterations to the *.mod file as needed.
注意:使用Crusader Kings III 启动器,您可以通过导航到 <Mods> -> <Mod Tools (Next to Manage Mods)> -> <Create Mod> 并键入以下内容来生成mod文件夹及其对应的* .mod 文件。 相应的名称,版本,版本兼容性,图标,标签和mod文件夹目录/ 存档。 由于以这种方式开始创建mod容易得多,因此强烈建议您首先进行此操作,然后根据需要对* .mod 文件进行更改。


== The mod folder ==
== mod 文件夹 ==


The contents of the .mod file are:
.mod 文件的内容:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Key !! Required? !! Effect !! Example
! Key !! Required? !! Effect !! Example
|-
|-
| name || Yes || Defines the name that shows up in the launcher || name="My Mod"
| name || Yes || 在启动器中显示的名称 || name="My Mod"
|-
|-
| path || Yes || Defines which folder is the mod's folder. It is NO LONGER RELATIVE to The CK3 folder. Instead, you must use the entire file path. || path = "C:/Users/Example/Documents/Paradox Interactive/Crusader Kings III/mod/my_mod"
| path || Yes || Defines which folder is the mod's folder. It is NO LONGER RELATIVE to The CK3 folder. Instead, you must use the entire file path. || path = "C:/Users/Example/Documents/Paradox Interactive/Crusader Kings III/mod/my_mod"
|-
|-
| version || No || Allows you to define a version of your mod, defined as a string. || version="0.0.1"
| version || No || 允许你为mod定义一个版本,类型是字符串 || version="0.0.1"
|}
|}

2020年9月12日 (六) 16:14的版本

Mod位于该路径下 ~\Paradox Interactive\Crusader Kings III\mod, 里面必须包含:

  • 一个 *.mod 文件, 用于告诉启动器如何处理mod文件夹
  • mod文件夹或者是压缩包包含了mod的数据。mod数据必须和游戏本体中 CK2game.exe 所在路径的文件和文件夹架构一致。注意文件和文件夹名称在Mac和Linux系统上需要区分大小写。

*.mod 文件

注意:使用Crusader Kings III启动器,您可以通过导航到 <Mods> -> <Mod Tools (Next to Manage Mods)> -> <Create Mod> 并键入以下内容来生成mod文件夹及其对应的* .mod文件。 相应的名称,版本,版本兼容性,图标,标签和mod文件夹目录/存档。 由于以这种方式开始创建mod容易得多,因此强烈建议您首先进行此操作,然后根据需要对* .mod文件进行更改。

mod 文件夹

.mod 文件的内容:
Key Required? Effect Example
name Yes 在启动器中显示的名称 name="My Mod"
path Yes Defines which folder is the mod's folder. It is NO LONGER RELATIVE to The CK3 folder. Instead, you must use the entire file path. path = "C:/Users/Example/Documents/Paradox Interactive/Crusader Kings III/mod/my_mod"
version No 允许你为mod定义一个版本,类型是字符串 version="0.0.1"