• 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.
old error said:
--- Error 1 of 1 ---
At <mod>\common\cb_types\00_cb_types.txt [crusade\on_success_title\if[2]\most_participating_attacker\if\if\limit\NOT\cultu re] (Line 2365, Column 16):
"PREV" is not a valid Culture, ThisChar, or ThisProv.

This is in the Crusade CB, the relevant block is:
Code:
	on_success_title = {                         #<- PREV for statement where error is reported
		if = {
			limit = {
				has_holder = yes
				holder_scope = {
					religion = ROOT
				}
			}
			holder_scope = {
				gain_settlements_under_title = {
					title = PREV
					enemy = FROM
					is_crusade = yes # Even if the title holder is not participating in the war, gain holdings occupied by all Crusade participants
				}
			}
		}
		
		if = {
			limit = {
				OR = {
					has_holder = no
					NOT = {
						holder_scope = {
							religion = ROOT
						}
					}
				}
			}
			
			most_participating_attacker = {
				gain_settlements_under_title = {
					title = PREV
					enemy = FROM
				}
				if  = {
					limit = {
						primary_title = { is_primary_type_title = no } # Mercs, the Pope, Holy Orders, etc
						PREV = { has_holder = no }
						OR = {
							NOT = { character = ROOT }
							independent = yes
							liege = {
								tier = EMPEROR
							}
						}
					}
					usurp_title = PREV
					
					if = {
						limit = {
							NOT = { culture = PREV }                                            #<- Line where error is reported.
						}
						hidden_tooltip = { PREV = { conquest_culture = THIS } }
					}
				}
			}
		}
		
		any_attacker = {
			limit = { character = ROOT }
			participation_scaled_prestige = 500
			participation_scaled_piety = 1000
			if = {
				limit = {
					religion_group = muslim
				}
				participation_scaled_decadence = -100
			}
		}
		any_attacker = {
			limit = { NOT = { character = ROOT } }
			hidden_tooltip = { 
				participation_scaled_prestige = 500
				participation_scaled_piety = 1000
				if = {
					limit = {
						religion_group = muslim
					}
					participation_scaled_decadence = -100
				}
			}
		}
		
		ROOT = {
			religion_authority = 0.2 
		}
		
		FROM = {
			piety = -100
		}
	}

Do titles have cultures?

The above now gives this error:
--- Error 1 of 1 ---
At <mod>\common\cb_types\00_cb_types.txt [crusade\on_success_title\if[2]\most_participating_attacker\if\if\limit\NOT\culture] (Line 2365, Column 16):
No direct match found for culture (is the casing correct?). However, other possible matches in scope CharTrigger were found.
Left: ["culture"] Right: [Culture]
Left: ["culture"] Right: [ThisChar or ThisProv]
 
I believe this is a false positive.

