十字军之王3开发日志#55 | 4/13 模组功能改进

牧游社 牧有汉化翻译
Crusader Kings III Dev Diary #55 - Modding Improvements
Meneth, Crusader Kings 3 Programmer
Good afternoon, all
各位,下午好
I'm here today with a short dev diary on some upcoming improvements to moddability. We're not quite ready yet to make any announcements about upcoming features and so on, but we thought you might be interested in hearing about some modding improvements we've been working on.
今天我给大家带来一篇短一点的开发日志,内容是即将到来的对模组支持度的改进。现在我们还没准备好宣布新内容之类的东西,但是我们寻思大家肯定也喜欢听听我们在目前在做的制作mod相关的东西。
In an upcoming patch which I will from now on call 1.3.X (due to the exact version number being unknown at this time), we've spent a bit of time on making the game more moddable based on requests we've had from the modding community. In particular we would like to thank the Modding Co-op for coming up with a curated list of requested functionality. The curation of this list made it easy for us to get a good overview of what functionality the community would like, and limited to those requests that’d benefit a lot of modders rather than just a handful. As the amount of time we could spend on modding improvements this time around was rather limited, having an already curated list to pick from was great.
我会将下一个补丁叫做1.3.X版本号补丁(因为精确的版本号现在还不知道)。我们根据模组社区上收到的要求,花了一些时间优化了游戏对模组的支持。我们尤其想要感谢Modding Co-op给我们拉的一整个清单,上面详细列出了在功能上的各种要求。因此,我们就能很容易地了解到游戏社区想要哪些新的功能,由此去满足能让绝大多数mod制作者受益的要求。这一次我们能在模组改进上花的时间有限,所以有这么个详尽的清单真是太棒了。
From that list we picked some of the simpler requests; things that'd require relatively minimal code and would only affect mods. We will likely implement more from this list in the future, though our list for 1.3.X is unlikely to expand.
我们从清单里选择了部分比较简单的要求:即那些需要代码量较小、影响仅局限于模组的要求。清单中的其它要求,我们也很愿意在未来去满足,但是会1.3.X版本号实装的就仅限于此了。
In addition to implementing some functionality based on these requests, we've also had some conversations with modders, and looked at some common pain points. We can’t address most of them right now, but one we noticed is that a number of mods use the DummyMale and DummyFemale characters for a lot of things they weren't meant for. This was a result of lacking functionality, which we have now introduced in 1.3.X.
除了实装要求上的功能以外,我们还与模组制作者们做了些交流,着重关注了一些普遍的痛点。大多数东西我们现在也没法明说,不过其中有一个问题是:我们发现很多模组都使用了DummyMale(假人男)和DummyFemale(假人女)两个角色,但是其中很多用途都并不符合我们的初衷。这就是因为缺少了某项功能而导致的,我们会在1.3.X版本号中作出改动。
With the need for this dummy-character removed, we will be deprecating it. That means that it’ll continue to work 1.3.X which introduces the replacement functionality, but that they will be largely removed in 1.4 to ensure that script and code are more maintainable in the long-term.
既然假人角色不再需要了,我们也就不鼓励使用它。1.3.X版本号加入了替代功能后,假人角色还会保留,但是1.4版本号之后它就将会被移除,以确保脚本和代码能更方便长期的维护。
Another bit of functionality that we think modders will be interested in is that of same-sex concubinage. Proper support for it will come alongside other modding improvements in 1.3.X. Before 1.3 the gender restrictions for concubinage were possible to work around (but could cause bugs), which is no longer possible in 1.3. In 1.3.X we support it more fully, eliminating odd edge-case bugs and the like.
还有一个功能我们觉得mod制作者可能会感兴趣:同性纳妾。这一功能的支持会在1.3.版本号X与其它模组改进一同加入。在1.3版本号之前,对纳妾的性别限制也是可以绕过的(但是可能会导致bug),而1.3版本号后就没法绕过了。在1.3.X版本号中我们会更加完备地支持同性纳妾,消灭各种极端条件所导致的bug。
Further, we plan to support same-sex marriage for mods in 1.4. Due to larger technical risks surrounding it, it was not feasible to include that in 1.3.X; we need more time to test it to ensure that this support does not introduce bugs in the vanilla game. We're really looking forward to being able to support more diverse experiences with this mod support.
另外,我们还计划在1.4版本号中支持mod中的同性婚姻。由于相关的技术风险,这一点在1.3.X版本号中仍未能实现;我们需要花更多的时间进行测试,确保支持同性婚姻不会在原版游戏中造成bug。我们真心希望能以这样的方式支持模组,以营造出更加多样化的游戏体验。
Mods add so much to the experience of our games, and moddability has been something we've considered throughout CK3's development. As a former CK2 modder myself, it's great to see all the things the modding community is producing.
Mod对我们的游戏体验增色巨大,对模组的支持度也是我们在CK3开发过程中一贯以来的重点考量。作为一个CK2的前模组制作者,我自己看到模组社区强大的创造力也倍感欣慰。
Finally, here's all the modding improvements we plan to release in 1.3.X:
最后,这里是我们计划在1.3.X版本号中推出的所有模组改进:
- User Modding: Add CloseGameView data function so mods can close specific in game views.
- User Modding:新增CloseGameView数据函数,让模组可以在游戏视图中单独关闭。
- User Modding: Add GetTraitFromGroup and GetTraitGroupLevel data functions on Character.
- User Modding:新增GetTraitFromGroup和GetTraitGroupLevel数据函数,用于角色。
- User modding: make_concubine now supports same-sex concubinage
- User Modding:make_concubine现在支持同性纳妾
- User Modding: Add GetTraitGroup( 'tag' ) and Trait.GetGroup data functions to get trait groups.
- User Modding:新增GetTraitGroup( 'tag' )和Trait.GetGroup数据函数,可以得到特质组。
- User Modding: Add HasTrait and HasTraitFromGroup data functions to Character.
- User Modding:新增HasTrait和HasTraitFromGroup数据函数,用于角色。
- User modding: Added data functions GetTraitsWithFlag and GetTraitsWithoutFlag
- User Modding:新增GetTraitsWithFlag和GetTraitsWithoutFlag数据函数
- User modding:Added datamodel GetTraits on TraitGroup
- User Modding:新增datamodel GetTraits用于特质组
- User modding:Added effect deactivate_holy_site
- User Modding:新增效果deactivate_holy_site
- User modding: Added effect remove_dynasty_perk
- User Modding:新增效果remove_dynasty_perk
- User modding: Added effect remove_innovation = innovation_key
- User Modding:新增效果remove_innovation = innovation_key
- User modding: Added effect set_army_location
- User Modding:新增效果set_army_location
- User modding: Added effects clear_traits and copy_traits
- User Modding:新增效果clear_traits和copy_traits
- User modding: Added effects set_age and change_age
- User Modding:新增效果set_age和change_age
- User modding: Added list builder x_culture_global
- User Modding:新增列表生成器x_culture_global
- User modding: Added trigger has_innovation_flag
- User Modding:新增触发器has_innovation_flag
- User modding: Added trigger perks_in_<lifestyle>, to query how many perks exist in a given lifestyle (rather than how many a specific character has)
- User Modding:新增触发器perks_in_<lifestyle>,可以查询在一个生活方式中存在几个技能(而不是某一个特定角色拥有几个技能)
- User modding: spawn_army will now only spawn levies if scripted to do so
- User Modding:spawn_army可以限定只生成征兆兵
- User modding: Add GetGlobalVariable and GetGlobalList data functions for getting data saved from script.
- User Modding:新增GetGlobalVariable和GetGlobalList数据函数,可以从脚本中保存数据。
- User modding: Add MakescopeValue, MakescopeFlag, and MakescopeBool to create scope objects out of primitive types directly since they are not automatically creatable via the Makescope member on complex types like Character.Makescope.
- User Modding:新增MakescopeValue,MakescopeFlag和MakescopeBool可以直接从原始类型中创建范围对象,因为通过Makescope member是不能从Character.Makescope这种复杂类型中自动创建的。
- User modding: Add ScriptValue data function to scope objects which will evaluate a script value just with that scope object as root.
- User Modding:新增ScriptValue数据函数,可以以范围对象为根计算脚本值。
- User modding: Made the Localize data function allow the key it references to also call other data functions in it like SelectLocalization does.
- User Modding:让本地化数据函数允许其指向的键值来呼叫其它数据功能,就像SelectLocalization中的那样。
- User modding: Add AddList data function for Guiscope, it is to add_to_list what Addscope is to save_scope_as.
- User Modding:为Guiscope新增AddList数据函数,它对add_to_list的作用就相当于Addscope对save_scope_as的作用。
That's all for today! I'm excited to see what the modding community will do with these added pieces of functionality.
以上就是今天的全部内容了!有了这些新增的功能之后,模组社区将能创作出何样的惊喜,我们拭目以待!
翻译:一个幽灵
校对:阿尔法一世 三等文官猹中堂
欢迎关注UP主和主播小牧Phenix!
欢迎关注牧游社微信公众号和知乎专栏!微信公众号改版为信息流,欢迎【置顶订阅】不迷路,即时获得推送消息!
B站在关注分组中设置为【特别关注】,将会在私信内及时收到视频和专栏投稿的推送!
欢迎加入牧有汉化,致力于为玩家社群提供优质内容!组员急切募集中!测试群组822400145!