• 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.
All errors are listed twice

And here's the errors themselves (duplicate listings omitted)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\effect\create_character\dynasty] (19, 5):
"FROM" is not a valid "random", DynastyId, or ThisChar.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\allow\FROM] (6, 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_character] (43, 4):
Invalid node "add_trait" in scope CharCreation (value is: legit_bastard)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_character] (43, 4):
Invalid node "recalc_succession" in scope CharCreation (value is: yes)


They all work except recalc_succession, I'm not sure it has any effect really.

This is your adoption mod? The reason they would be duplicated is one is for adopting a boy and one for a girl. I think you do recalc_succession outside the create_character clause, after it. The dynasty FROM issue had already been fixed. Right now, in a character creation clause, "trait = X" is valid. So "add_trait = X" is basically the same thing? For the other FROM issue, what does FROM point to? It seems like the root is the character making the decision, so what would FROM point to?
 
I didn't post the duplicate errors, if you want me to though, this is what it looks like in the list;

At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\effect\create_character \dynasty] (19, 5):
"FROM" is not a valid "random", DynastyId, or ThisChar.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\effect\create_character \dynasty] (19, 5):
"FROM" is not a valid "random", DynastyId, or ThisChar.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\allow\FROM] (6, 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\allow\FROM] (6, 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "add_trait" in scope CharCreation (value is: legit_bastard)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "add_trait" in scope CharCreation (value is: legit_bastard)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "recalc_succession" in scope CharCreation (value is: yes)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "recalc_succession" in scope CharCreation (value is: yes)


(that's what I meant by duplicate error reports :ninja:)

And for the other FROM issue;
Code:
	allow = {
			FROM = {
				age = 50
				prestige = 25
				NOT = { num_of_children = 1 }
			}
		}

I'm not sure if ROOT would work or not in that instance, but more than likely, however FROM is working 100% for the decision and I have a russian mentality :p (if it isn't broken, don't fix it). Does "trait" function the same as "add_trait" ? I thought "trait" was a condition.


Also, I just want to make sure I have the correct version, 0.8.21.8? The archive is listed as release candidate 9, downloaded from here
 
I didn't post the duplicate errors, if you want me to though, this is what it looks like in the list;

At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\effect\create_character \dynasty] (19, 5):
"FROM" is not a valid "random", DynastyId, or ThisChar.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\effect\create_character \dynasty] (19, 5):
"FROM" is not a valid "random", DynastyId, or ThisChar.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\allow\FROM] (6, 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_boy\allow\FROM] (6, 4):
Invalid use of 'FROM': This is not a valid place to use FROM.
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "add_trait" in scope CharCreation (value is: legit_bastard)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "add_trait" in scope CharCreation (value is: legit_bastard)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "recalc_succession" in scope CharCreation (value is: yes)
--- Error 1 of 1 ---
At <mod>\decisions\adoption.txt [decisions\adopt_orphan_girl\effect\create_characte r] (43, 4):
Invalid node "recalc_succession" in scope CharCreation (value is: yes)


