Short summary of your issue
Scripted triggers relating to coreligionist wars contain erroneous type comparisons
Game Version
1.5.1.1
What OS are you playing on?
Windows
What platform are you using?
Steam
What DLC do you have installed?
Royal Court,
Do you have mods enabled?
No
Have you tried verifying your game files (Steam only)?
Yes
How much "pain" is this causing you?
3
Please explain the issue you experienced in the most condensed way possible
The three scripted triggers
As a result, these triggers always return false.
Please explain how to reproduce the issue
Trigger any effect that expects any of the three triggers to return true.
I set up the following test file in the
The modifier was not applied and the following error was logged:—
This error was originally surfaced and thus independently-verified by @void0x00.
Is there anything else you think could help us identify/replicate the issue?
These three triggers are defined in
Each of these six comparisons should be emended to
I have attached a save game
No
Scripted triggers relating to coreligionist wars contain erroneous type comparisons
Game Version
1.5.1.1
What OS are you playing on?
Windows
What platform are you using?
Steam
What DLC do you have installed?
Royal Court,
Do you have mods enabled?
No
Have you tried verifying your game files (Steam only)?
Yes
How much "pain" is this causing you?
3
Please explain the issue you experienced in the most condensed way possible
The three scripted triggers
at_war_with_any_coreligionist_trigger
, at_war_with_any_non_coreligionist_trigger
, and at_war_only_with_coreligionists_trigger
contain an erroneous type comparison which attempts to compare a character's faith
to a ROOT
character scope.As a result, these triggers always return false.
Please explain how to reproduce the issue
Trigger any effect that expects any of the three triggers to return true.
I set up the following test file in the
run
directory that attempted to add a character modifier to every player at war with a coreligionist, then declared a debug war on France as the Holy Roman Emperor and ran the file via the console.
Code:
every_player = {
limit = { at_war_with_any_coreligionist_trigger = yes }
add_character_modifier = feast_strategy_discussions_modifier
}
The modifier was not applied and the following error was logged:—
Code:
[21:12:39][jomini_script_system.cpp:209]: Script system error!
Error: Left side and right side during comparison were of different types (left was 'faith', right was 'character')
Script location: file: common/scripted_triggers; at_war_with_any_coreligionist_trigger line: 11 file: run/test.txt line: 2
This error was originally surfaced and thus independently-verified by @void0x00.
Is there anything else you think could help us identify/replicate the issue?
These three triggers are defined in
common/scripted_triggers/00_war_and_peace_triggers.txt
and between them contain six instances of the faulty faith = root
comparison.Each of these six comparisons should be emended to
faith = root.faith
.I have attached a save game
No