• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

jumbi

Elder Councillor & Servant of the Masters
100 Badges
May 18, 2013
838
2.337
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normand 44 - Second Wave
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • A Game of Dwarves
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Steel Division: Normandy 44 -  Back to Hell
  • Cities: Skylines - Parklife
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Nemesis
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
One line summary of your issue
[3.1.0 KKAD] Culture flags duplicate when save/loading

Game Version
3.1.0 KKAD

What expansions do you have installed?
All of the above

Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
Culture flags, as added in 3.0 Holy Fury, duplicate at some point when performing a save/load cycle. While culture flags seem to be unused in vanilla, manually adding a flag to a culture in save game (as done in the attached save) allows the issue to be reproduced. The exponential addition of duplicate flags in the save file very quickly leads to the save's file size becoming extremely bloated to the point where a single save can be larger than half a gigabyte, severely hindering modifications that seek to use culture flags. Repeatedly saving without resigning to the main menu and loading the new save causes no further duplication.

It also seems that the loading and saving of culture flags persists across games. That is, if you a game running with culture flags saved in it, resign to the main, start a new game and save it, the save file of your new game will contain the (possibly thousands of duplicates) of culture flags that were in the old game.

Combining the two factors above, that it is only after loading that new duplication can occur and that the duplication occurs regardless of whether the same game was loaded, I believe that the culture flag aspect of the gamestate persists after resigning and is appended to whatever culture flags already exist in the loaded/new game rather than an error in the save/load cycle itself. In the case of loading the same game, this causes the number to double. When loading a save that had 1 instance of test_flag in it after resigning from a game with 4 instances, the resulting save had 5 instances and so this would seem to support that theory.

Attached Files:

TestFlag.ck2 - A regular save from game start at 1066.9.15 a single instance of the test_flag flag added to Greek culture

TestFlag5.ck2 - TestFlag.ck2 after reloading it several times from saves containing varying instances of test_flag. There are now 14 instances of test_flag.

TestFlagNewGame.ck2 - A new game started after resigning from a save with 10 instances of test_flag. Note that this save was started in the 769 start date, yet the 10 instances of test_flag are still present and recorded as having been made at 1066.9.15.

TestFlagDifferentFlag.ck2 - The same as TestFlag.ck2, but with the flag being named test_flag_type_two.

TestFlagFusion.ck2 - This is the save resulting from starting the game, loading TestFlagDifferentFlag.ck2, resigning, loading TestFlag.ck2, and saving. It contains both test_flag_type_two from TestFlagDifferentFlag and test_flag from TestFlag.

TestFlagManyFourCultures.ck2 - This save started as the same as TestFlag.ck2 but with test_flag being recorded in 4 cultures instead of Greek alone. After changing between games only a handful of times, the 4 flags have become 1120.

Steps to reproduce the issue.
1. Start a game of CK2, starting date/character/gamerules do not matter.
2. Save the game and add a test flag to one of the game's cultures in the save.
3. Resign and return to the singleplayer menu without closing the game.
4. Continue the game the save which has had the flag added it to it or begin a new game.
5. Save the game.
6. Repeat steps 3-5. After the second iteration, the flag(s) will duplicate/increase with each save depending on whether the old game was loaded or a new one was started.

Upload Attachment
 

Attachments

  • TestFlagManyFourCultures.ck2
    25,7 MB · Views: 0
  • TestFlagFusion.ck2
    17,6 MB · Views: 0
  • TestFlagDifferentFlag.ck2
    17,6 MB · Views: 0
  • TestFlagNewGame.ck2
    12,8 MB · Views: 0
  • TestFlag.ck2
    17,6 MB · Views: 0
  • TestFlag5.ck2
    17,6 MB · Views: 0
Last edited:
Upvote 0