Jump to content

Save file size increases exponentially due to repeated logging of the same event


Turtle6

Recommended Posts

Recently I was doing a KSP2 Dres mission and I encountered a bug where the save file size would exponentially increase in size, causing saving to freeze my game for several seconds.

228409816-dcbf4472-b0bc-4a12-b47d-e35322

It turns out the culprit of the save file size ballooning is due items within a JSON array called  "ObjectEvents" duplicating. This array can be found in any KSP2 save file. Within the save file, the ObjectEvents array is located within a JSON object titled TravelLogData.

 

It is also important to note that I have two mods installed using Spacewarp version 1.0.1:

- LazyOrbit version 0.4.0

- StageInfo (version unknown)

However, I do not think these mods cause the issue since there are two reports of this issue occuring on 2/26/2023 and 2/27/2023 in the ksp2_help channel on the Intercept Games Discord, when modding was not as mainstream. The threads are called:

- "Savefile sizes ballooning exponentially?

- "Save files BALLOONING in size massively"

 

You can see my save file with repeated entries in the ObjectEvents array at the link below (you can easily find this array by typing Ctrl + F and searching for "ObjectEvents"). When duplicates are removed using a Python program that I made, the save lowers to ~11 KB.

https://drive.google.com/file/d/1RKUqKpzwQd2S-TK4v_Z_-Mj7W73WlmaI/view?usp=sharing

 

I hope this information helps!

Link to comment
Share on other sites

×
×
  • Create New...