Relevant code snippet:
Code:
			new_character = {                         #<-Scope for below province = [PREV|PREVPREV] statements.
				usurp_title = PREV
				set_defacto_liege = THIS
				
				if = {
					limit = { ROOT = { tier = duke } }
					wealth = 250
				}
				if = {
					limit = { ROOT = { tier = king } }
					wealth = 500
				}
				if = {
					limit = { ROOT = { tier = emperor } }
					wealth = 1000
				}
				
				spawn_unit = {
					province = PREV                        #<- No error thrown here, despite scoping to same thing as below error-throwing statement
					match_character = ROOT
					match_mult = 0.17
					earmark = prestige_revolters
				}
				create_character = {
					random_traits = yes
					dynasty = THIS
					religion = ROOT
					culture = ROOT
					female = no
					age = 18
					attributes = {
						martial = 10
					}
					trait = skilled_tactician
				}
				new_character = {
					set_father = PREV
					spawn_unit = {
						province = PREVPREV           #<- Above error thrown here
						owner = PREV
						match_character = ROOT
						match_mult = 0.17
						earmark = prestige_revolters
					}
				}

Edit: Didn't notice the error on province = PREV in line 550, which was listed several lines below the one for line 570's province = PREVPREV.
Regardless, the event spawns units in the usurped province, so this should be considered a false positive.

Edit 2: the same syntax is used in the Muslim decadence invasions (id 91000 in decadence_events.txt)

Still giving the same errors.
 
Okay, the reason is that the Validator is not treating spawn_unit as a scope. So in actuality, spawn_unit does count as a scope?

It seems so.
 
All the examples I can find have the province clause of a spawn_unit clause equated to either PREV or (in the case of Mongol invasion events) a literal.
 
Okay, so you can have "culture = PREV" where PREV is a title, and it will work out fine?
I tried this test event with k_france and b_paris, and in neither case did my character's culture change to Frankish, or from what it had been at all, so probably not.
 
--- Error 1 of 5 ---
At <mod>\common\landed_titles\nm_landed_titles.txt [<docroot>] (Line 0, Column 0):
Invalid node "nm_uppland_viking_company" in scope LandedTitles (value is: <a complex type>)
--- Error 2 of 5 ---
At <mod>\common\landed_titles\nm_landed_titles.txt [<docroot>] (Line 0, Column 0):
Invalid node "nm_finnmark_viking_company" in scope LandedTitles (value is: <a complex type>)
--- Error 3 of 5 ---
At <mod>\common\landed_titles\nm_landed_titles.txt [<docroot>] (Line 0, Column 0):
Invalid node "nm_uppland_berserker_company" in scope LandedTitles (value is: <a complex type>)
--- Error 4 of 5 ---
At <mod>\common\landed_titles\nm_landed_titles.txt [<docroot>] (Line 0, Column 0):
Invalid node "nm_nordland_seidmann_company" in scope LandedTitles (value is: <a complex type>)
--- Error 5 of 5 ---
At <mod>\common\landed_titles\nm_landed_titles.txt [<docroot>] (Line 0, Column 0):
Invalid node "nm_vasterbotten_seidmann_company" in scope LandedTitles (value is: <a complex type>)
These 5 mercenary units are defined in a separate file within common/landed_titles/ (and are the only titles defined there), and do load. None of the mercenary units/holy orders within common/landed_titles/landed_titles.txt give the "Invalid node" error these do, and I don't see any obvious errors:
Code:
nm_vasterbotten_seidmann_company = {
	color={ 80 80 80 }
	color2={ 125 125 125 }
	
	capital = 280 # Vasterbotten
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	holy_order = yes

	title = "MERC_SEIDMANN"
	foa = "MERC_SEIDMANN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_seidmann_order_modifier
}

nm_nordland_seidmann_company = {
	color={ 40 40 40 }
	color2={ 85 85 125 }
	
	capital = 391 # Nordland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = norwegian
	
	holy_order = yes

	title = "MERC_SEIDMANN"
	foa = "MERC_SEIDMANN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_seidmann_order_modifier
}

nm_uppland_berserker_company = {
	color={ 20 20 20 }
	color2={ 35 35 35 }
	
	capital = 290 # Uppland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	holy_order = yes

	title = "MERC_BERSERKER"
	foa = "MERC_BERSERKER_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_berserker_order_modifier
}

nm_finnmark_viking_company = {
	color={ 200 200 200 }
	color2={ 124 35 126 }
	
	capital = 389 # Finnmark
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion_group = christian
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	mercenary = yes

	title = "MERC_VIKING"
	foa = "MERC_VIKING_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_viking_company_modifier
}

nm_uppland_viking_company = {
	color={ 50 200 50 }
	color2={ 124 243 126 }
	
	capital = 290 # Uppland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion_group = christian
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	mercenary = yes

	title = "MERC_VIKING"
	foa = "MERC_VIKING_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_viking_company_modifier
}
 
Still getting duplicate false positives for religion (though no longer culture):
"There may be no duplications of a "religion" clause. (Are you missing an 'or' or 'not' wrapper?)
There were 2 duplicates.
[I46255|L2579|C5]: religion = orthodox
[I46280|L2580|C5]: religion = ROOT"

I don't seem to be getting any false positives beyond that.
 
--- Error 1 of 61 ---
At <mod>\common\triggered_modifiers.txt [character_priscillian] (Line 3905, Column 1):
Invalid node "sectarianism" in scope <anon> (value is: 2)
--- Error 4 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_african] (Line 1369, Column 1):
Invalid node "light_infantry_offensive" in scope <anon> (value is: 0.10)
--- Error 5 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_african] (Line 1369, Column 1):
Invalid node "archers_offensive" in scope <anon> (value is: 0.10)
--- Error 6 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_eiranian] (Line 1345, Column 1):
Invalid node "horse_archers_defensive" in scope <anon> (value is: 0.20)
--- Error 7 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_wiranian] (Line 1324, Column 1):
Invalid node "knights_defensive" in scope <anon> (value is: 0.20)
--- Error 9 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_hungarian] (Line 1284, Column 1):
Invalid node "light_cavalry_defensive" in scope <anon> (value is: 0.15)
--- Error 10 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_hungarian] (Line 1284, Column 1):
Invalid node "light_cavalry_offensive" in scope <anon> (value is: 0.25)
--- Error 13 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_southslavic] (Line 1238, Column 1):
Invalid node "light_infantry_defensive" in scope <anon> (value is: 0.35)
--- Error 17 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_russian] (Line 1172, Column 1):
Invalid node "heavy_infantry_defensive" in scope <anon> (value is: 0.20)
--- Error 18 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_sarmatian] (Line 1150, Column 1):
Invalid node "knights_offensive" in scope <anon> (value is: 0.10)
--- Error 21 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_hellenistic] (Line 1103, Column 1):
Invalid node "pikemen_offensive" in scope <anon> (value is: 0.20)
--- Error 22 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_hellenistic] (Line 1103, Column 1):
Invalid node "pikemen_defensive" in scope <anon> (value is: 0.20)
--- Error 31 of 61 ---
At <mod>\common\triggered_modifiers.txt [admin_dacian] (Line 998, Column 1):
Invalid node "heavy_infantry_offensive" in scope <anon> (value is: 0.30)
--- Error 60 of 61 ---
At <mod>\common\triggered_modifiers.txt [ignorant_ruler] (Line 313, Column 1):
Invalid node "tech_growth_modifier" in scope <anon> (value is: -0.25)

