首页所有页面

Patch 2.7 mod compatibility guide


本指南介绍了使模组与 patch 2.7.X from patch 2.6.3.

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

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

Folders and files

  • \common\custom_localisation\ is moved to \localisation\customizable_localisation这样自定义本地化命令就不会影响校验和。
  • \interface\portrait_properties.txt is now folderized into \interface\portrait_properties\
  • Duplicated portrait.gfx files at the root of \interface, are now only in \interface\portraits

Scripting

主条目:Scripting

新增了 ==、>、>=、< 和 <= :

AND = {

  society_rank > 1

  ROOT = { society_rank == 1 }

}

However as of patch 2.7 they only work for new triggers (ex: society_rank而旧的触发器不支持这种新语法。[1]

Secret religions

主条目:Society modding
  • 每个宗教都应创造一个新的秘密特质:
secretly_catholic = {

	opposites = {

		#Other religions

	}



	is_visible = {

		OR = {

			character = FROM

			society_member_of = secret_religious_society_catholic

			AND = {

				is_close_relative = FROM

				trait = secretly_catholic

			}

		}

	}



	same_opinion = 15

	

	random = no

	customizer = no

	ai_zeal = -50

}

  • 排除某些宗教的触发条件也可能需要适应新的秘密宗教特征:

NOT = { religion_group = jewish_group } NOT = { trait = secretly_jewish }

Artifacts

主条目:Artifact modding

之前作为角色修饰符、王朝旗帜或特质管理的物品应迁移到神器中。

For instance:

add_character_modifier = {

	name = the_necronomicon

	duration = -1

}



has_character_modifier = the_necronomicon

may become:

add_artifact = necronomicon

new_artifact = {

	set_creation_date = 1.1.1

}



has_artifact = necronomicon



destroy_artifact = necronomicon

Targeted decisions

  • ai_target_filter is now mandatory for targeted decisions (ai_target_filter = self for decisions taken on the character itself).
  • 一些正常决策已被转换为带有过滤器的定向决策:
filter = self

ai_target_filter = self

Misc

  • 缺少的头像年龄变化(男性1、男性2等)将不再默认。确保你为所有自定义族裔设置包含男性、男性1、男性2、女性、女性1和女性2的肖像类型。
  • Game rules can be associated to one or multiple groups via group = "TEXT_KEY_FOR_GROUP"
  • In minor titles:
OR = {

	primary_title = { temporary = no }

	NOT = {

		primary_title = {

			always = yes

		}

	}

}

is replaced by: NOT = { primary_title = { temporary = yes } }

  • 宗教和宗教团体的意见修饰词现在是动态的,可以定义为 common\modifier_definitions\:
<religion_group>_opinion = {

	show_as_percent = no

	is_good = yes

	is_monthly = no

	is_hidden = no

	max_decimals = 0

}

They also need to be localized.

OR = {

	trait = monk

	trait = nun

}

is replaced by: is_ascetic_trigger = yes

  • 部分活动中会加入一些服从/non_interference检定:
ROOT = {

	NOR = {

		obedient = PREV

		non_interference = PREV

	}

}

  • Region definitions included in map/geographical_region.txt 现在被不同地解释。公国的称呼现在相当于他们de jure的国家 start_date defined in common/defines.txt, not their de jure counties in common/landed_titles 在历史被执行之前。如果县没有变动,这个变更也没有影响 de_jure_liege before the start_date.
  • Define NDefines.NGraphics.NUMBER_OF_PROPERTIES 现在可以从portrait_properties文件自动确定,并且可以被移除。

Outstanding bugs

  • 在角色历史中,低阶角色忽略了王朝=0,他们会被随机分配一个王朝[2].变通方法是通过效果将王朝重置为无:
1000.1.1 = { 

  birth = yes 

  effect = { dynasty = none } 

}

References

相关页面 (22)

Artifact moddingGame rulesLocalizationMerging guidePatch 2.4 mod compatibility guidePatch 2.5 mod compatibility guidePatch 2.6 mod compatibility guidePatch 2.6.3Patch 2.7Patch 2.7.XPatch 2.8 mod compatibility guidePatch 3.0 mod compatibility guidePatch 3.1 mod compatibility guideScriptingSociety moddingThe ValidatorTroubleshooting创建模组合并指南彻底转换指南模组安装程序创建指南游戏存档兼容性