(that's what I meant by duplicate error reports :ninja:)

And for the other FROM issue;
Code:
	allow = {
			FROM = {
				age = 50
				prestige = 25
				NOT = { num_of_children = 1 }
			}
		}

I'm not sure if ROOT would work or not in that instance, but more than likely, however FROM is working 100% for the decision and I have a russian mentality :p (if it isn't broken, don't fix it). Does "trait" function the same as "add_trait" ? I thought "trait" was a condition.

Can you copy the whole list of errors at once, by pressing Ctrl+A then Ctrl+C?

Well, what if there was no ROOT/FROM at all? Wouldn't that just end up in the character scope? (if anyone knows, please answer this)

As for "trait", Paradox uses it several places when creating a character, e.g.

Code:
			create_character = {
				age = 0
				trait = bastard
			}

Though that doesn't necessarily mean that it works. (again, if anyone knows, please comment)
 
It's false positives time with Wiz again!

--- Error 1 of 1 ---
At <mod>\events\job_lord_spiritual.txt [character_event[1]\option\location] (349, 3):
Invalid node "religion_authority" in scope ProvCommand (value is: -0.001)

Tested as working fine in province scope, targets the province religion.

--- Error 1 of 1 ---
At <mod>\events\province_prosperity_events.txt [province_event[9]\trigger] (757, 2):
Invalid node "has_siege" in scope ProvTrigger (value is: yes)

Tested as working fine.
 
It's false positives time with Wiz again!



Tested as working fine in province scope, targets the province religion.



Tested as working fine.


Both added, thank you.



And to anyone that knows, in an opinion/reverse_opinion clause, sometimes there is "value = X" and other times "opinion = X". Which or both are correct?
 
value = is correct as far as I know. I've never tested if opinion = works though.
 
Code:
can_use = {
    ROOT = {
        NOT = { religion_group = pagan_group }
        NOT = {
            AND = {
                OR = {
                    AND = {
                        religion = orthodox
                        culture = ethiopian
                    }
                    religion = monophysite
                    religion_group = muslim
                }
                FROM = { 
                    OR = {
                        AND = {
                            religion = orthodox
                            culture = ethiopian
                        }
                        religion = monophysite
                        religion_group = muslim 
                    }
                }
            }
        }
    }
}

Is that something to do with the religious war cb_type? Is that the entire can_use section? Would I need to edit further sections if I used that?
 
That's not the entire can_use section, no. Here's the full can_use section in Balansegang:
Code:
can_use = {
    ROOT = {
        NOT = { religion_group = pagan_group }
        NOT = {
            AND = {
                OR = {
                    AND = {
                        religion = orthodox
                        culture = ethiopian
                    }
                    religion = monophysite
                    religion_group = muslim
                }
                FROM = { 
                    OR = {
                        AND = {
                            religion = orthodox
                            culture = ethiopian
                        }
                        religion = monophysite
                        religion_group = muslim 
                    }
                }
            }
        }
        NOT = { same_realm = FROM }
        OR = {
            NOT = { religion_group = FROM }
            is_heresy_of = FROM
            is_parent_religion = FROM
        }
        top_liege = {
            religion = PREV
        }
        NOT = { has_law = empire_centralization_0 }
        OR = {
            any_realm_province = {
                any_neighbor_province = {
                    owner = {
                        top_liege = {
                            character = FROM
                        }
                    }
                }
            }
            AND = {
                NOT = { has_law = centralization_0 }
                NOT = { has_law = empire_centralization_1 }
            }
        }
        NOT = {
            AND = {
                has_law = empire_centralization_1
                any_vassal = {
                    OR = {
                        primary_title = { tier = KING }
                        primary_title = { tier = DUKE }
                    }
                    NOT = { opinion = { who = ROOT value = -10 }}
                    prisoner = no
                }
            }
        }
        NOT = {
            AND = {
                has_law = centralization_0
                any_vassal = {
                    primary_title = { tier = DUKE }
                    NOT = { opinion = { who = ROOT value = -10 }}
                    prisoner = no
                }
            }
        }
        NOT = {
            AND = {
                FROM = { religion_group = pagan_group }
                has_law = centralization_1
                any_vassal = {
                    primary_title = { tier = DUKE }
                    NOT = { opinion = { who = ROOT value = -10 }}
                    prisoner = no
                }
            }
        }
        NOT = {
            AND = {
                has_law = centralization_0
                FROM = { religion_group = pagan_group }
            }
        }
        OR = {
            NOT = { trait = content }
            trait = brave
            trait = wroth
            trait = zealous
            trait = lunatic
            trait = possessed
        }
        OR = {
            NOT = { trait = craven }
            trait = wroth
            trait = ambitious
            trait = zealous
            trait = lunatic
            trait = possessed
        }
        OR = {
            NOT = { trait = cynical }
            trait = wroth
            trait = ambitious
            trait = brave
            trait = lunatic
            trait = possessed
        }
        OR = {
            NOT = { trait = stressed }
            trait = wroth
            trait = ambitious
            trait = brave
            trait = lunatic
            trait = possessed
            trait = zealous
        }
        OR = {
            trait = lunatic
            trait = possessed
            AND = {
                NOT = { trait = depressed }
                NOT = { trait = infirm }
                NOT = { trait = incapable }
                NOT = {
                    OR = {
                        AND = {
                            trait = content
                            OR = {
                                trait = craven
                                trait = cynical
                                trait = stressed
                            }
                        }
                        AND = {
                            trait = craven
                            OR = {
                                trait = cynical
                                trait = stressed
                            }
                        }
                        AND = {
                            trait = stressed
                            trait = cynical
                        }
                    }
                }
            }
        }
        piety = 100
    }
}
This isn't really relevant to this thread though. Which reminds me of an idea I've had for a while now: A CKII modding IRC channel where we could discuss CKII in general, and modding in particular. If anyone's interested I'll create one.
 
That's the most absurd trigger I've ever seen. :eek:o:laugh:

I can't even steal it because I don't have things like empire centralization. Oh well.

Thanks Meneth. :)
 
