I don't know if this is possible, but would be nice if Validator raised an error if some .txt/.csv files have non-ANSI encoding, as it screws up in game![]()
By "non-ANSI" he means Windows-1252 encoding.
I don't know if this is possible, but would be nice if Validator raised an error if some .txt/.csv files have non-ANSI encoding, as it screws up in game![]()
Request for a type of validation that would fall under 'Titles'
- Landed title of tier higher than count lacks 'capital' definition
- Given province ID for title capital is invalid or not within a de jure landed title's territory (e.g., a d_* has a capital defined that does not correspond to any of the IDs of its child c_* titles, and so on)
I don't know if this is possible, but would be nice if Validator raised an error if some .txt/.csv files have non-ANSI encoding, as it screws up in game![]()
The first one is added, as for the second not sure how this is supposed to work with things like mercenaries etc. The first doesn't seem to work that well either but I will put it in and see what people have to say.
--- Error 1 of 1 ---
At <mod>\decisions\ACR_hellenic_decisions.txt [decisions\recreate_pontificate\potential\primary_title\higher_real_tier_than] (Line 78, column 22):
Invalid node "higher_real_tier_than" in scope TitleTrigger (value is: DUKE)
technology = {
titles = {
d_duchy1
}
475 = {
military = 0.5
economy = 0.5
culture = 0.5
}
1337 = {
military = 3.5
economy = 3.5
culture = 3.5
}
}
technology = {
titles = {
d_duchy2
}
#Missing year 475, game will CTD if DONT_EXECUTE_TECH_BEFORE is set to any year before 769
769 = {
military = 0.5
economy = 0.5
culture = 0.5
}
1337 = {
military = 3.5
economy = 3.5
culture = 3.5
}
}
namespace = eog
character_event = {
id = eog.1
desc = *EVTDESCeog.1
[...]
By "non-ANSI" he means Windows-1252 encoding.
Would it be possible if you could introduce a second type of error? Let's call them error and warning. If errors are only things that will crash your game on load, on resign and on save/load as well as bugs that cause blank events and make all the others warnings your tool(s) would be a lot more useful for trouble shooting. You could look at the list and fix the errors that could be sorted to the top first and then fix some of the probably thousands of warning the Validator prints out.
(...)
It would just be great if the Validator could visualize things that crash the game if it found any. If I forgot a brace on a character's birth clause the game will break. If I did such a mistake I'd love to see this right away.
Would be great indeed
For instance invalid node type or duplicated ID should be error, while missing localization or duplicated names in list should be warning.
No. The exact opposite. By "non-ANSI" he means NOT Windows-1252 encoding.
Duplicated ID? Care to elaborate?
Yeah, would need to review exactly what works and what doesn't, and agree on what is an error and what should be a warning...
Duplication for things loaded from folders is actually an important topic to improve compatibility between mods and between mod and vanilla !
Decisions: error (duplicate decisions between mod and vanilla does not work, effect is not called
Events: error (between 2 events in the mod) or warning ? (between mod event and vanilla event - but does the override actually work ?).
Titles: error (duplicate de jure structure in landed_titles can cause holy sites to be referenced twice in religion, same barony referenced in multiple counties causes bug, ...), warning in some cases (barony title override, ...).
Cultures: error (culture group appears twice in ruler designer I think)
Religions: warning (override works)
Characters: need to agree
GFX: warning (override works)
on_actions: warning (works)
localisation: warning (works)
CB, Nicknames, minor_titles, traits: ? (not tested)
I've noticed a false positive:
Code:--- Error 1 of 1 --- At <mod>\decisions\ACR_hellenic_decisions.txt [decisions\recreate_pontificate\potential\primary_title\higher_real_tier_than] (Line 78, column 22): Invalid node "higher_real_tier_than" in scope TitleTrigger (value is: DUKE)
I've tested it works fine, both on TitleTrigger and CharTrigger (similar to higher_tier_than).
Haven't tested lower_real_tier_than, but I would assume it's the same.
Can you do add a check that the event (but probably is a problem for decisions, localization and so on) does not contains the character "non breakable space" or in unicode '\u00A0'? I lost two days of my life trying to understand why a correctly event does not triggered luckily when put in the code tag the ugly truth is shown:
Code:namespace = eog character_event = { id = eog.1 desc = *EVTDESCeog.1 [...]
in the form of that '*' that is not, apparently, present in my text!
I don't know if there are other not printable character that the engine does not like if so please add them too.
Thanks!
No. The exact opposite. By "non-ANSI" he means NOT Windows-1252 encoding.
@Romulien
If you have 479 as the don't execute tech date you can as well have a tech definition for 470 and it will work. Only if you have no tech for the defined year or after you'll get a problem
@Jamie
Would it be possible if you could introduce a second type of error? Let's call them error and warning. If errors are only things that will crash your game on load, on resign and on save/load as well as bugs that cause blank events and make all the others warnings your tool(s) would be a lot more useful for trouble shooting. You could look at the list and fix the errors that could be sorted to the top first and then fix some of the probably thousands of warning the Validator prints out.
There's plenty of things that will crash the game that are hidden among inconsequential bugs or not reported at all.
I love your tool but it is frustrating to use it to find deeply troubling bugs. A friend of mine keeps claiming that he found the great bug that haunts the Warhammer mod by fixing 100 Validator errors while the big, unfathomable bug still looms in the dark. Maybe the Validator has found the cause but if it did it is buried beneath thousands of other errors (vanilla event files, disconnected dynasties, ...). I am not saying that this things are not worth fixing but it would take us like a months to connect all those disconnected dynasties and it would not bring us closer to fixing the greater, underlying bug.
It would just be great if the Validator could visualize things that crash the game if it found any. If I forgot a brace on a character's birth clause the game will break. If I did such a mistake I'd love to see this right away.
What do you have in File -> Options -> Text Editor?A really great tool, have used it quite extensively to fix my own personal mod when the new CK2 versions come out and break it. Only problem is, is that for some reason notepad++ only shows a blank page when I click the *check mark* next to the error in the Validator. Does anyone happen to know why it's doing this?
One person's error is another person's warning. (There are some things that are definitely warnings, but most are debatable). In some cases if you forget braces the game will still run just fine. If you want you can always copy out the error list and write a script to filter it to what you find interesting.
Sorry for the late reply, I originally had the notepad++.exe, but I removed it, and NotePad++ still showed up, and was blank. So I'm not sure what is going on. Maybe because I set NotePad++ as the deafault text editor on my System?What do you have in File -> Options -> Text Editor?
Sorry for the late reply, I originally had the notepad++.exe, but I removed it, and NotePad++ still showed up, and was blank. So I'm not sure what is going on. Maybe because I set NotePad++ as the deafault text editor on my System?
Doing *Run* it opens fine. Also, I have no *save* file.Hmm if Notepad++ is the default editor then it should at least not open blank, but open to the file. Can you post the contents of Data\save.txt, and also report on what happens when you open the run dialog with WindowsKey+R, and type in the path of a text file, then press enter?