Stellaris Universal Gamerule Lib

Fixes, Overhaul


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.

FeaturesThis 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...

Author: _OAO_

Created: 19 Apr, 2022 @ 11:06pm

Updated: 8 Dec, 2023 @ 8:58pm

Subscribers: 27910


Size (unpacked) : 0.240 MB

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

How do I download and install mods?

Simply click the blue button above. It will open the file hosting page with the mod repacked by us from the official source.

How do I install this mod?

See the 'How to install' tab.

Is this mod safe to use?

The mods are repacked as is, without any additional software, malware, or bloatware added. To check for viruses, use a reliable antivirus or upload the archive to a website like virustotal.com. Anyway, It's always a good practice to keep backups of your saves in case of mod incompatibility .

This instruction is not written yet..