• 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.
Another issue I'm getting is duplicate error messages. The number of duplicates seems to vary; I've had everything from 2 to 13 duplicates.
E.G.,:
--- Error 1 of 1 ---
At <mod>\common\buildings\family_palace.txt [family_palace\fp_mansion_4] (Line 53, Column 2):
Invalid node "max_tradeposts" in scope BuildingDef (value is: 3)
--- Error 1 of 1 ---
At <mod>\common\buildings\family_palace.txt [family_palace\fp_mansion_4] (Line 53, Column 2):
Invalid node "max_tradeposts" in scope BuildingDef (value is: 3)
 
Another issue I'm getting is duplicate error messages. The number of duplicates seems to vary; I've had everything from 2 to 13 duplicates.
E.G.,:
--- Error 1 of 1 ---
At <mod>\common\buildings\family_palace.txt [family_palace\fp_mansion_4] (Line 53, Column 2):
Invalid node "max_tradeposts" in scope BuildingDef (value is: 3)
--- Error 1 of 1 ---
At <mod>\common\buildings\family_palace.txt [family_palace\fp_mansion_4] (Line 53, Column 2):
Invalid node "max_tradeposts" in scope BuildingDef (value is: 3)

I'll look into this later, but if you could do the following, it would be very useful:

0) Confirm, just to be sure, that there is nothing in "My Documents\Paradox Interactive\Crusader Kings II\mod"
0.5) Do you have the same family_palace.txt file in multiple mods, some of which depend on one another? It could be that the Validator isn't correctly labelling the file.

If either of those are the case, then good.

1) Make a copy of the entire Ck2 directory (base + mods)
2) Delete all the gfx folders, the exe, music, sounds, map images, and basically anything else that's not text and takes up lots of space
3) Zip up what's left and send it to me by whatever means you desire

If that's too tedious to do, then that's fine, hopefully I'll be able to find the issue anyhow.
 
Seems it is related to the dependencies; commenting them out fixes the "System.InvalidOperationException: Sequence contains more than one matching element" error. However, I kind of need it to check the dependencies, so it isn't a good solution :p
 
Seems it is related to the dependencies; commenting them out fixes the "System.InvalidOperationException: Sequence contains more than one matching element" error. However, I kind of need it to check the dependencies, so it isn't a good solution :p

Working on this now. If you're on right now, can you zip and send all your .mod files?

EDIT: Actually working on it later, too many other issues, but the .mod files would still help for once I get to them.
 
Last edited:
Last edited:
To to confirm, inside the mod name, you put "Some what more historic 2.615" without quotes, and it crashes almost immediately with the exception you posted?

It is possible, though unlikely, that this issue was fixed in the new version, since I can't seem to reproduce it, so I will post one soon.

Also there will be better error messages.
Now it just get stuck on "processing <appdir>\C:\Crusader Kings II\mod\swmh2615.mod" rather than giving an error message.
It never crashed for me; it just gave an error message and refused to parse SWMH.
 
Now it just get stuck on "processing <appdir>\C:\Crusader Kings II\mod\swmh2615.mod" rather than giving an error message.
It never crashed for me; it just gave an error message and refused to parse SWMH.

So right now, it just freezes and doesn't report anything?
 
Hmm, can you paste the full contents of the list of errors and the log at the botom? I am confused...
There is no list of errors:
ONrJTYc.png

Nothing after I hit "Validate" is getting logged either:
Log of Audax.Validator, version 1.3 RC6 [1.3.5.0]

Current Time: 30.03.2013 00:51:21
.NET Version: 4.0.30319.269
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
Current Culture: nb-NO
Current UI Culture: en-US
Command Line: "E:\[user_name <******>]\Downloads\Audax.Validator\App\Audax.Validator.exe"
Processor Count: 4
Current Directory: E:\[user_name <******>]\Downloads\Audax.Validator\App
Machine Name: [machine_name <**>]
System Directory: C:\Windows\system32
User Name: [user_name <******>]
User Domain Name: [machine_name <**>]
User Interactive: True
Tick Count: -10.04:17:11.6720000
Shutdown Started: False

