模组制作:修订间差异

本页面讲述的内容长期有效
无编辑摘要
(mod制作介绍)
第1行: 第1行:
{{Version|timeless}}{{需要翻译}}
{{Version|timeless}}{{需要翻译}}
Modding, or creating mods, is the act of modifying the behavior of the game either for personal use, or to release publicly to other players, for instance via [https://mods.paradoxplaza.com/games/ck3 Paradox Mods] or the [https://steamcommunity.com/app/1158310/workshop/ Steam Workshop].
模组制作,或者说创建模组,是一种修改游戏内容的方式,有时候仅仅是为了个人使用,有时候制作者也会发布出来供其它玩家一起使用。可以通过以下途径了解mod制作[https://mods.paradoxplaza.com/games/ck3 Paradox Mods] the [https://steamcommunity.com/app/1158310/workshop/ Steam Workshop]


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.
在所有的P社游戏中,王国风云3的可修改程度都是相当高的。mod制作者可以修改的内容也相当宽泛,比如语言翻译,更多的事件和决议,更优秀的地图,更大程度上的内容修改和作弊。


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.
这篇引导的目的在于降低制作mod的门槛。但是学习的曲线总是曲折的,这需要你通过不断的练习和阅读他人优秀mod代码来提升自己制作mod的水平。


== 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'''. <nowiki>...\Documents\Paradox Interactive\Crusader Kings III\logs</nowiki>
* '''The directory for the CK3 folder on Linux is''' <nowiki>/.local/share/Paradox Interactive/Crusader Kings III</nowiki>


=== 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 ==
== 提示 & 指引==
* '''创建一个mod对游戏进行修改''': 即使是很小的改动,也不要直接修改CK3游戏本体的游戏文件,而是要单独创建一个mod。因为本体更新时会直接覆盖这些修改,并且没有任何提示。
* '''使用好的文本编辑器''' 用来编辑mod文件。
* '''通过 error.log 文件检查mod运行中出现的bug'''. <nowiki>...\Documents\Paradox Interactive\Crusader Kings III\logs</nowiki>
* '''CK3文件夹在Linux系统的路径 ''' <nowiki>/.local/share/Paradox Interactive/Crusader Kings III</nowiki>
 
=== 本地化文件 ===
本地化文件夹中的yml后缀结尾的文件必须以'''UTF-8 + BOM'''编码保存,以便游戏正确读取。
 
== mod标签 ==


Overhaul
Overhaul
第23行: 第25行:
[[Exporters]] (Maya and Photoshop)
[[Exporters]] (Maya and Photoshop)


== Creating a mod ==
== 创建一个新的 mod ==
*Open the Crusader Kings III launcher.
* 打开 CK3 启动器
*Navigate to the "Mods" section.
* 跳转到 mod 部分
*Press "Mod Tools" to open the mod creation screen.
* 点击'Mod Tools'按钮打开mod创建界面
*In the mod creation screen, you can enter your mod name, version, directory and any tags.
* 在mod 创建界面,你可以设置mod的名称,版本,路径以及标签
*When done, press "Create Mod".
* 以上步骤完成后,点击'Create Mod'
*Once created, the relevant mod files will appear in the game's mod folder (Default on Windows: <code>C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\mod</code>)
* 创建完成后,该mod相关的文件就会出现在游戏mod文件夹下(Windows 默认路径: <code>C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\mod</code>)
 


== 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: <code>immortal = yes</code>
与CK2一样,永生在游戏发布时并不存在,但是已经有相关的实现,可以轻松创建。 只需要向特征添加以下参数: <code>immortal = yes</code>


For your immortals to look forever young, you can use the effect immortal age. Such as, <code>set_immortal_age = 30</code>
为了让长生者看上去一直年轻,可以设定永生者的年龄,只需如下设置: <code>set_immortal_age = 30</code>


== Save game editing ==
== 保存修改的内容 ==
To edit a manual save:
手动保存编辑的内容:


PC:
PC(Windows):
# Right-click, select "7-Zip: extract here"
# 右键,选中"7-Zip: extract here" (用解压缩提取压缩包的内容)
# Rename the extracted 'gamestate' file to something with a .ck3 extension
# 将提取出的'gamestate' 文件的扩展名重名为.ck3
# Edit this plain-text save
# 保存此纯文本
# Load it directly in the game (no need to re-compress)
# 游戏中会直接加载mod(不需要重复压缩)


Mac:
Mac:
# Open Terminal
# 打开终端
# Ensure that the directory is set to the correct folder
# 确认当前路径是正确的
# Type in "unzip FileName.ck3"
# 输入命令 "unzip FileName.ck3"
# Rename the extracted 'gamestate' file to something with a .ck3 extension
# 将提取出的'gamestate' 文件的扩展名重名为.ck3
# Edit this plain-text save
# 保存此纯文本
# Load it directly in the game (no need to re-compress)
# 游戏中会直接加载mod(不需要重复压缩)


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


'''自动保存''' 使用不同的格式,并且'''不能'''以相同的方式进行编辑。
{| class="wikitable"
{| class="wikitable"
! OS !! Save type !! Location           
! 平台 !! 保存方式 !! 路径
|-
|-
| Windows || Local || <code>C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\save games</code>
| Windows || 本地 || <code>C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\save games</code>
|-
|-
| Windows || Steam Cloud || <code>C:\Program Files (x86)\Steam\userdata\####\1158310\remote\save games</code>
| Windows || Steam 云端|| <code>C:\Program Files (x86)\Steam\userdata\####\1158310\remote\save games</code>
|-
|-
| Mac || Local || <code>$HOME/Documents/Paradox Interactive/Crusader Kings III/save games</code>
| Mac || 本地 || <code>$HOME/Documents/Paradox Interactive/Crusader Kings III/save games</code>
|-
|-
| Linux || Local || <code>$HOME/.local/share/Paradox Interactive/Crusader Kings III/save games</code>
| Linux || 本地 || <code>$HOME/.local/share/Paradox Interactive/Crusader Kings III/save games</code>
|}
|}


== Tools & utilities ==
== 工具与实用程序 ==
* [https://forum.paradoxplaza.com/forum/threads/information-and-faq.924764/ Clausewitz Maya Exporter]: a tool to create and export 3D models to use in CK3 and other Clausewitz games.
* [https://forum.paradoxplaza.com/forum/threads/information-and-faq.924764/ Clausewitz Maya Exporter]: 一个可以创建和导出3D模型并且在CK3和其他Clausewitz游戏中使用的工具。


== External links ==
== 外部链接 ==
* [https://forum.paradoxplaza.com/forum/forums/crusader-kings-iii-user-mods.1080/ CK3 User Mods] on the Paradox Forum.
* [https://forum.paradoxplaza.com/forum/forums/crusader-kings-iii-user-mods.1080/ CK3 User Mods] P社论坛
* [https://discord.gg/ck3 Crusader Kings] official Discord modding channel. Go to the server-roles channel and choose CK3 Modding in the [https://discordapp.com/channels/616881873506795550/710484698924711976/710490306788982804 Channel Access post].
* [https://discord.gg/ck3 Crusader Kings] official Discord modding channel. Go to the server-roles channel and choose CK3 Modding in the [https://discordapp.com/channels/616881873506795550/710484698924711976/710490306788982804 Channel Access post].
* [https://discord.gg/apEvxDZ CK3 Mod Coop] A community Discord server dedicated to modding for CK3.
* [https://discord.gg/apEvxDZ CK3 Mod Coop] A community Discord server dedicated to modding for CK3.

2020年9月12日 (六) 15:43的版本

模组制作,或者说创建模组,是一种修改游戏内容的方式,有时候仅仅是为了个人使用,有时候制作者也会发布出来供其它玩家一起使用。可以通过以下途径了解mod制作Paradox Mods 和 the Steam Workshop

在所有的P社游戏中,王国风云3的可修改程度都是相当高的。mod制作者可以修改的内容也相当宽泛,比如语言翻译,更多的事件和决议,更优秀的地图,更大程度上的内容修改和作弊。

这篇引导的目的在于降低制作mod的门槛。但是学习的曲线总是曲折的,这需要你通过不断的练习和阅读他人优秀mod代码来提升自己制作mod的水平。


提示 & 指引

  • 创建一个mod对游戏进行修改: 即使是很小的改动,也不要直接修改CK3游戏本体的游戏文件,而是要单独创建一个mod。因为本体更新时会直接覆盖这些修改,并且没有任何提示。
  • 使用好的文本编辑器 用来编辑mod文件。
  • 通过 error.log 文件检查mod运行中出现的bug. ...\Documents\Paradox Interactive\Crusader Kings III\logs
  • CK3文件夹在Linux系统的路径 /.local/share/Paradox Interactive/Crusader Kings III

本地化文件

本地化文件夹中的yml后缀结尾的文件必须以UTF-8 + BOM编码保存,以便游戏正确读取。

mod标签

Overhaul

Cosmetic

Exporters (Maya and Photoshop)

创建一个新的 mod

  • 打开 CK3 启动器
  • 跳转到 mod 部分
  • 点击'Mod Tools'按钮打开mod创建界面
  • 在mod 创建界面,你可以设置mod的名称,版本,路径以及标签
  • 以上步骤完成后,点击'Create Mod'
  • 创建完成后,该mod相关的文件就会出现在游戏mod文件夹下(Windows默认路径: C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\mod)


创建一个永生的人物特质

与CK2一样,永生在游戏发布时并不存在,但是已经有相关的实现,可以轻松创建。 只需要向特征添加以下参数: immortal = yes

为了让长生者看上去一直年轻,可以设定永生者的年龄,只需如下设置: set_immortal_age = 30

保存修改的内容

手动保存编辑的内容:

PC(Windows):

  1. 右键,选中"7-Zip: extract here"(用解压缩提取压缩包的内容)
  2. 将提取出的'gamestate'文件的扩展名重名为.ck3
  3. 保存此纯文本
  4. 游戏中会直接加载mod(不需要重复压缩)

Mac:

  1. 打开终端
  2. 确认当前路径是正确的
  3. 输入命令 "unzip FileName.ck3"
  4. 将提取出的'gamestate'文件的扩展名重名为.ck3
  5. 保存此纯文本
  6. 游戏中会直接加载mod(不需要重复压缩)


自动保存 使用不同的格式,并且不能以相同的方式进行编辑。

平台 保存方式 路径
Windows 本地 C:\Users\%USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\save games
Windows Steam 云端 C:\Program Files (x86)\Steam\userdata\####\1158310\remote\save games
Mac 本地 $HOME/Documents/Paradox Interactive/Crusader Kings III/save games
Linux 本地 $HOME/.local/share/Paradox Interactive/Crusader Kings III/save games

工具与实用程序

外部链接