Description of issue
[v1.12.7] [b738] Scripted on_action 'on_capitulation' has been broken in wars involving factions
What platform do you play on?
Steam
Game Version
1.12.5
Enabled DLC
Together for Victory, Waking the Tiger, Man The Guns, La Resistance, No Step Back, By Blood Alone
Do you have mods enabled?
Yes
Description
As the title states: I work on a mod where all peace deals are scripted using on_capitulation. However, since 1.12, this on_action no longer fires when the final member of a faction capitulates. I ran some tests with an output log for each time a country capitulates in a multi-faction war, and it found that on_capitulation will fire for each member that capitulates of a faction until the last one, in which the game fires a normal peace conference. This may have to do with the order of events after a capitulation, but I can't say I'm too sure. Please help, as this issue has been a huge headache to the mod's scripted peace deals. Attached is the on_capitulation file for the mod.
Steps to Reproduce
1. Set on_action 'on_capitulation' to produce an output log if FROM is a member of winning faction and is still at war after the on_capitulation is triggered
2. Set another effect that checks that FROM is no longer at war, to produce another output log
3. Tag to the FROM tag in a war between two factions, and slow capitulate all members of the opposing faction
4. An output log is reduced for each tag capitulating, showing it does work
5. Final tag does not produce an output log upon capitulating, on_capitulation did not fire
Upload Attachment
File(s) attached
[v1.12.7] [b738] Scripted on_action 'on_capitulation' has been broken in wars involving factions
What platform do you play on?
Steam
Game Version
1.12.5
Enabled DLC
Together for Victory, Waking the Tiger, Man The Guns, La Resistance, No Step Back, By Blood Alone
Do you have mods enabled?
Yes
Description
As the title states: I work on a mod where all peace deals are scripted using on_capitulation. However, since 1.12, this on_action no longer fires when the final member of a faction capitulates. I ran some tests with an output log for each time a country capitulates in a multi-faction war, and it found that on_capitulation will fire for each member that capitulates of a faction until the last one, in which the game fires a normal peace conference. This may have to do with the order of events after a capitulation, but I can't say I'm too sure. Please help, as this issue has been a huge headache to the mod's scripted peace deals. Attached is the on_capitulation file for the mod.
Steps to Reproduce
1. Set on_action 'on_capitulation' to produce an output log if FROM is a member of winning faction and is still at war after the on_capitulation is triggered
2. Set another effect that checks that FROM is no longer at war, to produce another output log
3. Tag to the FROM tag in a war between two factions, and slow capitulate all members of the opposing faction
4. An output log is reduced for each tag capitulating, showing it does work
5. Final tag does not produce an output log upon capitulating, on_capitulation did not fire
Upload Attachment
File(s) attached
Attachments
Last edited:
- 5
- 1
Upvote
0