cheatfreak47 / NMSDecompressinator

Automatic decompression and repacking of No Man's Sky pak files
Do What The F*ck You Want To Public License
24 stars 3 forks source link

insuffecient free space handling #5

Open cheatfreak47 opened 2 months ago

cheatfreak47 commented 2 months ago

at some point I should look into working in some form of insufficient free space detection and error handling

the primary issue is that it's difficult to calculate the amount of free space that's needed till it's already too late.

I suppose we could add some form of rough space calculation by simply adding together the total size of all the applicable pak files and simply multiply the amount by ~3.25 (which is a decent rough average total space needed, including overhead)

but I don't know, there's a good chance this issue just rots, since it's really kind of a minor thing

cheatfreak47 commented 2 months ago

For documentation purposes, if you run the script on a drive with insufficient overhead free space, the usual file that fails is NMSARC.TexMisc.pak because it runs out of overhead space- this file is ~11.8GB unpacked- but it could fail on any file before that if space is really low.

Any files that fails to extract due to insuffecient space, it will be very tiny after getting repacked, and this size carries over to the BankSignitures.bin file and the game will crash on launch or whenever the files needed are requested but don't exist.

Typically when people have issues, I just ask for their BankSignitures.bin file to see if that was one of the possible problems.