Stellaris

Stellaris

280 vurderinger
Stellaris Universal Gamerule Lib
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
277.729 KB
19. apr. 2022 kl. 23:06
30. maj kl. 2:43
31 ændringsbemærkninger ( vis )

Abonner for at downloade
Stellaris Universal Gamerule Lib

I 1 samling af _OAO_
使用通用库的MOD合集.
8 genstande
Beskrivelse
This MOD is mainly for modders, if you are just a player and see that a MOD requires this as a prerequisite item, then you only need to subscribe to it.

Features
This MOD provides a solution to the conflict problem caused by adding rules between community MODs, and adjusts most of the rules to rely on FLAG for judgment, so that MODs can adjust the use of rules more flexibly.

Operating principle:


- If trigger FLAG is not included, execute the vanilla conditional judgment
- If trigger FLAG is included but the rule condition FLAG is not included, the original condition is still executed
- If trigger FLAG and any conditional FLAG is included , the vanilla judgment logic is eliminated, and another logic judgment block is transferred
--If TRUE FLAG is used and there is no FLASE FLAG, the rule returns TRUE (applying the rule)
--If with FLASE FLAG, whether there is TRUE FLAG or not, return FLASE (disable rule)

Not all rules currently have these changes, some are set to always yes/no by vanilla, and I don't think these should be changed.
Others are I'm not sure what they do, so there are no changes, but of course if someone happens to need to change these, I can add them.

advantage:
·It is less prone to conflict between rule implementations based on this mod.
·More flexibility to control the implementation of rules in the game without the need to write complex rule logic.
·This is easier to maintain than complex rule logic.
·Any in-game content can be interfered with without too much interference with the implementation of the vanilla rules.

shortcoming:
·Complex rule logic still requires modder to write events for FLAG control to achieve.
·Although the occurrence of conflicts can be reduced under this rule, it cannot be completely eliminated
-For example, MOD A and B add two FLAGs, one TRUE and one FALSE to the same country, and the final output will be FLASE.
--Therefore, it is recommended that each MOD should limit the application of the rules to its own unique content as much as possible.

About the Compatibility Pack
Obviously, this mod will conflict with all mods that modify the rules, and large mods that are already formed are obviously not necessarily willing to modify the rules they have built for a long time.
However, it is quite easy to create a compatibility pack between this mod and other mods, just replace the corresponding logic blocks completely:


Links to related compatibility packs:
UGRC+SUGL

12 kommentarer
Dave_12138 1. juni kl. 4:56 
似乎描述文件里适配游戏版本开头多了个字母v导致启动器一直有个黄色三角标
阿瓦达啃大瓜 20. maj kl. 7:27 
大佬你这个和merger of rules区别是什么,他们可以相互兼容吗,优先级有区别吗
https://steamcommunity.com/sharedfiles/filedetails/?id=2807759164&searchtext=merger
ivan727k 10. dec. 2023 kl. 9:47 
大佬,那个与伞的兼容补丁好像又回来了,建议再挂上去
SAW1tLat4r 1. okt. 2023 kl. 3:06 
这个mod目前是否不能和伞的规则共用了
_OAO_  [ophavsmand] 7. aug. 2023 kl. 23:54 
@楚迷是我 合并规则式的兼容方式带来的不可避免的屎山化。(
楚迷是我 7. aug. 2023 kl. 7:50 
@_OAO_ 推测是伞规则大改了逻辑导致工作量上升跑路了(),以人口为例,伞规则是每年检测一次状态,符合条件没flag就上flag,有flag但不符合条件的就移除flag,然后规则里直接一条flag带过去。当然我这边看是隐藏()
_OAO_  [ophavsmand] 6. aug. 2023 kl. 7:53 
@空破夕 看起来那个项目确实挂掉了,那个兼容包并非我在维护。
空破夕 6. aug. 2023 kl. 2:26 
大佬,与伞规则的兼容挂掉了?
_OAO_  [ophavsmand] 14. mar. 2023 kl. 13:32 
@not potatokiller234 fixed
potatokiller234 14. mar. 2023 kl. 13:16 
At the current moment your mods breaks worker class pops, they can't work jobs such as mine, energy, or food jobs