模组结构

Hstar讨论 | 贡献2020年9月7日 (一) 23:48的版本 (merge from offical wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Mods are located in the folder ~\Paradox Interactive\Crusader Kings III\mod, which must contain:

  • the *.mod file, to tell the launcher what to do with the mod folder
  • 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.

The *.mod file

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.

The mod folder

The contents of the .mod file are:

Key Required? Effect Example
name Yes Defines the name that shows up in the launcher 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 Allows you to define a version of your mod, defined as a string. version="0.0.1"