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

Dman1791

Captain
62 Badges
Apr 23, 2014
455
1.382
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Stellaris: Lithoids
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Teleglitch: Die More Edition
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Steel Division: Normand 44 Sign-up
  • Hearts of Iron IV: Cadet
  • Steel Division: Normandy 44 Deluxe Edition
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
So, I made a mod to allow abdication by decision under certain circumstances. The part of it I tested worked, and I uploaded it to the workshop. Later, I realize I screwed up the second of two decisions, since it was triggering off of "has_trait = melancholic", when there are 2 version of that trait, with IDs depressed_1 and depressed_genetic, not melancholic.

I grab the files I uploaded, make the changes, and upon testing neither of the two decisions show up anymore. I switch back to the Workshop version, and the first decision still works as before. Odd.

I then copied the files that were downloaded from the workshop to reset my progress, but now it doesn't seem to work at all, regardless of whether it's an old save or new game. So I have a functional mod from the workshop, which becomes non-functional if I drop its files in the local CK3/mod folder. I am still using the old .mod file, since that isn't uploaded to Steam and has the filepath for the local mod.

What am I missing that would cause this behavior? This is the decision file (with melancholic error), which works as long as I'm using the workshop mod:
Code:
abdication_mod_unfit_decision = {
    decision_group_type = major
    ai_check_interval = 6
    is_shown = {
        or = {
            has_trait = infirm
            has_trait = incapable
            has_trait = excommunicated
        }
    }
    is_valid = {
        or = {
            has_trait = infirm
            has_trait = incapable
            has_trait = excommunicated
        }
    }
    is_valid_showing_failures_only = {
        trigger_if = {
            limit = {
                has_trait = incapable
            }
            always = yes
        }
        trigger_else = {
            nor = {
                has_trait = arrogant
                has_trait = stubborn
                has_trait = ambitious
                has_trait = greedy
            }
        }
    }
    ai_potential = {
        always = yes
    }
    ai_will_do = {
        base = 50
        modifier = {
            has_trait = humble
            add = 20
        }
        modifier = {
            has_trait = content
            add = 20
        }
        modifier = {
            has_trait = lazy
            add = 10
        }
        modifier = {
            has_trait = fickle
            add = 10
        }
        modifier = {
            has_trait = just
            add = 10
        }
        modifier = {
            has_trait = zealous
            has_trait = excommunicated
            add = 100
        }
    }
    effect = {
        depose = yes
    }
}

abdication_mod_unwilling_decision = {
    decision_group_type = major
    ai_check_interval = 6
    is_shown = {
        or = {
            has_trait = melancholic
            and = {
                has_trait = shy
                has_trait = reclusive
            }
        }
    }
    is_valid = {
        or = {
            has_trait = melancholic
            and = {
                has_trait = shy
                has_trait = reclusive
            }
        }
    }
    is_valid_showing_failures_only = {
        nor = {
            has_trait = arrogant
            has_trait = stubborn
            has_trait = ambitious
            has_trait = greedy
        }
    }
    ai_potential = {
        always = yes
    }
    ai_will_do = {
        base = 0
        modifier = {
            has_trait = shy
            has_trait = reclusive
            add = 10
        }
        modifier = {
            has_trait = melancholic
            add = 10
        }
        modifier = {
            has_trait = humble
            add = 10
        }
        modifier = {
            has_trait = content
            add = 10
        }
        modifier = {
            has_trait = lazy
            add = 5
        }
        modifier = {
            has_trait = fickle
            add = 5
        }
    }
    effect = {
        depose = yes
        add_prestige_level = -1
    }
}