FINDarkside / TLD-Save-Editor

Edit The Long Dark save files
http://www.moddb.com/mods/the-long-dark-save-editor-2/downloads
MIT License
76 stars 31 forks source link

Edited save has significantly smaller filesize (possibly losing data) #3

Closed naturalnumber closed 5 years ago

naturalnumber commented 5 years ago

I feel a bit silly opening an issue for this but my curiosity is killing me. I've used the editor a couple of times to fix glitches and such (thanks for making this by the way) but I noticed that the edited save files are usually a lot smaller than the originals, and I'm just wondering why? I took a quick look at the code, but I'll admit C# isn't my best language.

Thanks again!

FINDarkside commented 5 years ago

Hi, most of it is because the compression library I use achieves better compression ratio than the one TLD uses. However, it might also be possible that the editor is losing some data from the original save, since it's been a while I've done manual comparing of the saves. I'll keep this issue open until I have made sure the difference is solely because of better compression.

naturalnumber commented 5 years ago

If it helps, so far I have not noticed any issues, but thanks.

FINDarkside commented 5 years ago

I'm rewriting how the editor loads saves. Once it's done it shouldn't be possible to lose any data. I don't think it's losing lot of data right now, main motivation is to avoid having to update all the data proxies every time the game updates.

FINDarkside commented 5 years ago

New save system shouldn't be losing any data. The size difference should be mostly because of better compression and storing binary data as base64 instead of byte arrays converted to text.