首页所有页面

彻底转换指南

全面转换是一个将CK2游戏机制适应到其他设定的模组。

这可以是一个基于不同奇幻背景的中世纪设定(A Game of Thrones, Elder Kings, ...), or a completely different setting (After the End, Crisis of the Confederation,...).

制作一个完全转换模组非常耗时,因为大部分或全部原版内容都必须重写以适应新设定,这意味着需要成千上万行的脚本。

Minimum vanilla elements

游戏可执行文件会引用一些原版元素,并且预期会存在(有时只有在特定DLC激活时才会出现),否则游戏会崩溃:

  • Defines in defines.lua
    • NLearningScenario 部分引用了教程中使用的一些事件和字符 ID。
  • Modifiers listed in common/static_modifiers.txt
  • The minor titles at the begining of file common/minor_titles/00_minor_titles.txt (from title_regent to title_commander)
  • Some CBs [{{{1}}}]
  • Some landed_titles like e_rebels or e_pirates [{{{1}}}]
  • The following script should be present in events folder:
# ID 1 and 2 are empty dummy events that are used by the message system to spawn messages

# that should be displayed as events, their descriptions are filled in by the message system

letter_event = {

	id = 1

	is_triggered_only = yes

	desc = "A"

}

character_event = {

	id = 2

	is_triggered_only = yes

	desc = "B"

}

  • "default" tributary type [The doc says one is automatically created ?]

Mod file

In the .mod file, replace_path 是为了防止从原版加载。具体列表会根据每个模组设置以及模组如何覆盖原版文件,但典型的列表是:

Different history and titles:

replace_path = "history/characters"

replace_path = "history/offmap_powers"

replace_path = "history/provinces"

replace_path = "history/titles"

replace_path = "history/technology"

replace_path = "history/wars"

replace_path = "common/dynasties"

replace_path = "common/landed_titles"

replace_path = "common/offmap_powers"

replace_path = "common/offmap_powers/policies"

replace_path = "common/offmap_powers/statuses"

replace_path = "dlc_metadata/dlc_characters"

replace_path = "gfx/flags"

Note that replace_path 历史文件夹似乎并不会阻止引擎在加载时读取原版文件,这实际上占用了大部分加载时间,除了图形文件。 开发过程中的一个变通方法是将原版文件夹改名为其他名字(例如:history/characters -> history/characters_old),以确保它们被忽略。

Different map:

replace_path = "common/trade_routes"

replace_path = "map/statics"

Different lore (depends how different):

replace_path = "common/buildings"

replace_path = "common/cultures"

replace_path = "common/mercenaries"

replace_path = "common/minor_titles"

replace_path = "common/objectives"

replace_path = "common/religions"

replace_path = "common/religious_titles"

replace_path = "events"

replace_path = "decisions"

replace_path = "gfx/loadingscreens"

Map modding

主条目:Map modding

See 全转换地图模组指南 / 爱尔兰氏族

Adapting events

当原版事件不适合模组设置时,尽量找一个与背景故事相符的事件,只覆盖事件本地化密钥(不更改事件脚本),而不是完全禁用该事件。 有些事件或多或少是普遍的(例如:有人带着来自遥远国度的故事来到这里),所以改编它们:

  • 这样成本低,而且减少了模组制作的工作量,因为活动模组制作非常耗时。
  • 这可能会迫使你考虑一条你原本不会考虑或优先级较低的叙事线。

Music DLCs

大多数原版音乐DLC都有宗教或文化条件,所以默认不会使用。 参见 music modding,可以覆盖每个DLC的.txt文件,并激活相应的歌曲。

Featured Rulers

新加入的“精选统治者”机制突出显示历史统治者并邀请你扮演他们,但对于全面转换模组来说,这个机制可能不适用。目前尚不清楚你是否可以编辑主宰和专长以反映你自己的模组角色,但已知如何完全禁用该功能,防止它像原版角色一样引用你的新角色。只需更换文件即可 game\interface\highlighted_ruler.gui 在mod文件夹里放一个空白文件,整个窗口和相关机制都被禁用了。

相关页面 (18)

A Game of ThronesAfter the EndCrisis of the ConfederationDefinesElder KingsMap moddingMusic moddingPatch 2.4 mod compatibility guidePatch 2.5 mod compatibility guidePatch 2.6 mod compatibility guidePatch 2.7 mod compatibility guidePatch 2.8 mod compatibility guidePatch 3.0 mod compatibility guidePatch 3.1 mod compatibility guide创建模组合并指南模组安装程序创建指南游戏存档兼容性