首页所有页面

Patch 2.5 mod compatibility guide


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

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

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

Map

  • New folder common/province_setup 省名与县名、最大定居点数和地形的关联。这些信息也存在省份历史中,但很可能是重复的,因为存档加载不再执行历史。确保任何荒原省份都没有 title line, otherwise the game will crash on startup.
  • New folder map/statics 包含映射帧的定义。default.map 文件需要更新以获取参考 static = "statics" instead of static = "static.txt"

Bookmarks

  • 由于历史不再在时代选择界面处理,可选角色需要通过复制部分角色历史来明确定义。参见 bookmark modding. In particular:
    • replace bookmark = {} by a bookmark unique ID: bm_my_bookmark = {}
    • replace character = 1234 by selectable_character = { id = 1234 }
  • 书签现在按时间顺序排列,因此你可以利用文件夹加载来提升模组兼容性。
  • 为了在时代选择界面点击自定义游戏按钮时加载地图, custom_start = yes needs to be added to one bookmark.

Laws

  • law_groups has been added (and group 在法律中引用。任何修改过的领地法律都应该作为一个组合加入,且 law_type = realm
  • ze_council_power_laws.txt必须调整以实现议会法律的历史设定(这不像其他法律那样通过爵位历史) default_selection block, via:
additive_modifier = { 

  value = 10			

  title = e_byzantium	

}

Councillor and honorary titles

  • is_voter = yes 需要被添加到议员或有投票权的小头衔中。
  • 议员资格条件已被提取到脚本触发条件:can_be_marshal_trigger、can_be_chancellor_trigger、......自定义条件应移至文件中 00_scripted_triggers.txt as well.
  • 如适用,女性应享有荣誉称谓,前提是女性地位法律足够高。通常:
OR = {

  is_female = no

  liege = {

    primary_title = {

      OR = {

        has_law = status_of_women_3

        has_law = status_of_women_4

      }

    }

  }

}

  • 次要头衔的月度声望大约提升了10倍。
  • Add in honorary titles allowed_to_hold block:
OR = {

	primary_title = { temporary = no }

	NOT = {

		primary_title = {

			always = yes

		}

	}

}

Opinion

大多数观点都被减少(通常减半),无论是正面还是负面:

  • Opinion modifiers
  • Minor titles opinion_effect (小头衔通常5分,普通10分,非常声望15分)
  • 特质评价(vassal_opinion、same_opinion等——但不包括sex_opinion),最低+/-5
  • Succession laws
  • Religion short_reign_opinion_year_mult

Modded opinions should be adapted as well for balance.

Localization

Load order 本地化文件的部分又被更改了:最后一个定义在原版+模组文件合并和按字母顺序排列时占优。[2]

所以你需要把所有被覆盖的原版密钥放到一个单独的文件里,前缀zz_名字开头,确保加载最后。

Before patch 2.4.X,第一个加载定义是winning,而在此之前,mod键总是覆盖原版。

Other

  • 新增了一个南印度文化族群,应该添加到任何修改过的南印度文化中: graphical_cultures = { southindiangfx indiangfx muslimgfx }
  • is_job_ambition=yes 需要加入才能获得议会职位(大概是为了帮助人工智能)。
  • For education traits, attribute = <attribute> 新增以指定各教育的主要属性
  • num_culture_realm_provs、num_title_realm_provs和num_religion_realm_provs都改为使用value参数而非NUM。例如: num_culture_realm_provs = { num = 2 culture = swedish } has been changed to num_culture_realm_provs = { value = 2 culture = swedish }
  • Government flavors have been added in common/government_flavor folder, to customize government name and illustration. See government modding.
  • 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

          }

        }

      }

    }

  }

}

  • 可以被驱逐的自定义圣职团应加入can_use_title dejure_barony_claim、dejure_county_claim和other_dejure_county_claim CBs区块
  • 自定义派系成员修正必须调整,使被强制角色绕过0倍修正:
modifier = {

  factor = 0

  # Other conditions

  NOT = {	

    has_opinion_modifier = {

      who = FROM

      modifier = opinion_coerced_into_joining_faction

    }

  }

}

  • 当某个行动(决策、阴谋等)会破坏不侵犯条约时,应检查不侵略条约(即行动不应存在)。对于CBs来说,这个检查已经硬编码了。
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

  • 对于两个角色之间的事件,应添加一个选项,以防一方欠另一方人情,使AI更倾向于选择该选项。
  • 在适用的情况下,一些罕见事件选项可能会带来好感:
if = {

  limit = {

    has_dlc = "Zeus"

  }

  reverse_add_favor = ROOT

}

  • To cope with new non-genetic traits Robust.png, Feeble.png, Shrewd.png and Dull.png:
    • Replace trait = strong by is_strong_trigger = yes
    • Replace trait = weak by is_weak_trigger = yes
    • Replace OR = { trait = genius trait = quick } by is_smart_trigger = yes
    • Replace OR = { trait = slow trait = imbecile} by is_dumb_trigger = yes
    • 检查remove_trait = xxx的事件,并为相应的非遗传性状添加额外remove_trait。
  • Add a color = {} to religion groups

参考资料

相关页面 (24)

Bookmark 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创建模组合并指南彻底转换指南模组安装程序创建指南游戏存档兼容性