Uhm, oh, I have a micro Mod which let CK2 CTD on start but the validator sees no error. Is this a bug or a feature? Can I help?
Beginning validation...
ec) EXCEPTION CONTEXT
dec) DEFAULT EXCEPTION CONTEXT
ERROR
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry.ProcessSquiggly(String text, Int32& i)
at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry.ProcessText(String text)
at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry..ctor(ElementNode entryNode)
at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.Initialize(ElementNode configNode, Scope scope)
at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationPrevalidationTask.OnPrevalidation(Context c, Scope scope)
at Audax.Validator.GameValidator.Validate(Action onEachValidatorCompleteAction)
--- Error 1 of 1 ---
Localization error
At localisation\RulerDesigner.csv [Entry[67]\3] (68, 111):
Missing character after §: §RDiese Religion ist nicht spielbar§
Uhm, oh, I have a micro Mod which let CK2 CTD on start but the validator sees no error. Is this a bug or a feature? Can I help?
Have I done something wrong? I set the game path to 'C:\Program Files (x86)\Steam\steamapps\common\crusader kings ii' then selected Crusader Kings II on the right, validate all options and hit validate and all I got was this:
Code:Beginning validation... ec) EXCEPTION CONTEXT dec) DEFAULT EXCEPTION CONTEXT ERROR System.IndexOutOfRangeException: Index was outside the bounds of the array. at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry.ProcessSquiggly(String text, Int32& i) at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry.ProcessText(String text) at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationEntry..ctor(ElementNode entryNode) at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.Initialize(ElementNode configNode, Scope scope) at Audax.Validator.Clausewitz.Ck2.Ck2LocalizationManager.LocalizationPrevalidationTask.OnPrevalidation(Context c, Scope scope) at Audax.Validator.GameValidator.Validate(Action onEachValidatorCompleteAction)
The only error I was given was a localization error:
Code:--- Error 1 of 1 --- Localization error At localisation\RulerDesigner.csv [Entry[67]\3] (68, 111): Missing character after §: §RDiese Religion ist nicht spielbar§
I can confirm that checking localization makes the Validator fail. It seems to work fine as long as localization checking is disabled.
Running through my mod with the Validator now. I'll edit this post with further feedback.
Will keep modifying it yeah, think I'm slowly approaching the end now.@Meneth: Thanks! I'll look at them later (so you can keep editing the same post if you wish), but a few clarifications.
(FYI, 1.05 moved many modifiers to a folder so the Validator can't find them, but it has been fixed for the next release)
1. The missing things you mention in CB types; are any of them exclusive to CB types i.e. you can't use them anywhere else?
2. Are the gender_succ values (cognatic, etc) hardcoded?
3. I allow add/remove province modifier inside province scopes. I guess if you do add/remove province modifier in a character scope, it will add the modifier to the province that the character is at?
4. The succession laws; are they hardcoded values as well?
5. Can you use commands like "set_the_kings_full_peace" anywhere, e.g. in event files?
Can you post the exact error?* It doesn't understand holder_scope within a PREV-scope, it seems. (cb_types.txt)
Can you post the exact error?* "PREV" is not a valid ThisTitle" it should be, however (cb_types.txt)
Is it because some of the numbers exceed 255? I was under the impression that colors ranged from 0 to 255.* Colors in cultures.txt and religion.txt still show up as errors.
Can you post the exact error?* any_vassal in decisions gives an error. Pretty much everything that's valid for events should be valid in the decision files.
I thought this was character/province flags? Or maybe you could post an example?* Character and province modifiers (unless specified in the modifier files) show as errors. The event and objective systems lets one create arbitrary modifiers for scripting purposes without defining them outside the event/objective files.
Could you post the error?* held_title_rating in objectives.txt
Could you post the error?* mercenary = no isn't recognized as a valid condition (objectives.txt)
Can you post the exact error?Can you post the exact error?
Is it because some of the numbers exceed 255? I was under the impression that colors ranged from 0 to 255.
Can you post the exact error?
I thought this was character/province flags? Or maybe you could post an example?
Could you post the error?
Could you post the error?
I've fixed the issues that aren't quoted. Me asking for the error is sometimes because I stupidly messed up my copy of the files, sorry o
1, 2, 4, 6, and 7:Are there friends and rivals? I see any_friend, any_rival, random_friend, random_rival, num_of_friends and num_of_rivals but that's all. So I'm wondering if they actually exist or not.
Do you want the code as well?
3: No, the colors in religion and culture range from 0 to 1.
5: When looking at it again it seems Paradox simply made a mistake, so disregard that.
"Are there friends and rivals? I see any_friend, any_rival, random_friend, random_rival, num_of_friends and num_of_rivals but that's all. So I'm wondering if they actually exist or not. "
They were implemented in 1.05.
1) From what I can tell, all of them show up as errors (or at the very least most of them)Hmm so 0-1. The thing is, it passes my validation happily. Do all of the color entries give you errors, or just a few of them?
RE holder_scope: The validator currently treats this as being in a character trigger, in which holder_scope wouldn't make sense. But that may be an issue with how it treats PREV. Could you tell me which scope the PREV points to (i.e. is it most_participating attacker, on_success_title, or which), so I can make sure it is actually pointing to it?
Same thing with usurp_title, can you tell me where PREV points?
It seems strange to use any_vassal within a title scope (why not do holder_scope={ any_vassal = {...} }) but I guess it works, so have added it.
I have added held_title_rating and mercenary.
Thank you for all your help
1)1) Can you post some of the color errors?
2) Okay. So we are currently in the most_participating attacker scope, so PREV will jump back to the on_success_title, because we ignore "if". Then I don't understand how the gain_settlements_under_title works, because PREVPREV seems strange. In there, we are currently in most_participating_attacker scope, and PREV brings us to the on_success_title, and then the second PREV; what does it do?
On another note, do you know what FROMFROM does in CB types? I currently only check FROM and basically allow any FROMFROM, FROMFROMFROM, etc, but hope to fix this in the near future.
1)
Relevant code: "color = { 0.4 0.4 0.3 }"
2) I guess gain_settlements_under_title counts as a scope for some reason. Either that, or Paradox made a mistake, or I simply can't figure it out.
3) There are no FROMFROMFROMs that I can find. FROMFROM however is the character the attacker is pushing the claim for. AFAIK it is only valid for CBs with the flag "push_claim = yes"