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

jumbi

Elder Councillor & Servant of the Masters
100 Badges
May 18, 2013
719
1.560
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Steel Division: Normand 44 - Second Wave
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • A Game of Dwarves
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Age of Wonders III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Charlemagne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Europa Universalis IV
  • Crusader Kings II: Conclave
  • 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
As there still seems to be some confusion over the immortal age overflow (we only implemented the fix Paradox made possible ourselves in Elder Kings very recently :confused: ), I'm making this post to try and make the fix more well-known. In 2.8.1.1, a history effect was added called immortal_age. To use it, simply create a date block in the history of the character who is receiving the fix and add both a trait that confers immortality and immortal_age = <age>.

Here is an example where Aldaril's appearance freezes at age 56:
Code:
38001 = {
    name = "Aldaril" #Heir to Balfiera
    dynasty = 120001
    religion = auri-el
    culture = altmer
    add_trait = impure_altmer
    add_trait = "altmer_1"
   
    father = 38000
   
    3309.1.1 = { birth = yes }
    3365.1.1 = { add_trait = disabler immortal_age = 56 }
    3501.1.1 = { death = yes }
}
In this case, the disabler trait gives him his immortality and the immortal_age value freezes his appearance appropriately, preventing the overflow issue.
 

jumbi

Elder Councillor & Servant of the Masters
100 Badges
May 18, 2013
719
1.560
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Steel Division: Normand 44 - Second Wave
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • A Game of Dwarves
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Age of Wonders III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Charlemagne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Europa Universalis IV
  • Crusader Kings II: Conclave
  • 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
Though I've not tested it myself, I imagine using the add_age command to change a character's age into the age group you wish them to resemble, adding the immortality-giving trait, and then changing their age back would do the trick.
 

SinStar87

Second Lieutenant
68 Badges
Oct 20, 2014
175
10
  • Crusader Kings II
  • Europa Universalis III
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Imperator: Rome
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect: Psych Ward
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Europa Universalis IV: Golden Century
  • Stellaris: Necroids
  • Stellaris: Megacorp
  • Prison Architect
  • Shadowrun Returns
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Teleglitch: Die More Edition
  • Victoria 2
  • Warlock: Master of the Arcane
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Crusader Kings III
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Res Publica
  • Divine Wind
  • Crusader Kings II: Rajas of India
What was the problem this is fixing, if you don't mind me asking? "Overfow" sounds scary.
CK2 will change character portraits to children if they get too old while immortal.

Though I've not tested it myself, I imagine using the add_age command to change a character's age into the age group you wish them to resemble, adding the immortality-giving trait, and then changing their age back would do the trick.
I'm not sure of a way to actually do that. Variables maybe?
 

jumbi

Elder Councillor & Servant of the Masters
100 Badges
May 18, 2013
719
1.560
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Steel Division: Normand 44 - Second Wave
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • A Game of Dwarves
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Age of Wonders III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Charlemagne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Europa Universalis IV
  • Crusader Kings II: Conclave
  • 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
What was the problem this is fixing, if you don't mind me asking? "Overfow" sounds scary.
Character's ages would overflow when they were of the appropriate age in history, I forget the ranges, and appear as children despite being hundreds of years old.

I'm not sure of a way to actually do that. Variables maybe?
Exporting the character's age to a variable and then using a while loop to age them up/down should do the trick.
 

ngppgn

Field Marshal
19 Badges
Jan 29, 2011
3.508
657
  • Crusader Kings III
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
Character's ages would overflow when they were of the appropriate age in history, I forget the ranges, and appear as children despite being hundreds of years old.


Exporting the character's age to a variable and then using a while loop to age them up/down should do the trick.
If you export to a variable then you should be able to multiply that variably by -1 and use change_age = the_variable instead. Nuch easier on the modder and on the cpu.