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_
one_ key - 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.
- check_
for_ legacy_ ignore - Checks for legacy ignore blocks (that no longer work) and report an error if they are present.
- load_
files_ πarray - load_
filter - load_
ignore_ πkeys_ in_ files - Loads the
ignore_keys_in_filestrigger. 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 a
VecofFilterRules. - validate_
config_ file - 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.