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

LordPeter

Marjoram
49 Badges
Mar 5, 2012
2.249
382
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Res Publica
  • 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
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
One line summary of your issue
"trait = incapable" checks ignoring trait sick_incapable in multiple occasions

Game Version
[3.2.1] [AZCE]

What expansions do you have installed?
All of the above

Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
I have made a detailed thread here explaining the issue.
Basically, the majority of the code base does only ever check for the visible trait called "incapable", but almost never for the invisible trait called "sick_incapable" that was added in Reaper's Due.
This will result in events undesirably firing for characters that are otherwise considered incapacitated (and employ a regent, etc), or those characters picking focuses that should be blocked for them design-wise, etc.
The proper solution seems to be using "is_incapable = yes" instead, as this seems to check for the trait flag that incapacitates the character instead (but you would know best, you are the devs and can see the underlying code ^^).
Replacing the single trait check with the general check would mitigate the problem entirely as far as I see.

Steps to reproduce the issue.
Since this issue is visible in code, there's no need o track it ingame.
For a file that is particularly important and full of these errors, open /common/scripted_triggers/00_scripted_triggers.txt and search for "trait = incapable" checks. All of these should actually read "is_incapable = yes". Only in 2 single occasions does the code check for the hidden sick_incapable trait, but directly as opposed to the more elegant and safer "is_incapable = yes" method.

Upload Attachment
 
Upvote 0