All these modifiers should be allowed.
 
Last edited:
--- Error 1 of 1 ---
At <mod>\common\objectives\00_ambitions.txt [obj_become_regent\chance\modifier[2]\dynasty] (Line 2181, Column 4):
"liege" is not a valid ThisChar.

Code:
		modifier = {
			factor = 2.0
			dynasty = liege
		}

I believe "liege" should be a valid ThisChar in all circumstances save when the character in question is independent.
 
--- Error 1 of 1 ---
At <mod>\common\objectives\00_ambitions.txt [obj_get_nick\success\has_nickname] (Line 1768, Column 3):
"yes" is not a valid Nickname or "no".
Code:
obj_get_nick = {
	type = character
	
	allow = {
		prisoner = no
		age = 16
		NOT = { trait = incapable }
		NOT = { trait = humble }
		has_nickname = no
		prestige = 500
	}
	chance = {
		factor = 25
		
		modifier = {
			factor = 2.0
			prestige = 1000
		}
		
		modifier = {
			factor = 2.0
			prestige = 2000
		}
		
	}
	success = {
		has_nickname = yes                     #<-Error thrown on this line
	}
	abort = {
		OR = {
			trait = humble
			trait = incapable
		}
	}
	
	abort_effect = {
	}
	
	effect = {
		change_diplomacy = 1
		prestige = 25
	}
}

This ambition works. It succeeds when you gain a nickname.
 
--- Error 1 of 2 ---
At <mod>\common\on_actions\ao_combat_pulse.txt [<docroot>] (Line 0, Column 0):
The required "on_rebel_revolt" entry was not found.
--- Error 2 of 2 ---
At <mod>\common\on_actions\lux_on_actions.txt [<docroot>] (Line 0, Column 0):
The required "on_rebel_revolt" entry was not found.
"on_rebel_revolt" appears in 00_on_actions.txt; there's no need for it to be in all files in common/on_actions/.
 
--- Error 1 of 1 ---
At <mod>\history\provinces\243 - Orvieto.txt [<docroot>] (Line 0, Column 0):
Invalid node "b_terni" in scope ProvinceHistory (value is: city)

I have no idea why this error's being thrown, when other baronies don't throw it. There's nothing unusual about the b_terni line.

Edit: Okay, this one was because b_terni wasn't in landed_titles; my ignorance is showing.
 
Last edited:
I tried this test event with k_france and b_paris, and in neither case did my character's culture change to Frankish, or from what it had been at all, so probably not.

This was in vanilla right? If so can you bugreport it?

These 5 mercenary units are defined in a separate file within common/landed_titles/ (and are the only titles defined there), and do load. None of the mercenary units/holy orders within common/landed_titles/landed_titles.txt give the "Invalid node" error these do, and I don't see any obvious errors:
Code:
nm_vasterbotten_seidmann_company = {
	color={ 80 80 80 }
	color2={ 125 125 125 }
	
	capital = 280 # Vasterbotten
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	holy_order = yes

	title = "MERC_SEIDMANN"
	foa = "MERC_SEIDMANN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_seidmann_order_modifier
}

