Confirmed CK III - "trait_is_criminal_in_faith_trigger" is broken, always returning true if adultery is illegal

  • 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.
Status
Not open for further replies.

CyberSpyder

Major
64 Badges
Jun 2, 2008
598
169
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Sword of the Stars
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • 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: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Apocalypse
  • Crusader Kings Complete
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Hearts of Iron IV: No Step Back
  • 500k Club
  • Victoria 2
  • Supreme Ruler 2020
Short summary of your issue "trait_is_criminal_in_faith_trigger" is broken, always returning true if adultery is illegal

Game Version 1.0.3

What OS are you playing on?
Windows

What platform are you using?
Steam

Do you have mods enabled? No

Have you tried verifying your game files (Steam only)?
Yes

How much "pain" is this causing you?
2

Please explain the issue you experienced in the most condensed way possible
I noticed the issue when I was given the witchcraft secret instead of the witch trait, but I was able to determine the reason why, which was a bit deeper than that.

The problem lies with the trait_is_criminal_in_faith_trigger in common\scripted triggers\00_religious_triggers.txt. I won't copy the whole thing, since it's long, just the problem section:

Code:
...

		AND = {
			OR = {
				always = yes
				#scope:criminal_trait_check = flag:adulterer
				#scope:criminal_trait_check = flag:fornicator
			}
			OR = {
				AND = {
					$FAITH$ = { has_doctrine_parameter = adultery_female_crime }
					$GENDER_CHARACTER$ = { is_female = yes }
				}
				AND = {
					$FAITH$ = { has_doctrine_parameter = adultery_male_crime }
					$GENDER_CHARACTER$ = { is_male = yes }
				}
			}
		}

...

This is one of a series of AND sections within a larger OR block; if any of them evaluate to true, the trait being checked is treated as illegal (causing, for witchcraft, the secret to be assigned instead of the trait). Note however that in this case the criminal_trait_check lines are commented out, meaning that even if we're actually checking for the legality of witchcraft (or deviancy, or sodomy, or cannibalism, or whatever), the code will effectively say "yes, it's criminal" if adultery is criminal for someone of the relevant person's gender.

Uncommenting the criminal_trait_check lines and removing the "always=yes" fixes the problem, allowing the witch trait to be assigned properly and also fixing bugs with, e.g., deviancy and homosexuality being improperly treated as illegal.

Please explain how to reproduce the issue


Is there anything else you think could help us identify/replicate the issue?
 
  • 3Like
Reactions:
Voting on this suggestion has been paused.
Yes, finally fixed in 1.3.0
 
They said it like that:
"You can no longer arrest people for legal sodomy/deviancy/witchcraft/cannibalism just because adultery happens to be illegal for their gender"

I checked in the file too, to be sure, and they did fix it.
 
Status
Not open for further replies.