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

divsky

Second Lieutenant
17 Badges
Jun 12, 2012
122
356
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • 500k Club
  • Cities: Skylines
I've copied the defines.lua file from vanilla CK2 and modded these four lines:

Code:
    PORTRAIT_ADULT_MALE_AGE_THRESHOLD = 14,            -- Male child to adult age portrait switch
    PORTRAIT_ADULT_FEMALE_AGE_THRESHOLD = 13,        -- Female child to adult age portrait switch
    PORTRAIT_MID_AGE_THRESHOLD = 35,                -- Middle age switch for character portraits
    PORTRAIT_OLD_AGE_THRESHOLD = 55,                -- Old age switch for character portraits

Then saved it in the CK2+ common folder. But when I play the portraits still switch at the vanilla 16/30/50 ages. Why isn't this working?
 
You have to place it in common/defines as of a few patches I think. I'm not sure you can just take the whole thing as is and plop it in there even then, so if that doesn't work take a look at the already existant files that CK2+ has to see how you add them.
 
It should work because I've done it before on the Game of Thrones mod, unless CK2+ is somehow different.

But yes, it must be in common/defines. If you put it in just the common folder, it can't find it. Furthermore, this should be obvious, but make sure you're using a copy of the CKII+ version of the defines. Do not use the CKII vanilla one.