One line summary of your issue
Persistent targets on religions and societies break on load
Game Version
3.2.1 (AZCE)
What expansions do you have installed?
Jade Dragon,
Monks & Mystics,
The Reapers Due,
Conclave,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam,
Holy Fury
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Scripting-related issue, so this actually requires a simple mod to test.
Persistent event targets can be set (with save_persistent_event_target) and accessed on religions and societies, but only for the current session.
While this behavior makes sense for entities that are not saved at all (like inactive dynamic titles), religions and societies do have persistent flags and variables. The event targets can actually be found in the save file, even after saving and loading the game multiple times.
In other words, I can use and save persistent event targets on religions and societies, but they are not correctly loaded. I suspect this may also be the case for cultures, artifacts, wonders and offmap powers, but I have only tested for these two.
Steps to reproduce the issue.
1) Start the game modded with the attached file in the events directory.
2) Use the console to run events DEBUG.4, 5 and 6. Since the flags, variables and event targets have not been set, only the "OK" option is available.
3) Run event DEBUG.1, then 4 to 6 again. Three more options appear for each event: "Title", "Religion" and "Society".
4) Save and reload the game.
5) Run events DEBUG.4 to 6. The first two work just as well as before, but for DEBUG.6, only the "Title" and "OK" options are available. Running DEBUG.1 again fixes this, as expected.
6) Looking for debug_pet in the save file, we see that the persistent event target was saved for all three entities, even though it was only loaded for the title.
Upload Attachment
Persistent targets on religions and societies break on load
Game Version
3.2.1 (AZCE)
What expansions do you have installed?
Jade Dragon,
Monks & Mystics,
The Reapers Due,
Conclave,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam,
Holy Fury
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Scripting-related issue, so this actually requires a simple mod to test.
Persistent event targets can be set (with save_persistent_event_target) and accessed on religions and societies, but only for the current session.
While this behavior makes sense for entities that are not saved at all (like inactive dynamic titles), religions and societies do have persistent flags and variables. The event targets can actually be found in the save file, even after saving and loading the game multiple times.
In other words, I can use and save persistent event targets on religions and societies, but they are not correctly loaded. I suspect this may also be the case for cultures, artifacts, wonders and offmap powers, but I have only tested for these two.
Steps to reproduce the issue.
1) Start the game modded with the attached file in the events directory.
2) Use the console to run events DEBUG.4, 5 and 6. Since the flags, variables and event targets have not been set, only the "OK" option is available.
3) Run event DEBUG.1, then 4 to 6 again. Three more options appear for each event: "Title", "Religion" and "Society".
4) Save and reload the game.
5) Run events DEBUG.4 to 6. The first two work just as well as before, but for DEBUG.6, only the "Title" and "OK" options are available. Running DEBUG.1 again fixes this, as expected.
6) Looking for debug_pet in the save file, we see that the persistent event target was saved for all three entities, even though it was only loaded for the title.
Upload Attachment
Attachments
Upvote
0