I got errors saving my 2.5.1 game and now get errors loading the saved game.
When Saving:2.5.1 Function#3230 constraint failed
UNIQUE constraint failed: FCT_TechSystem.TechSystemID
followed by:
2.5.1 Function#1500 constraint failed
UNIQUE constraint failed:
FCT_ShipDesignComponents.SDComponentID
Game finished saving after that.
When I try to load I get 4 errors:2.5.1 Function #1349: An item with the same key has already been added.
Then:
Tech system does not exists for D50-1 Ship Decoy so it cannot be loaded
Then:
Tech system does not exists for D80-1 Ship Decoy so it cannot be loaded
Then:
Tech system does not exists for D99-1 Ship Decoy so it cannot be loaded
The game was a TN start with real stars and I'm about 82 years into the game.
I
HAVE been able to reproduce this.
Background and Description: I had not used decoys up to this point and decided I need to. I had previously researched a size 20 launcher and had queued a size 50 launcher project for research but no actual decoy missiles. After I loaded my save last time, I quickly created projects for size 80 and 99 launchers, plus decoy missiles for size 20, 50, 80 and 99. I played for a hour or two and when I saved, I got the errors above. I reloaded the game and got the above load errors. Those names (DF50-1, D80-1 and D99-01) correspond to the decoy missiles I queued up for research. None of them had been researched at the time of the save.
To reproduce the long way (this mirrors the sequence of what I actually did before initially getting the error except without playing a couple of hours before saving), what I did was:
- Load my previous save
- Click the create research project button
- Set the company name
- Select Decoy Launcher
- Select Size 80 from the dropdown
- Click Create at the bottom
- Change size to size 99
- Click Create at the bottom
- Open the missile project window
- Check the "Decoy Missile" checkbox
- Change the decoy strength to 50
- Change the name to D50-1
- Click Create at the bottom
- Change the decoy strength to 80
- Change the name to D80-1
- Click Create at the bottom
- Change the decoy strength to 99
- Change the name to D99-1
- Click Create at the bottom
- Open research window
- Select a researcher (Komatsu Tadako in my save)
- Change the research category dropdown to "Missiles / Kinetic Weapons"
- Use "Add to Queue" to add each of the research projects above to the researcher's queue
- Save the game
I have also been able to reproduce just by doing the following:
- Load my previous save
- Open the missile designer window
- Check the "Decoy Missile" checkbox
- Change the decoy strength to 50
- Change the name to D50-1
- Click Create at the bottom
- Change the decoy strength to 80
- Change the name to D80-1
- Click Create at the bottom
- Save the game
I suspect the issue is related to my trying to create multiple decoy missile projects from the window at the same time. If I follow the same steps above except close the missile designer window and reopen it before creating the second missile, I don't get the error.
I've attached two saves. The one with the 2131 date is the previous save I used to reproduce. The one with the 2132 date is the one after the save where it throws errors on load.