Information
I have verifed my game files (Steam only)
YesI have disabled all mods
YesI am running the latest game update
YesRequired
Summary
Dead characters saved with corrupt dead_data field causing huge save game files > 1.5 GBDescription
A character saved with custom text using the following codewidget = {
gui = "event_window_widget_TRXXX_custom_reason"
container = "custom_widgets_container"
setup_scope = { scope:TRXXX_controller = { save_scope_as = text_target } }
controller = {
type = text
data = { key = TRXXX_custom_desc_key default = TRXXX_scheduled_TODO_reminder_event.0160.custom_default }
}
}
The dead_data field on the saved character is corrupt, being set to "{" which is somehow causing every subsequent save to duplicate the traits leading to traits field as large as 167KB and probably larger, but that's the largest I have seen.
This is a character extracted from the save file when first saved
71555={
first_name="Benedicta"
birth=1047.2.19
female=yes
nickname_text=""
culture=38
faith=12
skill={ 6 14 0 0 1 9 }
mass=-18
traits={ 61 78 56 22 88 214 }
localized_custom_text={
"TRXXX_custom_desc_key"="this is a test message!"
"date"="1066.9.15"
"dead_data"="{"
"reason"="death_vanished"
}
dead_data={
date=1066.9.15
reason="death_vanished"
}
}
I have set the platform to linux because I use that mostly, however this is also happening on windows, but you don't have an option to specify multiple platforms.
Eventually the massive bloated size of the save games is causing the game to grind to a halt, and load times to be way too long. I assume if I carry on going through the cycle eventually the save game will be too large to load into ck3
This is the same character after loading the save file, then exiting the game straight away without taking the game off pause. Notice the traits field has been repeatedly duplicated
71555={
first_name="Benedicta"
birth=1047.2.19
female=yes
nickname_text=""
culture=38
faith=12
skill={ 6 14 0 0 1 9 }
mass=-18
traits={ 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 }
localized_custom_text={
"TRXXX_custom_desc_key"="this is a test message!"
"date"="1066.9.15"
"dead_data"="{"
This is the same character again after doing the same procedure, i.e. load the save file, then exiting straight away without taking the game off pause, again notice the repeated duplication of the traits field
71555={
first_name="Benedicta"
birth=1047.2.19
female=yes
nickname_text=""
culture=38
faith=12
skill={ 6 14 0 0 1 9 }
mass=-18
traits={ 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 61 78 56 22 88 214 }
localized_custom_text={
"TRXXX_custom_desc_key"="this is a test message!"
This continuing repeated duplication of traits every time the game is exited is causing huge save files to be written.
The only thing I can see wrong with the original saved character is the seemingly corrupt dead_data field, the content seems wrong
"dead_data"="{"
The code I used to create the characters is based off the vanilla code for saving pet names.
Steps to reproduce
Create a character event that uses the same code I posted to save custom text to the character, then kill the character and make them unprunable.Game Version
1.10.2Platform
LinuxAdditional Information
Affected Feature
- Gameplay