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

Kinds

First Lieutenant
11 Badges
Apr 12, 2012
211
18
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Stellaris Sign-up
hello, I start in modding, I create a mod trying to respect the rules of the CKII wiki, I create 2 non-random feature, which must be given only by decision, in short the decisions works, I complete the GFX file / interface, everything looks ok ect, the trait gives good bonuses and malus ect, but I see that at the beginning of each game or when I load a backup, my new trait is given randomly to the pnj without I did not do anything or the decision was to generate. (I try only with the GFX / interface and trait for see) and it did, for the wiki there is written well:



random

With random = no, the trait will not be given to randomly-generated characters (when the game starts or when characters are spawned other than by being born). random = yes is the default. Specific semantics vary with the general trait type.

random = no

I do not understand at all what's going on.



it is my trait file :

test1 = {
random = no
same_opinion = 5
diplomacy = -5
martial = -5
intrigue -5
ai_ambition = -100
ai_zeal = -10
vassal_opinion = -10
sex_appeal_opinion = 25
fertility = 0.25
monthly_character_piety = 2
monthly_character_prestige = -1

cannot_marry = yes
customizer = no
}

test2 = {
random = no
sex_appeal_opinion = -10
martial = -5
stewardship = -5
intrigue = -5
health = -1
ai_ambition = -40
ai_zeal = -10
vassal_opinion = -25
combat_rating = -10
monthly_character_piety = 2
monthly_character_prestige = -1

customizer = no
cannot_marry = yes
cannot_inherit = yes
}

Last patch of Holy Fury 3.0.1.1
 
Last edited:

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Call to arms event
  • 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
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
Are you loading an old save game? Adding new traits mid-save will cause the index of all traits loaded after it to change, so they'll end up with new traits.
 

Kinds

First Lieutenant
11 Badges
Apr 12, 2012
211
18
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Stellaris Sign-up
Are you loading an old save game? Adding new traits mid-save will cause the index of all traits loaded after it to change, so they'll end up with new traits.


This come with old or new savegame of 3.0.1.1 version, it is very strange, with other mod when add new trait is not this bug. It come only with my modification.
 

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Call to arms event
  • 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
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
Are there any events that give out the trait? One could be firing in ways you don't expect.
Try making those events temporarily add a unique flag. That way you can use the charinfo console command, then look at the characters who gained the trait and see what event they got it from.
 

Kinds

First Lieutenant
11 Badges
Apr 12, 2012
211
18
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Stellaris Sign-up
Are there any events that give out the trait? One could be firing in ways you don't expect.
Try making those events temporarily add a unique flag. That way you can use the charinfo console command, then look at the characters who gained the trait and see what event they got it from.
No event give this trait, for decision if add specific flag, no NPC have will my new trait in begining of game ?

Another thing to look at is the decisions and make sure the ai can't use them
Ok, but decision is not permitted of himself anyways, i will verified.
 

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Call to arms event
  • 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
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
The flag isn't to prevent them from getting the trait, it's to determine if they are getting the trait from the decision or from some other source. If your decision adds the flag, and the character gets the flag, this means that they are using the decision.
 

Kinds

First Lieutenant
11 Badges
Apr 12, 2012
211
18
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Stellaris Sign-up
The flag isn't to prevent them from getting the trait, it's to determine if they are getting the trait from the decision or from some other source. If your decision adds the flag, and the character gets the flag, this means that they are using the decision.
Ok thx, i decided created decision for canceled trait for bad person,
in my new party any npc hasn't my new trait, my conclusion is in old game have bug,
but i hope my decision for canceled wrong trait for npc work.