ENVIRONMENT VARIABLES
COMPUTERNAME: [machine_name <**>]
HOMEPATH: \Users\[user_name <******>]
LOCALAPPDATA: C:\Users\[user_name <******>]\AppData\Local
PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PROCESSOR_ARCHITECTURE: AMD64
CommonProgramW6432: C:\Program Files\Common Files
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
ProgramFiles(x86): C:\Program Files (x86)
PROCESSOR_LEVEL: 16
__COMPAT_LAYER: DisableUserCallbackException
LOGONSERVER: \\[machine_name <**>]
USERNAME: [user_name <******>]
HOMEDRIVE: C:
USERPROFILE: C:\Users\[user_name <******>]
SystemRoot: C:\Windows
TEMP: C:\Users\[user_name <******>]\AppData\Local\Temp
PUBLIC: C:\Users\Public
ALLUSERSPROFILE: C:\ProgramData
ULTRAMON_LANGDIR: C:\Program Files\UltraMon\Resources\en
FP_NO_HOST_CHECK: NO
APPDATA: C:\Users\[user_name <******>]\AppData\Roaming
ProgramData: C:\ProgramData
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
OS: Windows_NT
CommonProgramFiles: C:\Program Files\Common Files
AMDAPPSDKROOT: C:\Program Files (x86)\AMD APP\
PROCESSOR_IDENTIFIER: AMD64 Family 16 Model 4 Stepping 3, AuthenticAMD
ComSpec: C:\Windows\system32\cmd.exe
SESSIONNAME: Console
SystemDrive: C:
PROCESSOR_REVISION: 0403
ProgramFiles: C:\Program Files
MOZ_PLUGIN_PATH: C:\Foxit Reader\plugins\
NUMBER_OF_PROCESSORS: 4
TMP: C:\Users\[user_name <******>]\AppData\Local\Temp
ProgramW6432: C:\Program Files
Path: C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\TortoiseSVN\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live
USERDOMAIN: [machine_name <**>]
windir: C:\Windows

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

StatusLog > Beginning initialization...
StatusLog > Initialization complete!
 
Set is to "show all errors". Gave me this:
Parse Failure
Path: <appdir>\C:\Crusader Kings II\mod\swmh2615.mod
Error: There were 2 instances of the mod with name "Project Balance". It was required as a dependency of "Some what more historic 2.615". These include the following: "C:\Crusader Kings II\mod\ProjectBalance.mod", "C:\Crusader Kings II\.\mod\ProjectBalance.mod",
 
Set is to "show all errors". Gave me this:
Parse Failure
Path: <appdir>\C:\Crusader Kings II\mod\swmh2615.mod
Error: There were 2 instances of the mod with name "Project Balance". It was required as a dependency of "Some what more historic 2.615". These include the following: "C:\Crusader Kings II\mod\ProjectBalance.mod", "C:\Crusader Kings II\.\mod\ProjectBalance.mod",

Ah, userdir.txt has "." in it? If so I think you can remove userdir.txt temporarily, but I will fix things for next time. Sorry for all the confusion.
 
False positive:
At <mod>\common\cb_types\Vanilla CBs.txt [crusade\on_success_title\if[2]\most_participating_attacker\if[2]\if] (Line 3186, Column 6):
Invalid node "destroy_landed_title" in scope CharIfClause (value is: PREV)
destroy_landed_title is valid as long as it points to an actual title. It can be called from any scope.

Oh and the Validator is currently using 1 GB of memory; I think something might be wrong :p
In fact, it seems to increase by a few hundred MB every time I validate. Looks like there's some sort of memory leak.
 
False positive:
At <mod>\common\cb_types\Vanilla CBs.txt [crusade\on_success_title\if[2]\most_participating_attacker\if[2]\if] (Line 3186, Column 6):
Invalid node "destroy_landed_title" in scope CharIfClause (value is: PREV)
destroy_landed_title is valid as long as it points to an actual title. It can be called from any scope.

Oh and the Validator is currently using 1 GB of memory; I think something might be wrong :p
In fact, it seems to increase by a few hundred MB every time I validate. Looks like there's some sort of memory leak.

Fixed the false positive. Just to check, destroy_landed_title=yes is valid in a title scope and destroys the current title?

Validator loads a whole bunch of things into memory, so 1 GB sounds reasonable. Does the increase of 100s of MBs happen even when your memory is full? If not I believe that is expected behavior where the system doesn't bother to clean up memory unless memory starts getting full. FWIW I get about 1 GB, but between runs, it gets cleaned up and doesn't increase.
 
Fixed the false positive. Just to check, destroy_landed_title=yes is valid in a title scope and destroys the current title?

Validator loads a whole bunch of things into memory, so 1 GB sounds reasonable. Does the increase of 100s of MBs happen even when your memory is full? If not I believe that is expected behavior where the system doesn't bother to clean up memory unless memory starts getting full. FWIW I get about 1 GB, but between runs, it gets cleaned up and doesn't increase.
I'm not entirely sure is = yes works; I always use = THIS.

I don't know if it keeps leaking memory if I'm at max, as I'm virtually never at max :p
Though with Firefox being especially leaky lately (hit 2 GB at one point, even), I might get there.
 
Am I the only one who gets hundreds of messages that PREV and PREVPREV are invalid values in events (or decisions?). The files in question are all vanilla files so they can't all be wrong, right?
 
Last edited:
Am I the only one the get hundreds of messages that PREV and PREVPREV are invalid values in events (or decisions?). The files in question are all vanilla files so they can't all be wrong, right?
The Validator still has some false positives when it comes to PREVing, I believe.