Stellaris

Stellaris

271 ratings
Stellaris Universal Gamerule Lib
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
277.224 KB
Apr 19, 2022 @ 11:06pm
May 7 @ 10:16am
29 Change Notes ( view )

Subscribe to download
Stellaris Universal Gamerule Lib

In 1 collection by _OAO_
使用通用库的MOD合集.
8 items
Description
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

11 Comments
阿瓦达啃大瓜 May 20 @ 7:27am 
大佬你这个和merger of rules区别是什么,他们可以相互兼容吗,优先级有区别吗
https://steamcommunity.com/sharedfiles/filedetails/?id=2807759164&searchtext=merger
ivan727k Dec 10, 2023 @ 9:47am 
大佬,那个与伞的兼容补丁好像又回来了,建议再挂上去
有些人光是活着就已经 Oct 1, 2023 @ 3:06am 
这个mod目前是否不能和伞的规则共用了
_OAO_  [author] Aug 7, 2023 @ 11:54pm 
@楚迷是我 合并规则式的兼容方式带来的不可避免的屎山化。(
楚迷是我 Aug 7, 2023 @ 7:50am 
@_OAO_ 推测是伞规则大改了逻辑导致工作量上升跑路了(),以人口为例,伞规则是每年检测一次状态,符合条件没flag就上flag,有flag但不符合条件的就移除flag,然后规则里直接一条flag带过去。当然我这边看是隐藏()
_OAO_  [author] Aug 6, 2023 @ 7:53am 
@空破夕 看起来那个项目确实挂掉了,那个兼容包并非我在维护。
空破夕 Aug 6, 2023 @ 2:26am 
大佬,与伞规则的兼容挂掉了?
_OAO_  [author] Mar 14, 2023 @ 1:32pm 
@not potatokiller234 fixed
potatokiller234 Mar 14, 2023 @ 1:16pm 
At the current moment your mods breaks worker class pops, they can't work jobs such as mine, energy, or food jobs
_OAO_  [author] Apr 20, 2022 @ 10:14pm 
what?