驗證器

(重新導向自Validator
驗證器
類型 Tool
作者 Jamie550
版本 Released - v1.32.2 for CK2 3.2.1
論壇/貼吧 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

  • 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

Validator Vanilla
v1.30.3 Patch 3.1.X
v1.27.3 Patch 2.8.X
v1.22.8 Patch 2.7.2
v1.20.3 Patch 2.7.1
v1.18.6 Patch 2.6.X
v1.15.6 Patch 2.5.X
v1.12 Patch 2.4.5

Setup

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

  • DidYouKnow.pdf in Validator directory, for advanced features.