WolvenKit / CyberCAT

CyberPunk 2077 Customization Assistant Tool. Work in progress Savegame editor.
MIT License
158 stars 34 forks source link

Possible sav.dat file size compression? #46

Closed JT-IT closed 3 years ago

JT-IT commented 3 years ago

Hey all! First off, great tool, loving it and it gives me some cool insights into how their save games are structed (I'm in devops in IT so I find it interesting regardless).

TL:DR - I crafted too much shit and dismantled it and my sav.dat is 11MB and the game takes forever to load so I was wondering if there's a way to shrink the size of a sav.dat file using your tool.

The whole story: This is more of a feature request/question; is it possible to compress the size of a sav.dat file in general so the game loads faster? I created a quick powershell script to click, hold, release the Craft button for "bounce back mk1" stims and crafted like 10,000 of them overnight then dismantled the stack for components to sell for cash (yes, I know I could just mod the save but I was trying to play that first game thru without "cheating") and now my save file is over 11MB and it takes a good 70 seconds to load the save game. Not a huge deal but a pain in the ass. I was looking thru the tool and it would appear that inventory items, or any item picked up really, is giving an increasing unique int/long value: image So I'm assuming that huge jump in the node hex is like, the thousands of stims I crafted...

So, my question is, is the game just keeping all that crap in the save file? Since it's all been dismantled is there a way to just cut out that part of the binary so my save file is not so big? Or is it just padded with zeroes or something? I couldn't really figure it out by looking thru the decompressed binary file myself (it's >40MB lol).

Thanks folks, keep up the good work!

JT-IT commented 3 years ago

dupe (original got 404 response on post?)