rashevskyv / dbi

Author is duckbill
2.19k stars 93 forks source link

Need double storage-space on SD-card after game-update #281

Open Ollibolli85 opened 1 year ago

Ollibolli85 commented 1 year ago

Hello!

Every time, i install just a game-update for an existing game with DBI/MTP (Windows), the Switch needs the full storage-space on SD-card for that update AGAIN!

But the old update seems to be deleted/overwritten by the new one!

If i delete the whole game, ALL the storage-space is free again!

grimson73 commented 11 months ago

What do you mean exactly? For example, the FC 24 update is 'EA Sports FC 24 [0100BDB01A0E6800][v393216] (20.87 GB).nsz' Does this mean that you need 20GB of free space to install this update, or the base game plus update? What do you mean by 'again'? To me it instantly installs the update on the fly when transferring from PC to Switch but I might be wrong.

Eatmoreapples commented 11 months ago

@rashevskyv Please take a look at the issue. Removing previously installed updates doesn't work everytime anymore. New updates get installed, but very often the old update files won't get deleted afterwards and the orphaned files from the old update take up the space. Then you have to delete them manually with the tools/clean up orphaned files option in dbi. Not a big deal, but annoying if you are running out of space. Thanks in advance

rashevskyv commented 11 months ago

@rashevskyv Please take a look at the issue. Removing previously installed updates doesn't work everytime anymore. New updates get installed, but very often the old update files won't get deleted afterwards and the orphaned files from the old update take up the space. Then you have to delete them manually with the tools/clean up orphaned files option in dbi. Not a big deal, but annoying if you are running out of space. Thanks in advance

Could you provide an examples?

Eatmoreapples commented 11 months ago

Sure. Take a look at the picture. Yesterday I installed the latest update for Rush Rally 3. It's just an example of the behavior for many other updates I've installed recently over different dbi versions and different firmwares 16.0.1 + 16.0.3 + 17.0. When it comes to the step "removing previously installed" normally dbi removes the old files first before it registers the new ones. As you can see in the picture down below, it doesn't happen somehow. I have to say that I convert the nsp updates always to nsz with NSCB. But if I remember correctly, it also happens with unconverted nsp update files. If I have time today, I'll check that asap. Applet mode or not doesn't matter btw. PXL_20231123_205410229~3

Eatmoreapples commented 10 months ago

Hello again @rashevskyv :-) Just saw the newest dbi version 640 and gave it another try with the same update file for Rush Rally 3. First I deleted the newest update [v1179648] and installed the older one again [v1114112]. After that I installed the newest update again. I don't know if it's because of the newest dbi version 640, but in that MTP session it installed normally and removed the old update files. Take a look at the picture down below. I will keep an eye on it if it runs into trouble again with any other updates. Thank you very much for this great software and effort you put into it! PXL_20231124_192327354~2

Eatmoreapples commented 10 months ago

Ok. Another day, new game updates, another try. It looks like the problem still persists. This time I opened up a FTP connection and installed two new game updates in a row. The pictures down below are from the log files, thats why there are always 15,17GB free btw...

First one: Asterix and Obelix 2 Slap them all 2 [v131072]. The old update files were removed automatically. PXL_20231128_220321938~2

Second one: Windjammers 2 [v393216] The old update files were not automatically removed. PXL_20231128_220445147~2

After that I had to remove the old Windjammers 2 update files manually PXL_20231128_220600350~2

🤷🤷🤷

grimson73 commented 10 months ago

2023120909235900-DB1426D1DFD034027CECDE9C2DD914B8 2023120909181400-DB1426D1DFD034027CECDE9C2DD914B8 Just chiming in, I do cleanup manually like I took this for granted. 20GB freed space for FC24 update and 4GB for Mario Kart. Guess you need the 'double' storage space whether or not the obsolete files will be auto deleted because the update is installed first and then the obsolete files would be deleted. But this is just my theory. Cannot tell how the official Nintendo update function works.

ccfman2004 commented 9 months ago

As far as I know, the way Nintendo does it, the update is downloaded, verified and installed first, THEN the old files are deleted. This is the same way the system update works. It is done this way in case there is an error with the downloaded files (verification fails) the old update files are still there so the game can still run on that version.