In the drop-down in the top right, change "Show all errors" to "Show mod errors"
I did that and yet on the bottom left I can see the Validator running through all the vanilla files.
Must be something I'm missing.
In the drop-down in the top right, change "Show all errors" to "Show mod errors"
It still has to run through the vanilla files to avoid false alarms if you call something from vanilla, like using a vanilla trait or calling a vanilla event. If just won't report errors in those files.
--- Error 1 of 1 ---
At <mod>\decisions\jd_decisions.txt [decisions\write_a_book\ai_will_do\modifier\NOR\government] (Line 233, column 6):
"theocracy" is not a valid Government or MaybeEventTargetChar.
--- Error 1 of 1 ---
At <mod>\decisions\jd_decisions.txt [decisions\write_a_book\ai_will_do\modifier\NOR\government] (Line 234, column 6):
"republic" is not a valid Government or MaybeEventTargetChar.
These are used in vanilla and appear to be valid
--- Error 1 of 1 ---
At <mod>\common\laws\demesne_laws.txt [laws\first_night_0\revoke_allowed] (Line 1282, column 3):
Invalid node "revoke_allowed" in scope DecisionDef (value is: <a complex type>)
--- Error 1 of 1 ---
At <mod>\common\laws\demesne_laws.txt [laws\privilege_vassal_king\ai_will_revoke] (Line 1236, column 3):
Invalid node "ai_will_revoke" in scope DecisionDef (value is: <a complex type>)
These are present in vanilla laws/decisions
--- Error 1 of 1 ---
At <mod>\decisions\minor_decisions.txt [decisions\destroy_artifact\effect\FROM] (Line 1309, column 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
In this particular hardcoded decision, FROM is an artifact
I have this error and can't tell, what to do:
--- Error 1 of 1 ---
At <unknown location>:
There were no setters for this event target other_author
I'm not 100% sure, but I think they would be hardcoded values.Are these hardcoded values of republic/theocracy or doe they stem from some file or other?
That is correct, destroy_artifact is a special decision where the FROM scope is an artifact and ROOT is the character/owner.Do you mean that the decision with name "destroy_artifact" has special properties? And those special properties are that FROM is artifact scope for potential/allow/effect, and everything else is the same?
NOTE: This could be a false positive.
What it means is that somewhere you do a get for the event target other_author. (something like event_targetther_author = {...}). But never saved the event target in the first place.
However if the place that is setting other_author wasn't validated (because its checkbox was unchecked) then this would be a false positive. You can check everything then run it and see if it still complains.
Any idea why the Validator would launch the Notepad++ executable (when given the proper path), but not open the relevant txt file inside it? Every time I click on a checkmark next to an error, Notepad++ opens to a blank tab.
{0} -n{1}
I keep getting messages that explicitly referenced titles aren't valid AnyTitles:
--- Error 1 of 1 ---
At <mod>\decisions\conversion_decisions.txt [decisions\renounce_iconoclasm\potential\has_landed_title] (Line 3430, column 4):
"e_byzantium" is not a valid AnyTitle, MaybeEventTargetTitle, or No.
--- Error 1 of 1 ---
At <mod>\decisions\conversion_decisions.txt [decisions\renounce_iconoclasm\effect\activate_title\title] (Line 3501, column 23):
"k_orthodox" is not a valid AnyTitle or MaybeEventTargetTitle.
--- Error 1 of 1 ---
At <mod>\decisions\conversion_decisions.txt [decisions\renounce_iconoclasm\effect\k_papal_state] (Line 3482, column 4):
Invalid node "k_papal_state" in scope DecisionCommand (value is: <a complex type>)
The examples here are from vanilla decisions so they can be easily checked, but it also occurs in code I create as well, so it doesn't seem to be something weird Paradox is doing.
EDIT: Probably related, but the Validator also gives errors when directly scoping to titles:
--- Error 1 of 1 ---
At <mod>\decisions\mythos_dragon_decisions.txt [decisions\make_sapphire_flame_sjaelland\effect\b_lejre] (Line 1120, column 4):
Invalid node "b_lejre" in scope DecisionCommand (value is: <a complex type>)
The actual code works as intended, and this error appears each time I scope directly to a title
Do you see any parse errors for any files in common/landed_titles? You can just copy all errors to a text file and search for "landed_titles". If there are parse errors those need fixing and then these errors should go away.
Do you have anything in File -> Options -> Text Editor?
What I use for command line is
and path is of course the path to the notepad++ exe.Code:{0} -n{1}
If that doesn't help we would need to look further
A bunch of it is in Extension/Data. Otherwise not really.@Jamie550 miscellaneous auestion: given the current architecture of the validator: would it be possible to implement an option for the program to output an (informal) grammar of the selected game? Something like that would be really useful for documentation, and I guess also for spotting missing/incorrect rules in the validator itself.
2.8.0 Changelog said:Now possible to scope to religions, cultures, and their groups. E.G., "norse = {". Note that for the groups, this simply scopes to the first culture/religion in the group, not the actual group itself
Religion/culture/group is a valid scope anywhere.
Please post an error just to make sure I understand things right.