Pounces on bugs. Checks Crusader Kings 3 user mod files for common mistakes and warns about them. For example: missing localizations, or using a faith trigger on a character.
This project still in its beginning stages. It will warn about some things that are actually correct.
ck3-tiger
will read the relevant vanilla files and your mod's files, and it will complain about everything in your mod that looks wrong. Where possible, it will tell you why it thinks the thing is wrong and (still in very few cases) what you should do instead.
- Syntax validation: are you using the right key = value pairs? No misspellings?
- Missing items: is every game object that you refer to actually defined somewhere?
- Missing loca: do you have all the localizations you need for your mod?
- Scope consistency checking: are you using culture effects on cultures and character effects on characters, etc?
- History: Are spouses, employers, and lieges alive on the relevant dates? Is no one their own grandfather?
- Special: rivers.png check
It doesn't load all the game files yet, but it hits the major ones (events, decisions, history, localization, scripted triggers and effects) and many minor ones.
I welcome contributions in the form of suggestions and ideas about what it should check! Also if you have trouble understanding the output messages, feel free to let me know. They could always be more clear. You can file an issue on github or contact me directly via email. The same goes for bug reports. In particular, you can submit bug reports about false positives in the program output.
Contributions in the form of code are also welcome. They should be made as github Pull Requests, and you should read and understand the project's copyright license before doing so. It may help to file an issue before starting to code, though, since I may prefer to solve the issue in a different way.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE
file for more details.
Run it from the command line:
ck3-tiger path/to/your/descriptor.mod
or
ck3-tiger "path/to/Paradox Interactive/Crusader Kings III/mod/YourMod.mod"
(Note that the quote marks around the path are important because of the spaces in it.)
If you want the output in a file, you can redirect it like this:
ck3-tiger path/to/your/descriptor.mod >filename
You can place a file ck3-tiger.conf
in your mod directory. You can use it to select which languages to check localizations for, and to suppress messages about things you don't want to fix.
There is a sample ck3-tiger.conf
file in the release, with an explanation of what goes in it.
You can unpack the archive from the "Release" page on github and use it that way.
If you want to build it yourself, you will have to install the Rust programming language: https://www.rust-lang.org/tools/install
Then run cargo build --release
in the project's directory, then run the program as target/release/ck3-tiger
.
[CK3] file events/dlc/fp1/fp1_shieldmaiden_events.txt line 666 any_scheme_agent = { this = scope:prospective_shieldmaiden } line 666 ^ WARNING (scopes): `any_scheme_agent` is for scheme but scope seems to be character [CK3] file events/dlc/fp1/fp1_shieldmaiden_events.txt line 656 has_trait = shieldmaiden line 656 ^ INFO (scopes): scope was deduced from `has_trait` here