首页所有页面

Patch 2.4 mod compatibility guide


本指南介绍了使模组与 patch 2.4.X from patch 2.3.6.[1]

注意,这并不替代通常的步骤 merging files, in case the mod modifies some vanilla files.

In case of issues, run the latest version of The Validator并尝试激活调试启动选项,这些选项现在会报告 在 log files.

The steps are:

New folders

  • 将书签、combat_tactics、疾病、job_actions、job_titles、triggered_modifiers文件移到新文件夹
  • 将法律从/decisions/迁移到/common/laws/的新文件夹

此外,你还可以通过拆分成多个文件来利用这些新文件夹,详见 loading from folders.

Religion

  • Remove can_hold_temples in religion definitions
  • Add religion flags to Muslim religions:
attacking_same_religion_piety_loss = yes

uses_decadence = yes

uses_jizya_tax = yes

  • Add to defensive religions:
camel_cavalry_defensive = 0.8

war_elephants_defensive = 0.8

  • 宗教描述现在会自动附加在提示中,现有描述可能需要修改。用途 <religion>_FEATURES 定位键用于描述自动检测的额外特征。

Culture

  • Merge graphical_culture and second_graphical_culture into a list:
graphical_cultures = { indiangfx muslimgfx }

Minor titles

  • Split allow block minor_titles into 2 blocks:
    • allowed_to_hold: keep what was in default scope
    • allowed_to_grant:把原本属于FROM范围的内容放进去,不要用FROM。
  • 如果适用,将指挥官的条件从job_marshal移植到minor_titles(女权宗教等)。
  • Ensure minor titles have a grant_limit否则,它们无法以任何方式(接口或事件)被分配
  • Use is_high_prio = yes 对于影响游戏玩法、不应该闲置的小标题。

Decisions and events

  • 移除vassal_decisions,换成targetted_decisions。添加合适的过滤器/ai_target_filter(通常是宫廷或附庸)。注: targetted_decisions 这些功能早在几个补丁中就已经存在,但vassal_decisions直到现在仍被原版使用。
  • Use icon_religion flag for conversion decisions
  • If using grant_title 对于非活跃的有地头衔,现在需要提前激活该头衔(类似于无地头衔),途径如下:

activate_title = { title = THIS status = yes } or giving de jure lands.

  • has_character_flag = do_not_disturb was re-factored into
custom_tooltip = {

	text = is_not_busy_trigger_tooltip

	hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } }

}

  • Replace convert_to_castle command by convert_to = CASTLE and similar for other convert_to_<holding> commands

History

  • 如果需要,可以添加头衔历史以禁用无地宗教领袖,因为他们现在会触发伟大holy wars。
  • 调整省份历史以确保政府类型正确。feudal_governments.txt先加载时,优先级是:如果角色直辖区内的任何省份是封建的,它也会被用作首都——即使历史上的de jure首都位于部落省份。
  • In province history, ensure that remove_settlement command is called after the switch of capital, if that settlement was the capital.
1250.1.1   = {

	b_orthez = castle

	capital = b_orthez

	

	# VERY IMPORTANT: remove_settlement must always be scripted AFTER a 'capital' switch away from the same settlement

	remove_settlement = b_morlaas

}

Governments

  • 如果有除改革宗日耳曼和穆斯林哈里发外的可操控宗教领袖,则在政府中替换潜在的:
NAND = {

	controls_religion = yes

	NOT = { religion_group = muslim }

	NOT = { religion = norse_pagan_reformed }

}

by the more generic condition:

NAND = {

	controls_religion = yes

	NOT = {

		primary_title = {

			is_landless_type_title = no

		}

	}

}

Map

  • Rename region.txt to island_region.txt
  • 添加geographical_region.txt,如果省份或法理与原版不同,就进行调整。
  • Modify default.map with region and geographical_region file paths:
region = "island_region.txt"

geographical_region = "geographical_region.txt"

  • 请确认terrain.bmp索引是否使用有效颜色,因为这会导致加载时出现CTD。

Other

  • Move holy_site definition in landed_titles from barony to county
  • Add is_nomadic = no to standard retinues potential conditions
  • 在所有自定义族裔肖像末尾添加额外图层 GFX_player_overlay:p11:
layer = { # GFX_TYPE:[d|p]INDEX:COLOR_LINK:DONT_REFRESH_IF_VALID:CULTURE_INDEX

       "GFX_character_background:p0"

       (...)

       "GFX_character_imprisoned:p6"

       "GFX_player_overlay:p11"

}

  • 如果使用自定义时代选择界面,请将“中间”书签名称中的BM_RISE_OF_THE_HANSA替换为BM_THE_MONGOLS。
  • 对于全面转换模组,可以replace_path common/trade_routes文件夹,或者在里面创建一个空文件00_silk_route.txt。


References

相关页面 (18)

Decision moddingMerging guideModdingPatch 2.3.6Patch 2.4.XPatch 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 guideThe ValidatorTroubleshooting创建模组合并指南彻底转换指南模组安装程序创建指南游戏存档兼容性