• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
False positive:
--- Error 1 of 1 ---
At <mod>\events\province_prosperity_events.txt [province_event[8]\mean_time_to_happen\modifier[9]\owner] (800, 4):
Invalid node "realm_learning" in scope CharTrigger (value is: 40)

realm_learning is tested as working (all the realm_stat checks do).
 
BTW, you might want to update the OP. It says that the Validator only checks dynasty, history and localisation but it checks a lot more than that now.
 
False positive:


realm_learning is tested as working (all the realm_stat checks do).

Added.

BTW, you might want to update the OP. It says that the Validator only checks dynasty, history and localisation but it checks a lot more than that now.

Thanks, I removed that part.
 
I would like to try your tool, but every version that I download Norton Anti-Virus goes nuts and auto-deletes every dll in the download. I think that it is because it is new files, but I thought that I would report it.
 
I would like to try your tool, but every version that I download Norton Anti-Virus goes nuts and auto-deletes every dll in the download. I think that it is because it is new files, but I thought that I would report it.

Thanks, but I suspect it's just Norton being silly. Is there no way to disable it when you first download it? I promise that there are no viruses on it :D
 
I'll try to make an exception, but it's pretty tight against strange dlls. I'll let you know how it turns out.
Same here. What I have to do is turn off "auto-protect" and SONAR for the time it takes to install the Validator...

Kind of a pain with Norton, but I can't go without Validator! ;)
 
The lesson being to not use Norton ;)
Norton has never been particularly good. I'd recommend using Microsoft Security Essentials instead; it is free as long as you have a legal copy of Windows.
 
It's false positives time again (the best time).

--- Error 1 of 1 ---
At <mod>\decisions\loan_decisions.txt [decisions\ai_take_loan\allow] (Line 103, Column 3):
Invalid node "monthly_income" in scope DecisionTrigger (value is: 1)

monthly_income tested as working fine.

--- Error 1 of 1 ---
At <mod>\events\province_prosperity_events.txt [province_event[5]\trigger\OR\owner\ROOT] (Line 449, Column 5):
Invalid node "controller" in scope ProvTrigger (value is: <a complex type>)

controller tested as working fine (targets controller of capital barony).

--- Error 1 of 1 ---
At <mod>\common\technology.txt [TECH_GROUP_MILITARY\TECH_CASTLES\5\modifier] (Line 232, Column 4):
Invalid node "SUPPLY_LIMIT" in scope JunkModifiers (value is: 10)

Tested as working fine, you appear to be able to put any province effects in tech.
 
It's false positives time again (the best time).



monthly_income tested as working fine.



controller tested as working fine (targets controller of capital barony).



Tested as working fine, you appear to be able to put any province effects in tech.

I added the first two. As for the third, it is flagged because the Validator wants supply_limit not SUPPLY_LIMIT. Just because someone decided to caps all of it for funsies, doesn't mean that I have to go along with it. They may have gotten away with it for vanilla, but they can't force people to caps the rest of it as well. Okay I should probably shut up now... :eek:o But thanks for the info, anyways :)
 
The validator seems like an excellent tool. I'm new to Paradox games and modding so it'll be very handy for me. Do you have any plans to open-source it when you reach version 1.0 proper?

I know a bit of C# and I'm interested in making some modding tools related to savegames etc.

Forgive me if it's considered bad etiquette to make such requests - as mentioned, I'm new to Paradox and modding! I'd simply prefer not to reinvent the wheel in terms of parsing the data, which your validator is clearly already doing. Big kudos to you for having got this far!
 
Any chance the Validator could add a feature to list any lines in localisation files or flag files that are not referenced within CK2 and its mod? This could assist in removing unused code and decrease the size of localisation files and any load on the game. Not to mention make files clean and remove unnecessary gfx.
 
As of 1.05f, can_grant_invasion_cb = invasion is confirmed to be correct.

Fixed. (Did I mention that it was my fault that it broke in the first place? :rofl: )

The validator seems like an excellent tool. I'm new to Paradox games and modding so it'll be very handy for me. Do you have any plans to open-source it when you reach version 1.0 proper?

I know a bit of C# and I'm interested in making some modding tools related to savegames etc.

Forgive me if it's considered bad etiquette to make such requests - as mentioned, I'm new to Paradox and modding! I'd simply prefer not to reinvent the wheel in terms of parsing the data, which your validator is clearly already doing. Big kudos to you for having got this far!

I don't intend to open-source it, but have no issues with you using parsing code via linking (it's actually in a separate DLL). If the lack of open-source is not a problem then I can give you some details. (You won't run into versioning issues since the parsing code is stable now, so you would just take the current DLL and use it forever). I also have something for moddir, but it seems pretty confusing to use, even to me who wrote it.

At some later point, I may make a well-documented library for Paradox games, but there's no guarantees about that.

Any chance the Validator could add a feature to list any lines in localisation files or flag files that are not referenced within CK2 and its mod? This could assist in removing unused code and decrease the size of localisation files and any load on the game. Not to mention make files clean and remove unnecessary gfx.

It would be nice, yes. The question is, what graphics files are actually used? I'm not sure how to come up with the list. Same with localization, which has a lot of hardcoded strings. This does seem like it would be useful for people, but at this point I'm not sure how it would be implemented. Maybe you have some ideas?
 
It would be nice, yes. The question is, what graphics files are actually used? I'm not sure how to come up with the list. Same with localization, which has a lot of hardcoded strings. This does seem like it would be useful for people, but at this point I'm not sure how it would be implemented. Maybe you have some ideas?
For flags, Validator could do a reverse of what I assume it does to verify if those flags are missing. It looks at titles listed in landed_titles.txt and can denote any flags missing, so why not do the reverse and look at what gfx are in the flag folder and output a list of any they are not in the landed_titles.txt?

Similarly, when scanning localisation files, cross-reference the entries to all other files and output "error" for any that pop up as not being referencing anywhere.