Hey Jamie, when the validator tells me that there is an illegal closing bracket in an event file, any chance it will tell me where it is?
Because if I start checking brackets one by one I'll be in a mental hospital by early tomorrow. :D
 
Hey Jamie, when the validator tells me that there is an illegal closing bracket in an event file, any chance it will tell me where it is?
Because if I start checking brackets one by one I'll be in a mental hospital by early tomorrow. :D

It can, yes. If you click on the "i" to the right of the error, that will bring up what the Validator managed to parse so far. The extra bracket should be right after that.

Also Notepad++ is very good for bracket things (and a good text editor in general), if you set it to a language with brackets then you can collapse things until you see something funny. You can also configure the Validator to open things in Notepad++, which will bring you to the right line (ask if you want details on how to do that). [If you prefer some other text editor, it probably has a way to jump to a specific line which the Validator can be configured to do as well]
 
It can, yes. If you click on the "i" to the right of the error, that will bring up what the Validator managed to parse so far. The extra bracket should be right after that.

Also Notepad++ is very good for bracket things (and a good text editor in general), if you set it to a language with brackets then you can collapse things until you see something funny. You can also configure the Validator to open things in Notepad++, which will bring you to the right line (ask if you want details on how to do that). [If you prefer some other text editor, it probably has a way to jump to a specific line which the Validator can be configured to do as well]

Alright, thanks a lot for the explanation! :)
 
For me clicking the 'I' just opens the file. It never goes to the line that's at fault =/

Hmm and this is for a parsing error? The behavior varies depending on the error type.

If you want to go to the line at fault, you'll have to change some settings in the Validator. But your text editor would need to support jumping to a certain line. If you have a text editor in mind, I can try to find the settings you'll need. But basically, File->Options, then Text Editor, then place the path to the text editor in the first textbox, and the second textbox is dependent on the specific text editor.
 
Son of a...I'd been wondering how to setup it up to always use Notepad++ lol, mine was opening either editor or notepad++ depending on the whim of the day, thanks for the info :D

@Meneth; Hm, what you say makes logical sense, I never tested it without the FROM. In that instance the game treats FROM as the one calling the decision.
@Jamie550; I'll test trait and see if that works, I just used add_trait as I'm familiar with the effect from character histories :ninja:

*edit* actually i'd never looked in options on the validator, didn't even realise it had an options :O
 
This isn't really relevant to this thread though. Which reminds me of an idea I've had for a while now: A CKII modding IRC channel where we could discuss CKII in general, and modding in particular. If anyone's interested I'll create one.

irc would work, though I don't have a client right now.
 
Son of a...I'd been wondering how to setup it up to always use Notepad++ lol, mine was opening either editor or notepad++ depending on the whim of the day, thanks for the info :D

@Meneth; Hm, what you say makes logical sense, I never tested it without the FROM. In that instance the game treats FROM as the one calling the decision.
@Jamie550; I'll test trait and see if that works, I just used add_trait as I'm familiar with the effect from character histories :ninja:

*edit* actually i'd never looked in options on the validator, didn't even realise it had an options :O

If you want it, the "Command Line" field for Notepad++ is "{0} -n{1}" (without quotes); this will jump to the correct line.