• 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.
You have to be at peace, and have ruled at least 5 years, and be adult. That said, there seems to be something buggy about title creation.

This piece of code in the k_ireland allow block:
Code:
		OR = {
			NOT = {
				AND = {
					lower_tier_than = emperor
					independent = yes
				}
			}
			AND = {
				lower_tier_than = emperor
				independent = yes
			}
		}
I'm not really sure what it was intended to do, but it really does nothing... the first part of the OR is the complement of the second part. One part or the other will always be TRUE.
 
That jibes with my experiences in duchy creation, too.
 
You have to be at peace, and have ruled at least 5 years, and be adult. That said, there seems to be something buggy about title creation.

This piece of code in the k_ireland allow block:
Code:
		OR = {
			NOT = {
				AND = {
					lower_tier_than = emperor
					independent = yes
				}
			}
			AND = {
				lower_tier_than = emperor
				independent = yes
			}
		}
I'm not really sure what it was intended to do, but it really does nothing... the first part of the OR is the complement of the second part. One part or the other will always be TRUE.

aye, this was a relatively flobbed implementation.

IIRC, the intent is
a) make the kingdom creatable if you're independent (whatever rank)
b) make the kingdom NOT creatable if you're under an empire

I still haven't gotten around to fixing them (especially since that was a sort of duct-tape measure that could easily be noticed by how it all fits in just two lines for ease of changing with a Replace All function)


I eventually got the title, I believe that they changed the land requirement to 75% of the kingdom, becuase it allowed me to create the kingdom at 77%.

this kind of confuses me actually

Code:
-- Title creation and usurpation requirements	v12a tentatively swapped create/usurp for de jure due to definition mistake?
	DEJURE_COUNTY_LIMIT_TO_CREATE = 0.5,		-- Fraction of de jure counties that you must control to create a non-imperial title v11 changed to 50% (so a 4 county duchy that doesn't currently exist can be easily made with just half)
	DEJURE_COUNTY_LIMIT_TO_USURP = 0.75,			-- Fraction of de jure counties that you must control to usurp a non-imperial title v11 changed to 75% (so a 4 county duchy requires at 3 to be stolen)
	EMPIRE_DEJURE_COUNTY_LIMIT_TO_CREATE = 0.6,	-- Fraction of de jure counties that you must control to create an imperial title v11 changed to 60% (so creating the empire title from de jure land still requires hegemony)
	EMPIRE_DEJURE_COUNTY_LIMIT_TO_USURP = 0.4	-- Fraction of de jure counties that you must control to usurp an imperial title	 v11 changed to 40% (so usurping it from weakend vestigial empires is a lot easier)
the intent is that you technically need 50% to create the title but 75% to usurp it
for some reason, it's not working that way at all.
I've pretty much just given up for the meantime and turned a blind eye towards it, thinking its probably a bug or something (but I haven't filed a bug report since I haven't had the time to experiment enough to verify it in-game and provide the relevant evidence to back my hypothesis)
 
aye, this was a relatively flobbed implementation.

IIRC, the intent is
a) make the kingdom creatable if you're independent (whatever rank)
b) make the kingdom NOT creatable if you're under an empire

So... it should be:
Code:
OR = {
	is_independent = yes
	AND = {
		is_independent = no
		top_liege = {
			lower_tier_than = emperor
		}
	}
}
if I understand you right. (Any independent regardless of rank can create a kingdom; a vassal can only create a kingdom if not under imperial control.)
 
So... it should be:
Code:
OR = {
	is_independent = yes
	AND = {
		is_independent = no
		top_liege = {
			lower_tier_than = emperor
		}
	}
}
if I understand you right. (Any independent regardless of rank can create a kingdom; a vassal can only create a kingdom if not under imperial control.)

more or less yes (more semantically accurate would be to say imperial vassals cannot create kingdoms, since kingdom vassals cannot by default, but that's just semantics :p )

then again, your way of approaching/implementing the same thing certainly is a lot shorter, code-wise. I won't be able to test it without a proper save though :laugh: (I'll try getting back to modding starting tomorrow or at most this week if I'm lucky)
 
More importantly, it doesn't evaluate to "always = yes" like yours did.

I made a bug report about the create/usurp stuff.