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

Anthropoid3

Private
40 Badges
Apr 18, 2016
16
13
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • 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
  • 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
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
  • Victoria 3 Sign Up
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
  • Europa Universalis IV
I'm trying to figure out why a trait added by a mod keeps disappearing when I load a save game.
So far, I've seen that:
  1. The game saves the trait (i.e., I can find its ID in the save file)
  2. It loads the trait - it is listed in setup.log, with the same ID as in in the save file
  3. The trait is not there after the save game loads
I recall having a similar problem when I tried to do some modding myself a few years back, but I didn't find a solution then either. I have no issues with other mods that add traits either.
The only potential problem I've seen is that the trait in question has potential = { always = no } in its definition, but AFAIK that should only affect random assignment?

Does anyone know how to tackle this problem?
 
Characters must meet the potential block for traits on save game load. If they don't, they lose traits. This is hardcoded, so you may want to add a check for the trait in there. That way, anyone who has the trait can keep it, but no one else will get it, beyond script explicitly handing it out.
 
  • 2
Reactions: