王国风云2
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问王国风云2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“优化”的源代码
←
优化
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|2.7}}'''Optimization''' is a set of mechanisms and techniques that ensures that the game performance remains acceptable after hundred years. The game performance mainly depends on the number of living characters, on whom events need to be processed, and that need to be kept in the save files.<ref>[[forum:962057]]</ref> The number of characters is itself closely tied to the number of provinces. But it is worth noting that courts are only generated for characters above baron level (except for patricians), so adding more barons has considerably less of an effect on performance than adding more counts. ==Pruning== '''Pruning''' is the removal of unimportant characters, so that the number of courtiers remains reasonable and game performance acceptable due to events & decisions processed on courtiers. It balances out the random character generation used to populate courts, since characters may not die naturally as fast as new ones get generated. Pruned characters are killed with death reason <code>death_vanished</code>, aka "vanished without a trace". Pruning is controlled by: * <code>NDefines.NEngine.COURT_PRUNE_SIZE = 10</code>: courts larger than this will be checked for pruning each month * <code>NDefines.NEngine.HEALTH_IMMUNITY_TO_PRUNING = 7</code>: if a character has that much health, they won't be pruned * <code>NDefines.NEngine.PRUNE_MINIMAL_AGE = 40</code> * Courtiers who have minor titles, friends, lovers, consorts or rivals are excluded * Immortal characters are excluded * Characters marked as special interest by the player are excluded. There's also a related scripted trigger used in some mass disease events: <pre> is_unimportant_trigger = { NOR = { is_married = yes is_landed = yes has_job_title = yes has_minor_title = yes AND = { NOT = { dynasty = none } num_of_dynasty_members = 2 } any_lover = { ai = no } any_close_relative = { ai = no } any_friend = { ai = no } any_rival = { ai = no } any_consort = { ai = no } num_of_claims = 1 has_character_flag = eternal_life_mystic trait = horse has_character_modifier = in_seclusion immortal = yes } } </pre> Note that another trigger of pruning is the inheritance of a title: rather than moving all characters of the old court of the title to the court of the new holder, some characters are pruned. Due to a different behavior,<ref>https://forum.paradoxplaza.com/forum/index.php?threads/2-7-1-ovsf-immortals-pruned-as-unimportant.1009237/</ref> these characters die of <code>death_natural</code> reason and some of the checks above (immortal, ...) are bypassed. ==Health Penalty== All unimportant characters(look above) receive health penalty depending on court size. {|class="wikitable" ! Court Size !! Health Penalty |- | 0..9 || -1 [[Health]] |- | 10..19 || -1.5 [[Health]] |- | 20..29 || -2 [[Health]] |- | 30+ || -3 [[Health]] |} Court size is hardcoded but health penalties are governed by parameter ==Fertility Penalty== Reduces the number of children characters can have by one. It affect anyone who does not have a close relative that is landed, as long as there are at least 30 people in the court. Governed by <code>NDefines.NCharacter.COURT_SIZE_CHILD_PENALTY_THRESHOLD</code> parameter. ==Save compression== {{stub}} ==Script optimizations== {{stub}} ==References== <references /> [[Category:模组制作]] [[en:Optimization]]
本页使用的模板:
Template:Ambox
(
查看源代码
)
Template:Ambox/core
(
查看源代码
)
Template:Stub
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
优化
。
×
登录
密码
记住登录
加入王国风云2百科
忘记密码?
其他方式登录