模组制作

本页面讲述的内容长期有效
自由之民讨论 | 贡献2020年9月8日 (二) 19:16的版本 (en)

Template:Evt 模组制作(Modding)或者叫创作模组,是修改游戏行为的活动,无论个人使用,还是公开发布给其他玩家,譬如通过 Paradox Mods 或者 Steam 创意工坊

As with all Paradox games, Crusader Kings III is moddable to a great extent. Motivations of modders may vary widely; better translation to native language, more events or decisions, better map, major overhaul, cheating, etc.

This guide is intended to lower the entry barriers to the world of Crusader Kings III modding. However, there is still a learning curve to it, and it cannot replace the need to read some working vanilla code and do lots of trial and error experimentation.

Tips & guidelines

  • Create a mod for your modifications: use a personal mod even for minor changes, and never directly modify the game files in the CK3 game folder as they may be overwritten without warning.
  • Use a good text editor to edit files and search into multiple files.
  • Use the error.log file to get execution errors. ...\Documents\Paradox Interactive\Crusader Kings III\logs
  • The directory for the CK3 folder on Linux is /.local/share/Paradox Interactive/Crusader Kings III

Localization Files

  • *.yml files in the localization folder must be saved with UTF-8 + BOM encoding to be read properly by the game.

Tags for Mods

Overhaul

Cosmetic

Exporters (Maya and Photoshop)

Creating immortal traits

As with the previous game, traits that grant immortality are not present in the game at launch but are already programmed and can be easily created. It only requires adding the following parameter to a trait: immortal = yes

For your immortals to look forever young, you can use the effect immortal age. Such as, set_immortal_age = 30

Save game editing

To edit a manual save:

PC:

  1. Right-click, select "7-Zip: extract here"
  2. Rename the extracted 'gamestate' file to something with a .ck3 extension
  3. Edit this plain-text save
  4. Load it directly in the game (no need to re-compress)

Mac:

  1. Open Terminal
  2. Ensure that the directory is set to the correct folder
  3. Type in "unzip FileName.ck3"
  4. Rename the extracted 'gamestate' file to something with a .ck3 extension
  5. Edit this plain-text save
  6. Load it directly in the game (no need to re-compress)

Autosaves use a different format and cannot be edited the same way.

OS Save type Location
Windows Local C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\save games
Windows Steam Cloud C:\Program Files (x86)\Steam\userdata\####\1158310\remote\save games
Mac Local $HOME/Documents/Paradox Interactive/Crusader Kings III/save games
Linux Local $HOME/.local/share/Paradox Interactive/Crusader Kings III/save games

Tools & utilities

External links