nm_nordland_seidmann_company = {
	color={ 40 40 40 }
	color2={ 85 85 125 }
	
	capital = 391 # Nordland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = norwegian
	
	holy_order = yes

	title = "MERC_SEIDMANN"
	foa = "MERC_SEIDMANN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_seidmann_order_modifier
}

nm_uppland_berserker_company = {
	color={ 20 20 20 }
	color2={ 35 35 35 }
	
	capital = 290 # Uppland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	holy_order = yes

	title = "MERC_BERSERKER"
	foa = "MERC_BERSERKER_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_berserker_order_modifier
}

nm_finnmark_viking_company = {
	color={ 200 200 200 }
	color2={ 124 35 126 }
	
	capital = 389 # Finnmark
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion_group = christian
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	mercenary = yes

	title = "MERC_VIKING"
	foa = "MERC_VIKING_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_viking_company_modifier
}

nm_uppland_viking_company = {
	color={ 50 200 50 }
	color2={ 124 243 126 }
	
	capital = 290 # Uppland
	
	# Hire Trigger
	allow = {
		OR = {
			religion = norse_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion_group = christian
		}
	}
	
	# Parent Religion 
	religion = norse_pagan
	culture = swedish
	
	mercenary = yes

	title = "MERC_VIKING"
	foa = "MERC_VIKING_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	modifier = nm_viking_company_modifier
}

The Validator is categorizing titles by b_, c_, k_, e_, d_. nm_ doesn't fit in any of them so it doesn't know what kind of title it is which causes problems. What should it be doing here?

Still getting duplicate false positives for religion (though no longer culture):
"There may be no duplications of a "religion" clause. (Are you missing an 'or' or 'not' wrapper?)
There were 2 duplicates.
[I46255|L2579|C5]: religion = orthodox
[I46280|L2580|C5]: religion = ROOT"

I don't seem to be getting any false positives beyond that.

Fixed. (These need to be fixed on a case-by-case basis so fixing one won't really help other ones).

All these modifiers should be allowed.

Fixed.

Code:
		modifier = {
			factor = 2.0
			dynasty = liege
		}

I believe "liege" should be a valid ThisChar in all circumstances save when the character in question is independent.

Would things like top_liege, spouse, father, mother, and host work as well?

Code:
obj_get_nick = {
	type = character
	
	allow = {
		prisoner = no
		age = 16
		NOT = { trait = incapable }
		NOT = { trait = humble }
		has_nickname = no
		prestige = 500
	}
	chance = {
		factor = 25
		
		modifier = {
			factor = 2.0
			prestige = 1000
		}
		
		modifier = {
			factor = 2.0
			prestige = 2000
		}
		
	}
	success = {
		has_nickname = yes                     #<-Error thrown on this line
	}
	abort = {
		OR = {
			trait = humble
			trait = incapable
		}
	}
	
	abort_effect = {
	}
	
	effect = {
		change_diplomacy = 1
		prestige = 25
	}
}

This ambition works. It succeeds when you gain a nickname.

Fixed.

"on_rebel_revolt" appears in 00_on_actions.txt; there's no need for it to be in all files in common/on_actions/.

Fixed.
 
This was in vanilla right? If so can you bugreport it?

Yes it was in Vanilla (save a small test event), and I will... think I found a fix for it, since it's used in the vanilla Crusade CB.

The Validator is categorizing titles by b_, c_, k_, e_, d_. nm_ doesn't fit in any of them so it doesn't know what kind of title it is which causes problems. What should it be doing here?

These are mercenary units introduced by the Norse mod; probably should be d_'s.

Would things like top_liege, spouse, father, mother, and host work as well?

I think so.
 
Yes it was in Vanilla (save a small test event), and I will... think I found a fix for it, since it's used in the vanilla Crusade CB.



These are mercenary units introduced by the Norse mod; probably should be d_'s.



I think so.

So the Validator should treat anything that doesn't begin with e_, k_, c_, d_, b_ as a duke-level title?

I will add the liege/spouse/father/etc stuff.
 
Near-repeat of a previous error:
--- Error 1 of 1 ---
At <mod>\common\objectives\00_ambitions.txt [obj_ward_liege_child\chance\modifier[4]\NOT\culture] (Line 1923, Column 12):
No direct match found for culture (is the casing correct?). However, other possible matches in scope CharTrigger were found.
Left: ["culture"] Right: [Culture]
Left: ["culture"] Right: [ThisChar or ThisProv]
Code:
		modifier = {
			factor = 0.5
			NOT = { culture = liege }
		}