Expand description
Loading and interpreting the config file.
The config file is located at the top level of the mod and is named after the validator, for
example ck3-tiger.conf
.
Functions§
- Assert that the given key occurs at most once within the given block. If the assertion fails, an error report will be created. No other action will be taken.
- Checks for legacy ignore blocks (that no longer work) and report an error if they are present.
- load_
files_ πarray - Loads the
ignore_keys_in_files
trigger. This is syntactic sugar for a NAND wrapping an OR of keys and an OR of files. - load_
keys_ πarray - load_
not πThis loads a NOT block. In paradox script, NOT is actually an implicit NOR. Load the children, if more than one exists, it returns a NOR block, otherwise a NOT. - load_
rule πLoad a single rule. - load_
rule_ πalways - load_
rule_ πconfidence - load_
rule_ πfile - load_
rule_ πkey - load_
rule_ πseverity - load_
rule_ πtext - load_
rules πLoad a vector of rules from the given block. - load_
rules_ πfrom_ bv Load a vector of rules from a value. This first checks that the value is a block. If so, it loads aVec
ofFilterRule
s. - Check if config file that was passed in with βconf argument is valid. If it is not valid let the user know, set it to None, and use the default one instead.