What does "Invalid color character ' '" mean? I'm getting a bunch of messages like that from text1.csv.
I'm getting it even when it isn't followed by a space:It means that you have a '§' symbol followed by a space; as far as I know this is invalid. If it's not, then I'll fix it.
Not sure, tbh.Hmm so the symbol followed by a space is valid? I ask because the only time I see it is in the translations, while the English ones have the symbol followed by an '!'.
EDIT: Didn't see your picture earlier. For the first one, the symbol at the end of TITLE isn't followed by !. Same forthe end of TARGET for the second, and TITLE for the third.
Okay, I will fix it and use the dynamic law list.
Yeah.Did you see my edit about your image?.
They both help determine how characters look. The English and the Normans, and probably a few other cultures, have a few characters using those attributes.Okay, I will add piety, prestige, raise_levies, dna, properties, and wealth. Could you describe dna and properties in detail?
140 = {
name="William"
# AKA: William 'the Conqueror'
dynasty=752
[B]dna="epdbiohgmkk"
properties="ae0000"[/B]
martial=7
diplomacy=7
intrigue=10
stewardship=6
religion="catholic"
culture="norman"
add_trait="ambitious"
add_trait="diligent"
add_trait="just"
add_trait="proud"
add_trait="cynical"
add_trait="brave"
add_trait="temperate"
add_trait="patient"
add_trait="legit_bastard"
add_trait="brilliant_strategist"
father=252
mother=41001
1027.1.15 = {
birth="1027.1.15"
}
1035.7.3 = {
give_nickname = nick_the_bastard
}
1053.1.1 = {
add_spouse=367 # Mathilda of Flanders
}
1066.1.5 = {
add_claim = k_england
}
1066.9.14 = {
wealth = 1000
raise_levies = {
#location = 25 # Sussex
location = 97 # Rouen
force_mult = 6
}
}
1066.10.14 = {
raise_levies = {
dismiss = yes
location = 97 # Rouen
force_mult = 6
}
}
1066.12.26 = {
give_nickname = nick_the_conqueror
}
1087.9.9 = {
death="1087.9.9"
}
}
Thanks.Hmm, the Validator is supposed to check the vanilla character files if you don't have another file with the same name and don't use replace_path in your .mod file. I will look into it soon.
A few of my error messages:I couldn't quite duplicate the character ID issue. This is what I did:
1. Made a file a.txt in the root history\characters, and added a character in.
2. Made a file b.txt in a mod history\characters, and added a character in, whose mother was the one in a.txt.
I didn't get an invalid character ID error. However, when I changed b.txt's mother to something else (who didn't exist), I did get the ID error.
Maybe the above is not what you mean?
Hmm. It does seem a missing = in another entry was the problem.Is this the 509 in bohemian.txt? And you definitely don't have a bohemian.txt in your mod? Also look at the first few errors, and if any of them are parse errors, try fixing them and rerunning. If bohemian.txt has a parse error then the Validator can't read it to determine that there is such a character.
Great stuff, running through my files now. Already found some issues in my mod.v0.8.21 b RC2 has been released
Download here
NOTE: Currently, there is _no_ validation of triggers and commands; the Validator just skips those parts of the files that it validates. Such validation will come later.
k_sunni = {
color={ 40 160 40 }
color2={ 220 220 0 }
capital = 719 # Mecca
title = "CALIPH"
foa = "CALIPH_FOA"
short_name = yes
religion=sunni
# Controls a religion
controls_religion = sunni
caliphate = yes
}
I was getting error messages for every single color entry, using almost entirely the vanilla values.@steveuk666: It would be difficult for the Validator to do so. However, if you use a text editor like Notepad++ and set it to a language that has brackets, you can soon see where the bracket is missing. Also if you double click on the error, the Validator will show what it managed to parse, and you can see if anything got incorrectly shifted over.
@Meneth: I have fixed your reported issues, except for the following:
* Cultures.txt already uses 0-1 colors, so that wouldn't be the issue.
No, sorry. Search cultures.txt for part of the name I mentioned and you should find it.* Do you know what character that actually is, that the Validator treats as a space?
It works fine, yes.* It's complaining that caliphate isn't allowed at the king level. I guess it actually is allowed at that level? (I have it as allowed only at the empire level).
Yup.* I added galleys, fort_level, naval_organisation, global_defensive, garrison_growth, land as province modifiers. Is that correct?
It seems that land_organisation applies to everything raised by a character if applied on char-level, but only on the units from a specific province if applied on prov-level.* "land_organisation" is currently listed as a province modifier, while triggered modifiers operates on character modifiers. I assume either triggered modifiers operates on province modifiers, or land_organisation works as a char modifier or both. Which case would it be?
color = { 0.4 0.6 0.1 }Can you copy one color entry's error in, please?
Do you know if caliphate works at every level, or just empire and king?
Hmm, I see, that character is 0xa0=160, a non-breaking space. But there is an entry that uses non-breaking spaces that is "Ramon*Berenguer_Raymond*Berengar", that doesn't seem quite correct. Do you know if it is?
Here you go:Hmm I see. For the 'color', can you copy the error that appears in the Validator? I wonder, is there an advantage to not just using "something with spaces" (i.e. putting quotes around it).
8. It certainly doesn't do anything, as naval combat doesn't exist (yet) in CKII.Open questions (oldest first)
- Could someone point me to well-written and definitely correct examples of missions, besides the one in the vanilla files?
- In region_titles.txt, are there reasons to have duplicate colors?
- In technology.txt, the modifier clauses are just normal modifiers, and whatever you use here, you can use in any modifier? Also are they province or character modifiers? Or is there no distinction between the two? And why is everything in caps? Just for funsies?
- In religion.txt, does "can_grant_invasion_cb" take a casus belli or a boolean?
- Events, decisions, triggers, commands - does anyone have a good guide to them?
- on_actions.txt - why caps in some of them? Funsies?
- Are these valid province modifiers? short_reign_length, religion_flex, culture_flex, add_piety_modifier, add_prestige_modifier, church_opinion, town_opinion, castle_opinion, siege_defence, siege_speed
- Is naval_morale a real modifier?
- In character events, is it only_capable or capable_only? And is_ruler or only_rulers or only_ruler, which one is it? And prisoner vs is_prisoner? And only_playable vs playable_only vs is_playable?
- For triggers/commands, is ROOT basically the same as THIS in other games?
- In combat tactics, what are the valid phases? So far I have melee, pursue, and skirmish. I assume they are different from the tactic groups.
- In combat_events.txt, there are triggers in battle scope. These battle scope triggers, do days, phase, is_flanking work as expected?
- For battle scope, why is there a 'martial' clause without a leader clause sometimes? I would imagine that it would need to be written as 'leader = { martial = X }' but maybe they added this as a shortcut?
- For battle scope, is it right that you can change the scope to char trigger with 'leader', and to another battle scope with 'enemy'?
- In battle scope, how does heavy_troops/light_troops/light_infantry work? And you can also have a left side of any unit type with a right side of a percent?
- Are [city/castle/temple]_[min/max]_levy and [city/castle/temple]_tax_modifier valid character modifiers? What about "*_opinion" found in laws? And if so, is it that laws can have any character modifiers in them?
9. Prev goes back a scope. I've successfully used PREVPREVPREVPREV, but haven't tried anything higher than that, but don't see any reason it wouldn't work. I've seen FROMFROM a few times, so I suppose you might be able to mix the two.@steveuk666, Meneth: Thanks again! I wouldn't know what to do without your assistance.
Open questions (oldest first)
- Could someone point me to well-written and definitely correct examples of missions, besides the one in the vanilla files?
- In region_titles.txt, are there reasons to have duplicate colors?
- In technology.txt, the modifier clauses are just normal modifiers, and whatever you use here, you can use in any modifier? Also are they province or character modifiers? Or is there no distinction between the two? And why is everything in caps? Just for funsies?
- In religion.txt, does "can_grant_invasion_cb" take a casus belli or a boolean?
- Events, decisions, triggers, commands - does anyone have a good guide to them?
- on_actions.txt - why caps in some of them? Funsies?
- Are these valid province modifiers? short_reign_length, religion_flex, culture_flex, add_piety_modifier, add_prestige_modifier, church_opinion, town_opinion, castle_opinion, siege_defence, siege_speed
- In character events, is it only_capable or capable_only? And is_ruler or only_rulers or only_ruler, which one is it? And prisoner vs is_prisoner? And only_playable vs playable_only vs is_playable?
- So prev always goes one scope above, ignoring things like hidden_tooltip? While from is the same as other games? Can you have something like fromprevfromprevprevfromrootprevfrom, or are there limitations?
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?