I figured out exactly why the tournaments not ending until the ruler dies bug is occurring.
Basically, what happens is the following:
1. Event #70000 in tournament_events.txt shows that event #70999 triggers exactly 150 days after you click the Grand Tournament decision.
2. The problem with this is that 150 days is sometimes not enough time for all of the tournament winner or tournament ending events to fire.
3. If not all of the tournament winner or tournament ending events have fired before 150 days event #70999 clears most (but not all) of the tournament character flags.
4. The character flags that event #70999 doesn't clear are tournament_60_days, and tournament_begins, so the game still thinks the tournament is continuing.
5. The tournament ending event, #70002, requires the winner, second_place, and third_place character flags to fire.
6. These flags are cleared by event #70999, so the tournament can't end properly.
7. Since the tournament can't end properly and event #70999 doesn't clear the tournament_begins character flag, the tournament doesn't end until the ruler dies and triggers event #70041.
If you increase the days until event #70999 triggers in event #70000 AND in realm_decisions.txt (i.e. increase the 150 days value in the hidden_tooltip = { character_event = { id = 70999 days = 150 } } line to 200ish) it fixes the tournament not ending until the ruler dies bug.
The 150 days value in the hidden_tooltip = { character_event = { id = 88999 days = 150 } } line should also be increased to around 200ish in furusiyya_events.txt and realm_decisions.txt to fix the problem for Muslims.
Basically, what happens is the following:
1. Event #70000 in tournament_events.txt shows that event #70999 triggers exactly 150 days after you click the Grand Tournament decision.
2. The problem with this is that 150 days is sometimes not enough time for all of the tournament winner or tournament ending events to fire.
3. If not all of the tournament winner or tournament ending events have fired before 150 days event #70999 clears most (but not all) of the tournament character flags.
4. The character flags that event #70999 doesn't clear are tournament_60_days, and tournament_begins, so the game still thinks the tournament is continuing.
5. The tournament ending event, #70002, requires the winner, second_place, and third_place character flags to fire.
6. These flags are cleared by event #70999, so the tournament can't end properly.
7. Since the tournament can't end properly and event #70999 doesn't clear the tournament_begins character flag, the tournament doesn't end until the ruler dies and triggers event #70041.
If you increase the days until event #70999 triggers in event #70000 AND in realm_decisions.txt (i.e. increase the 150 days value in the hidden_tooltip = { character_event = { id = 70999 days = 150 } } line to 200ish) it fixes the tournament not ending until the ruler dies bug.
The 150 days value in the hidden_tooltip = { character_event = { id = 88999 days = 150 } } line should also be increased to around 200ish in furusiyya_events.txt and realm_decisions.txt to fix the problem for Muslims.
Upvote
0