Team-Resurgent / Repackinator

GNU General Public License v3.0
140 stars 22 forks source link

Not actually repacking? #54

Closed heymufti closed 10 months ago

heymufti commented 1 year ago

Why is this called "repackinator" when it's clearly not repacking anything? The end result xiso is many times larger than extracting files and actually repacking. There are only a few titles that check the size of the DVD partitions. Can we get an option to actually repack the iso's appropriately? It looks like the smallest xiso your tool creates is 1,756,807,168 bytes x2 split. Is this just removing a video partition and not data padding?

extract-xiso does this; https://github.com/XboxDev/extract-xiso

You can use;

extract-xiso -x ./redump_disc.iso extract-xiso -c ./redump_disc_folder

And run the attach script from xbmc4gamers. So why can't this functionality be apart of Repackinator?

incursion64 commented 1 year ago

Why is this called "repackinator" when it's clearly not repacking anything? The end result xiso is many times larger than extracting files and actually repacking. There are only a few titles that check the size of the DVD partitions. Can we get an option to actually repack the iso's appropriately? It looks like the smallest xiso your tool creates is 1,756,807,168 bytes x2 split. Is this just removing a video partition and not data padding?

extract-xiso does this; https://github.com/XboxDev/extract-xiso

You can use;

extract-xiso -x ./redump_disc.iso extract-xiso -c ./redump_disc_folder

And run the attach script from xbmc4gamers. So why can't this functionality be apart of Repackinator?

Well, there is quite a bit to "unpack" here. Let me try to explain to you what's going on in simple terms that helped me understand the process here.

Extract XISO is removing the padding and extracting the content into a foldered state. When you use the -r command it removes the padding and rebuilds the XISO so the size is smaller than what you started with.

Repackinator requires the user to select some options. You have Trim/Scrub, and you have Compression (CCI).
Without checking any of these boxes it's simply removing the video partition and it's splitting the 6.7GB disc into two halves as and XISO. This is essentially a full size game rip without any patching, no sector changes etc. It's 1:1 that can be used on the xbox. Repackinator will also folderize this file and create your attach XBE so there is no need for running a script. It extracts the information from XBE, matches up to the JSON file, and that's what you end up with.

Now, when you select Trim-Scrub - It is replacing all that padding with 0's instead of removing the padding. This keeps the actual data in the same location as it were on a full size disc, yet the file size is slightly smaller than the original 1:1 rip.

Now for the compression CCI or CSO, it compresses all the data and all those 0's maintain sector integrity and are squished down to basically nothing. The result are files that are basically the same size of and HDD extracted folder with zero patching, and with nothing moved. This basically gives you max compatibility as the table of contents and sector locations remain intact.

All of these options place the files appropriately in a folder, along with the thumbnail image and attach.xbe file (named default.xbe). The naming comes off the JSON file that Repackinator uses.

Furthermore, if you run this app as admin on your PC, you enable context menu options, which allow you to change from one format to another, and even allow you to properly extract xiso without using extract-xiso.

Hope that makes sense.