elysebluemoon
Version: e1.1.0.226306 (live)
I am experience this crash as well. And I think I know whats happening for my game, however I am unsure if the game state is similar enough for others.
Here's a detailed report which I think is generated by the ModLib mod (?).
Link
I also submitted what I believe to be the same crash that I'm describing at the following identifier from the crash uploader:
2020-04-22_06.03.18_a404aab597bed49bd157652b4d4a1aca
(I had to screenshot that and type it out, please make that copy-able in the future)
Caveats:
While there are mods enabled, I can verify that the crash occurs without mods too (however I cannot guarantee a mod did not create this invalid state.)
This save is probably from an earlier patch, but I don't know when.
I also poked around a bit since the module's appear to be all in C#.
Some details I am unsure cause this issue:
My character's background was Empire.
I founded my own Kingdom using a non-Imperial settlement (hence Weaken the Empire).
What I think is happening is:
At
DefeatTheConspiracyQuestBehavior.InitializeFinalPhase the list of Imperial kingdoms being populated inadvertently will also add the player's kingdom (if they founded their own) which (in my case) is marked as an
Imperial kingdom, as it's culture is marked Empire.
What then happens (as shown in the stack trace) is that when the list of kingdoms that are to declare war with my kingdom get their wars created, my kingdom declares war on itself, which causes the same Dictionary (of casualties/etc) to be initialized twice.
I'm not sure what the policy is on showing module code, so I'll offer to share through PMs unless told otherwise. But I can show approximately where it's occurring.