The Validator

From Crusader Kings II Wiki
Jump to: navigation, search
The Validator
Type
Tool
Author
Jamie550
Status
Released - v1.16.1 for CK2 2.6.1(partial support)
Forum
Link
The Validator in action

The Validator is a utility tool for Windows, allowing to find all sorts of errors inside the game files. It has found numerous bugs, both in vanilla and in mods.

It is sometime the only way to locate the source of some random CTDs or some weird engine bugs.

Validator is updated regularly, and the number of false positives is constantly shrinking. If the Validator reports an error that you don't think is an error, first make sure it actually does work and then report it to the forum thread, where Jamie550 will make the necessary corrections as soon as practically possible. In a similar way, if you discover a bug that wasn't detected by the Validator and cost you some time, report it as well !

Features[edit]

  • Check that the basic syntax is correct, and detect issues with brackets.
  • Advanced checking of scopes, triggers, and effects syntax and validity.
  • Checking of buildings, casus belli, characters, diseases, dynasties, and much more.
  • Detects misspellings, invalid or duplicate IDs, and all kinds of typos.
  • Detect missing flags.
  • Warn on missing localizations.
  • ...

Versions[edit]

Validator Vanilla
Latest Patch 2.6.X
v1.15.6 Patch 2.5.X
v1.12 Patch 2.4.X

Setup[edit]

Create a new scheme for your mod:

  • Game Path: location of CK2game.exe. For instance: C:\Program Files (x86)\Steam\SteamApps\common\Crusader Kings II. To find it in Steam, right-click on Crusader Kings II in game library, go to "Local Files" tab, click "Browse Local Files", and copy the path from the explorer window.
  • Mod name: this is the folder name of the mod inside ~\Documents\Paradox Interactive\Crusader Kings II\mod\. For instance with ~\Documents\Paradox Interactive\Crusader Kings II\mod\MyMod\, mod name would be MyMod.
  • Select "Crusader Kings 2" in the dropdown.

It is possible to configure the external editor used to open files when double-clicking an issue. Under Files/Options:

  • Path (for Notepad++ this may be C:\Program Files (x86)\Notepad++\notepad++.exe)
  • Command line options to jump to the faulty line (for Notepad++: {0} -n{1})

See also[edit]

  • DidYouKnow.pdf in Validator directory, for advanced features.
Modding
Gfx/Sfx/localisation