• 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.

jezza93

First Lieutenant
35 Badges
Feb 17, 2012
287
0
  • Crusader Kings II
  • March of the Eagles
  • Crusader Kings II: Sons of Abraham
  • Rome Gold
  • Sengoku
  • Victoria 2: A House Divided
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • War of the Roses
  • Victoria 2: Heart of Darkness
  • Imperator: Rome
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 2
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Legacy of Rome
  • Heir to the Throne
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Rome: Vae Victis
In fact where abouts in the directory are the logs? At the moment I'm getting a CTD after 3 days in game.

Found it and it said this.


[gamestate.cpp:1279]: Daily tick on 260.1.2
[gamestate.cpp:1279]: Daily tick on 260.1.3


What does that mean?
 

Kailvin

Captain
102 Badges
Oct 18, 2010
454
1
  • Sword of the Stars
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Hearts of Iron II: Armageddon
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Cities: Skylines - Snowfall
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • For the Motherland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Deus Vult
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron IV: No Step Back
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis III Complete
  • War of the Roses
  • Europa Universalis IV
So. Here I am coding a war. (Event) I ran into a problem. I can't seem to specify religious wars properly. (Well I was doing it with crusades when that did not work i broke down to religious wars... I can't seem to make the thing target properly. (I guess)
Code:
option = {
        name = "To War!"
        war = {
            target = FROM
	    casus_belli = religious
            landed_title = d_antioch
        }
    }
I got the landed_title = TITLE thing from the history/wars file. Though that seems not to work at all. Anyone got any idea how we can fire a targeted cursade/jihad/holy war using events?
 
Last edited:

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
In fact where abouts in the directory are the logs? At the moment I'm getting a CTD after 3 days in game.

Found it and it said this.


[gamestate.cpp:1279]: Daily tick on 260.1.2
[gamestate.cpp:1279]: Daily tick on 260.1.3


What does that mean?

Daily tick is the game's internal calendar, one tick per day because character and province events are checked every so many days, depending on your defines.lua.

What have you changed lately? Like Baneslave said, some event (or decision) is being triggered with faulty effects. If this is a big mod you're working on, I'd backup the whole folder for your mod, and then start adding things back one at a time. It could really be anything.
 

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
Is there a way to add additional property or DNA slots to the game? Just adding a p10 layer to portraits.gfx works, but the moment you add rules for it under portrait_properties.txt, the game crashes. Anyone got a solution to this?
 

ash001

friend&foe
10 Badges
Jun 5, 2009
796
0
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Rome Gold
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
I've found 'num_traits' and 'num_of_traits' in the game's files. Does anyone know if there's a difference between the two?
I'm using the first one (num_traits) as a trigger to curb the number of traits, but have seen other events using "num_of_traits" instead so... :blink: I really don't know.
 

jezza93

First Lieutenant
35 Badges
Feb 17, 2012
287
0
  • Crusader Kings II
  • March of the Eagles
  • Crusader Kings II: Sons of Abraham
  • Rome Gold
  • Sengoku
  • Victoria 2: A House Divided
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • War of the Roses
  • Victoria 2: Heart of Darkness
  • Imperator: Rome
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 2
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Legacy of Rome
  • Heir to the Throne
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Rome: Vae Victis
Daily tick is the game's internal calendar, one tick per day because character and province events are checked every so many days, depending on your defines.lua.

What have you changed lately? Like Baneslave said, some event (or decision) is being triggered with faulty effects. If this is a big mod you're working on, I'd backup the whole folder for your mod, and then start adding things back one at a time. It could really be anything.

Year is 260 and I have united the duchy of moray and the duchy of albany giving them both different rulers. Moray is renamed as is albany and each has a ruler,they are united under an elective monarchy and currently albany rules Caledonia.
 

Maestro Ugo

Charlie Brown's disciple
49 Badges
May 26, 2010
805
192
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Sengoku
  • Semper Fi
  • Hearts of Iron III
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • 500k Club
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Federations
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Victoria 2
  • Europa Universalis III Complete
  • Majesty 2
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Can one mod various prefixes for "son of" for different cultures, for example Erikson as "son of Erik" for the Scandinavians?

If so, where would one find such a thing?
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
@jezza: sorry, I don't know what to advise. Did you rename them just in localisation or elsewhere, too?

@Ugo: look in cultures.txt. Many cultures have a patronymic: so you would have to change it for each culture you're interested in. Erikson would be a suffix; you would have to delete that part and indicate that your patronymic should show as a prefix.
 

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
very noobish question here:

can someone tell me about global_flags and how they differ from province & character flags. I don't really understand in what circumstance you would use one.
 

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
very noobish question here:

can someone tell me about global_flags and how they differ from province & character flags. I don't really understand in what circumstance you would use one.
Province and character flags are limited to those characters, and are used only for things important to those characters. Global flags on the other hand apply to the entire world, and can be checked from any scope. The game uses this for the mongol invasions for example, to note that it has happened so the events cannot fire again.
 

Kuula

Private
20 Badges
Feb 15, 2012
11
0
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Crusader Kings II
  • Prison Architect
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Age of Wonders
  • Age of Wonders III
  • Pride of Nations
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Warlock: Master of the Arcane
  • Supreme Ruler: Cold War
  • Supreme Ruler 2020
  • Cities: Skylines
Will there be trouble and what kind of, if I have duchies that cannot be created in game? Like Kingdom of Khazaria is, but on duchy level. Will the AI go crazy when it gets those counties and can't turn them into duchies?
 

Shaytana

Sol Invictus
2 Badges
Mar 4, 2001
2.919
9
Visit site
  • Crusader Kings II
  • 500k Club
Anyone know why adding code to facial hair slot in portrait_properties.gfx (to get better beard generation for random characters etc) messes up characters with dna from history files? So if I make dna for a Norman count set him to cleanshaven via dna his facial hair will be randomized instead of keeping his cleanshaven face.
Even adding something completely inocous like giving each beard a factor of 1 will randomize the dna of the history files characters... I don't think it's an issue with the rest of my mod (found here: http://forum.paradoxplaza.com/forum...ng-Characters-(more-realistic-and-historical) ) I believe it might be something with the core client?
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Anyone know why adding code to facial hair slot in portrait_properties.gfx (to get better beard generation for random characters etc) messes up characters with dna from history files? So if I make dna for a Norman count set him to cleanshaven via dna his facial hair will be randomized instead of keeping his cleanshaven face.
Even adding something completely inocous like giving each beard a factor of 1 will randomize the dna of the history files characters... I don't think it's an issue with the rest of my mod (found here: http://forum.paradoxplaza.com/forum...ng-Characters-(more-realistic-and-historical) ) I believe it might be something with the core client?

Shaytana,

You need to specify hair and beards according to culture. I was able to make all Saxon men (or at least most of them) sport mustaches in a test case. The trick is to put in modifiers that give zero chance for certain cultures, religions, or other aspects of a character. Look at this, based on Trovador's work:

Code:
# p4 beard #Enhanced Portraits by Trovador
4 = {


0 = {
 factor = 1 # 1/3 of characters are shaved by default
 modifier = {
	factor = 2 #the '0' beard is actually a full beard for muslims
	religion_group = muslim
	}


 modifier = {
	factor = 4 #catholic priests shave more frequently
	religion = catholic
	OR = {
		AND = {
				is_ruler = yes
				is_theocracy = yes
		}
		has_job_title = job_spiritual
		
	}
	}


 modifier = {
	factor = 4 #latin cultured rulers like to keep their roman heritage
	culture_group = latin
	NOT = { culture = occitan }
	NOT = { culture = castillan }
	NOT = { culture = portuguese }
	NOT = { culture = muladi }
	NOT = { culture = sefardi }
	NOT = { culture = basque }#except for the occitans, who kept the iberian style
	}


 modifier = {
	factor = 0.25 #norse, slavic and pagan characters need facial hair!
	OR = {
		culture_group = east_slavic
		culture_group = west_slavic
		culture_group = north_germanic
		religion_group = pagan_group
	}
	}


}


1 = {	#gordon freeman
 factor = 1


}


2 = {	#full straight beard
 factor = 1
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}


}


3 = {	#bifid beard
 factor = 1
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}
}


4 = {	#moustache and goatee
 factor = 1


}


5 = {	#moustache
 factor = 1
		modifier = {
			factor = 50
			culture = saxon
		}
}


6 = {	#full curly beard
		factor = 100
		modifier = {
			factor = 0.01
			NOT = { religion = orthodox }
			NOT = { is_heresy_of = orthodox }
		}
		modifier = {
			factor = 0.01
			OR = {
				religion = orthodox
				is_heresy_of = orthodox
			}
			OR = {
				is_ruler = no
				is_theocracy = no
			}
			NOT = { has_job_title = job_spiritual }
		}
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}


}


7 = {	#thin moustache
	factor = 1
}


}

I do not put a lot of faith in modifying DNA directly for each character. I think that modifying portrait_properties is a more productive route. I may of course be wrong in that assumption, so let me not discourage you in doing what you think is best. Good luck.
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Will there be trouble and what kind of, if I have duchies that cannot be created in game? Like Kingdom of Khazaria is, but on duchy level. Will the AI go crazy when it gets those counties and can't turn them into duchies?

