has207 / psxtract-2

Psxtract by Hykem
GNU General Public License v3.0
8 stars 2 forks source link

PAL games with libcrypt copy protection need SBI data #12

Open mr-blackmore opened 1 month ago

mr-blackmore commented 1 month ago

Hello.

So I've been in the process of decrypting games, but I hit a snag with Crash Team Racing (PAL).

The initial dump log didn't indicate any errors:

C:\Users\Private>psxtract.exe -c EBOOT.PBP Unpacking PBP EBOOT.PBP... [0] 944 bytes | PARAM.SFO [1] 14813 bytes | ICON0.PNG [2] 0 bytes | ICON1.PMF [3] 44700 bytes | PIC0.PNG [4] 2651 bytes | PIC1.PNG [5] 0 bytes | SND0.AT3 [6] 35156 bytes | DATA.PSP [7] 337158611 bytes | DATA.PSAR Successfully unpacked EBOOT.PBP! Single disc game detected! Found STARTDAT offset: 0x14187370 Saving STARTDAT as STARTDAT.BIN... Decrypting ISO header... ISO header successfully decrypted! Saving as ISO_HEADER_0.BIN... ISO disc: SCES_02105 ISO title: Crash Team Racing� Found special data offset: 0x14188bd3 Decrypting special data... Special data successfully decrypted! Saving as SPECIAL_DATA.BIN... There are no CDDA audio tracks, continuing... Building the data track... ISO offset 100000 ..................................................................................................................................................................................................... Read 14087370 bytes, wrote 2c1e4f00 bytes Data track successfully reconstructed! Saving as ISO.BIN... Offset 0m:0s:0f at 041e Offset 69m:58s:2f at 0414 Converting the final image to BIN/CUE... Patching ECC/EDC data... Processing 314702 sectors The image has been fixed! Generating CUE file... adding DATA TRACK.BIN.ISO Disc successfully converted to BIN/CUE format! Cleanup requested, removing TEMP folder [If you see errors above try running without -c to leave TEMP files in place in order to debug.]

However, Duckstation refused to play it. image

This is the only game so far, where I've encountered such an issue.

mr-blackmore commented 1 month ago

Actually, the same issue also presents itself with two other games: Legacy of Kain - Soul Reaver (SLES-01301) and Vagrant Story (SLES-02754). All three games have verified hashes with redump.org, so I don't seem to get, what the problem is.

has207 commented 1 month ago

There's some info on this here:

https://psxdatacenter.com/sbifiles.html

I'd really hate to buy anymore PAL games as they don't run on my TV, can you check if the SBI files provided on that site address the problem? and are you getting the md5 mismatch with disc version when extraction completes?

has207 commented 1 month ago

Oh sorry just read your other comment saying you're matching up with redump, so I assume getting the appropriate SBI files should fix the problem.

has207 commented 1 month ago

I guess the SBI data should be in the EBOOT somewhere as well, or maybe downloaded alongside the EBOOT. When I have time I'll see if I can look for it.

mr-blackmore commented 1 month ago

Hi again. Thanks for the SBI link. Adding the file to the same folder as the BAN-CUE files (and renaming it to match the files) seems to resolve the issue.

has207 commented 1 month ago

Cool, I'll leave this open with a TODO to look for SBI present alongside or in the EBOOT so that psxtract could do something more user friendly for these games