Xbox shrinking tool needed

Jackal
Posts: 2598
Joined: Mon Jun 08, 2026 1:26 am

Xbox shrinking tool needed

Post by Jackal »

Are there any coders who could have a look at this? http://xboxdevwiki.net/XDVDFS#Random_blocks

https://github.com/JayFoxRox/xbox-dvd-compress

It would be great to have a tool developed similar to nNASOS for dramatically reducing the compressed size of Xbox images (by scrubbing the random padding and allowing it to be regenerated)
Last edited by Jackal on Sun Jul 07, 2019 3:55 pm, edited 1 time in total.
Sniik
Posts: 29
Joined: Mon Jun 08, 2026 1:28 am

Re: Xbox shrinking tool needed

Post by Sniik »

Jackal wrote:Are there any coders who could have a look at this? http://xboxdevwiki.net/XDVDFS#Random_blocks

It would be great to have a tool developed similar to nNASOS for dramatically reducing the compressed size of Xbox images (by scrubbing the random padding and allowing it to be regenerated)
Yeah I would like to. Is this known to be correct?
Last edited by Sniik on Sun Jul 07, 2019 2:52 pm, edited 1 time in total.
LedZeppelin68
Posts: 80
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by LedZeppelin68 »

great, thanks for the link, very interesting for research
will take a look after figuring out the 3ds decryption
Last edited by LedZeppelin68 on Mon Jul 08, 2019 9:55 am, edited 1 time in total.
LedZeppelin68
Posts: 80
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by LedZeppelin68 »

It works!

https://pastebin.com/vfC9GSLX

Tested it with the game from the example and known seed

Compressed size of archive 65 mb, against 6.4Gb with "garbage"

Great, Jackal, thanks for the info!
LedZeppelin68
Posts: 80
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by LedZeppelin68 »

OK, test it on "Petit Copter (Japan).iso"

2 executables

1) xbox_dernd.exe - derandomizer

like "nasos deux", it doesn't change the structure of the file, just replaces "random data block" with block full of "JUNK", it is like zeroing but it serves as a mark

you will get a file called "Petit Copter (Japan).f401863e.iso"
f401863e is a seed for the random generator

2) xboxRegen.exe - regenerator of random data

replaces blocks full of "JUNK" with random data blocks, generated by using seed number


xbox_dernd is tweaked to be compatible with the Petit Copter for test purpose
the tweak is, that it bruteforces only 1/16 part of full range
from 0xf0000000 to 0xffffffff (f401863e)
to speed up the test process, it tooks about 8 seconds on my rig
brutforcing the full range will took about 8 minutes

P.S. 7zipped iso is 48,7 Mb
Attachments
xbox_tools_test_alpha1.zip
Imported Redump attachment 3113
(7.6 KiB) Downloaded 1 time
Last edited by LedZeppelin68 on Wed Jul 10, 2019 7:58 am, edited 1 time in total.
User avatar
wiggy2k
Posts: 0
Joined: Mon Jun 08, 2026 1:28 am

Re: Xbox shrinking tool needed

Post by wiggy2k »

wow, nice work, that does work really quickly too.

Image

That's a massive space saving.
Last edited by wiggy2k on Wed Jul 10, 2019 10:15 am, edited 1 time in total.
retaliator
Posts: 376
Joined: Mon Jun 08, 2026 1:28 am

Re: Xbox shrinking tool needed

Post by retaliator »

Great work, keep on saving me a loooooot of space on my rigs! Image
Jackal
Posts: 2598
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by Jackal »

Hi,

great job! 3 questions:

- Is there only 1 seed value for the entire disc? So it shouldn't take long to brute force every disc once they are supported?
- Does nNASOS also fill with "JUNK" pattern, or something else?
- I tried 2 random games (Crimson Skies - High Road to Revenge (USA) (En,Fr,De,Zh,Ko) + Tony Hawk's Pro Skater 2x (USA) ), but it couldn't find a seed value. So just this 1 game is supported for now?
Last edited by Jackal on Wed Jul 10, 2019 12:14 pm, edited 1 time in total.
LedZeppelin68
Posts: 80
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by LedZeppelin68 »

Hello!

1) 1 seed value for entire disc, since current tool uses only one thread brutrforcing takes around 8 minutes on modern PC, I'll try to speed it up

2) I cannot tell for sure about nNASOS, if it uses the first version of NASOS, no it fills garbage blocks with zeroes and should have header block with marks which block uses garbage padding.
NASOS deux replaces garbage with "JUNK", and the image is playable in emulator
/viewtopic.php?t=13218

3) Yes, this version supporting one game only
Last edited by LedZeppelin68 on Wed Jul 10, 2019 12:55 pm, edited 1 time in total.
LedZeppelin68
Posts: 80
Joined: Mon Jun 08, 2026 1:26 am

Re: Xbox shrinking tool needed

Post by LedZeppelin68 »

Image

this is time taken to brute the seed value for "Silent Hill 2 - Inner Fears (Europe) (En,Ja,Fr,De,Es,It).iso"
Last edited by LedZeppelin68 on Wed Jul 10, 2019 12:56 pm, edited 1 time in total.
Post Reply