I don't know what you mean by "Will the AI go crazy"--I have in an earlier run of my mod removed all duchies from Iberia or rather make those that already existed titular. No problems. The AI is pretty resilient on matters of de jure hierarchy. You can have counties without either duchy or kingdom over them. The only problem that you run into is that only kingdoms and empires can have de jure laws. So in that case centralization and church laws (if Catholic) are locked in at whatever you set as 'default' in crown_laws.txt.
 

Shaytana

Sol Invictus
2 Badges
Mar 4, 2001
2.919
9
Visit site
  • Crusader Kings II
  • 500k Club
Thank you for your reply RedRooster81! I know what you mean I had very similar code in, the problem is I did custom dna for 99.99% of landed characters in 1066 to make them look just right, besides the portrait_properties stuff for random generated ones... but any beard code in the portrait_properties file, any beard code at all, messes up some of the facial hair of the characters with fixed dna... so for example Eustache de Boulogne might have a moustache specified in his dna file but lo and behold after putting in code very similar to one you posted somehow he'll end up with a beard.(obviously if I deny beards to Franks 100% he won't get one) I guess I'm going to give it another go, make it more similar to Trovador's code see if by some miracle that works somehow, if not I'll just try and finetune it somehow and give up on the characters that get randomized by the random gods...
 

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
Shaytana,

You need to specify hair and beards according to culture. I was able to make all Saxon men (or at least most of them) sport mustaches in a test case. The trick is to put in modifiers that give zero chance for certain cultures, religions, or other aspects of a character. Look at this, based on Trovador's work:

Code:
# p4 beard #Enhanced Portraits by Trovador
4 = {


0 = {
 factor = 1 # 1/3 of characters are shaved by default
 modifier = {
	factor = 2 #the '0' beard is actually a full beard for muslims
	religion_group = muslim
	}


 modifier = {
	factor = 4 #catholic priests shave more frequently
	religion = catholic
	OR = {
		AND = {
				is_ruler = yes
				is_theocracy = yes
		}
		has_job_title = job_spiritual
		
	}
	}


 modifier = {
	factor = 4 #latin cultured rulers like to keep their roman heritage
	culture_group = latin
	NOT = { culture = occitan }
	NOT = { culture = castillan }
	NOT = { culture = portuguese }
	NOT = { culture = muladi }
	NOT = { culture = sefardi }
	NOT = { culture = basque }#except for the occitans, who kept the iberian style
	}


 modifier = {
	factor = 0.25 #norse, slavic and pagan characters need facial hair!
	OR = {
		culture_group = east_slavic
		culture_group = west_slavic
		culture_group = north_germanic
		religion_group = pagan_group
	}
	}


}


1 = {	#gordon freeman
 factor = 1


}


2 = {	#full straight beard
 factor = 1
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}


}


3 = {	#bifid beard
 factor = 1
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}
}


4 = {	#moustache and goatee
 factor = 1


}


5 = {	#moustache
 factor = 1
		modifier = {
			factor = 50
			culture = saxon
		}
}


6 = {	#full curly beard
		factor = 100
		modifier = {
			factor = 0.01
			NOT = { religion = orthodox }
			NOT = { is_heresy_of = orthodox }
		}
		modifier = {
			factor = 0.01
			OR = {
				religion = orthodox
				is_heresy_of = orthodox
			}
			OR = {
				is_ruler = no
				is_theocracy = no
			}
			NOT = { has_job_title = job_spiritual }
		}
		modifier = {
			factor = 3
			OR = {
				culture_group = west_slavic
				culture_group = east_slavic
				culture_group = north_germanic
				religion_group = pagan_group
			}
		}


}


7 = {	#thin moustache
	factor = 1
}


}

I do not put a lot of faith in modifying DNA directly for each character. I think that modifying portrait_properties is a more productive route. I may of course be wrong in that assumption, so let me not discourage you in doing what you think is best. Good luck.

I think the actual solution to the issue is to simply remove the "DONT_REFRESH_IF_VALID" flag in portraits.gfx. You can see that beard (and hair) layers have a ":h:y" after them, unlike all the other layers. Try removing the ":y" part and see if that helps!

I haven't actually tested this, but it seems like a likely cause. Worth a try, at the very least!

EDIT: Or if you want to -keep- the predefined beards for characters, you may have to do the exact opposite, I dunno.
 

pablo4321

Second Lieutenant
44 Badges
Jun 11, 2010
181
0
  • Crusader Kings II
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • BATTLETECH: Heavy Metal
  • BATTLETECH: Season pass
  • BATTLETECH: Flashpoint
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • BATTLETECH - Digital Deluxe Edition
  • Age of Wonders III
  • BATTLETECH
  • Europa Universalis IV: Rights of Man
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Does anyone know of any way to destroy an entire holding in a province or failing that to change the holding type either by event or decision??