Module config_load

Module config_load 

Source
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_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 a Vec of FilterRules.
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.