This guide describes the steps to make a mod compatible with patch 2.5.X from patch 2.4.5.[1]
Note that this does not replace the usual step of merging files, in case the mod modifies some vanilla files.
In case of issues, run the latest version of The Validator, and try activating debug launch options, which will now report failed asserts in log files.
title line, otherwise the game will crash on startup.static = "statics" instead of static = "static.txt"bookmark = {} by a bookmark unique ID: bm_my_bookmark = {} character = 1234 by selectable_character = { id = 1234 }custom_start = yes needs to be added to one bookmark.law_groups has been added (and group to reference it inside the laws). Any modded demesne law should be added as a group with law_type = realmdefault_selection block, via:additive_modifier = {
value = 10
title = e_byzantium
}
is_voter = yes need to be added to councillors or minor titles that can vote in the council.OR = {
is_female = no
liege = {
primary_title = {
OR = {
has_law = status_of_women_3
has_law = status_of_women_4
}
}
}
}
allowed_to_hold block:OR = {
primary_title = { temporary = no }
NOT = {
primary_title = {
always = yes
}
}
}
Most opinions have been reduced (often halved), both for positive and negative:
opinion_effect (usually 5 if small title, 10 if normal, 15 if very prestigious)short_reign_opinion_year_multModded opinions should be adapted as well for balance.
Load order of localization files has been changed again: the last definition wins on vanilla + mod files combined and order alphabetically.[2]
So you need to put all the overridden vanilla keys in a separate file, with a name starting zz_ prefix, to ensure it is loaded last.
Before patch 2.4.X, the first loaded definition used to be winning, while before that mod keys were always overriding vanilla.
graphical_cultures = { southindiangfx indiangfx muslimgfx }is_job_ambition=yes needs to be added for ambitions to get a position on the council (probably to help the A.I.)attribute = <attribute> has been added to specify the main attribute of each educationnum_culture_realm_provs = { num = 2 culture = swedish } has been changed to num_culture_realm_provs = { value = 2 culture = swedish } free_levies_in_offensive_war = yes should be added to custom Muslim governments.allowed_to_target_tributaries = no and allowed_to_target_suzerains = no can be added to CBs to simplify previous condition:can_use = {
ROOT = {
NOR = {
pays_tribute_to = FROM
any_liege = {
OR = {
pays_tribute_to = FROM
FROM = {
pays_tribute_to = PREV
}
}
}
}
}
}
modifier = {
factor = 0
# Other conditions
NOT = {
has_opinion_modifier = {
who = FROM
modifier = opinion_coerced_into_joining_faction
}
}
}
FROM = {
NOT = {
has_non_aggression_pact_with = ROOT
}
}
For vassal character scope:
liege = {
OR = {
independent = yes
AND = {
will_liege_enforce_peace = no
has_liege_enforced_peace = no
}
}
}
For the liege character scope:
will_liege_enforce_peace = no has_liege_enforced_peace = no
if = {
limit = {
has_dlc = "Zeus"
}
reverse_add_favor = ROOT
}
trait = strong by is_strong_trigger = yestrait = weak by is_weak_trigger = yesOR = { trait = genius trait = quick } by is_smart_trigger = yesOR = { trait = slow trait = imbecile} by is_dumb_trigger = yescolor = {} to religion groupsBookmark moddingDullFeebleGovernment moddingLoad orderMerging guidePatch 2.4 mod compatibility guidePatch 2.4.5Patch 2.4.XPatch 2.5.XPatch 2.6 mod compatibility guidePatch 2.7 mod compatibility guidePatch 2.8 mod compatibility guidePatch 3.0 mod compatibility guidePatch 3.1 mod compatibility guideRobustShrewdThe ValidatorTroubleshooting创建模组合并指南彻底转换指南模组安装程序创建指南游戏存档兼容性