has207 / psxtract-2

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

Dino Crisis 2 (SLUS-01279) - Data Track Incorrect Length #6

Open tjmatthews1999 opened 8 months ago

tjmatthews1999 commented 8 months ago

Hello, sorry for making two back-to-back posts. This one is similar to the previous one (Dino Crisis (SLUS-00922) - Redump Checksum Mismatch), but also slightly different.

When extracting the Sony PSClassics EBOOT for Dino Crisis 2, I'm having some issues with the resulting data track (DATA TRACK.BIN.ISO). Interestingly, the file is one sector short. It has a length of only 473673984 bytes (201392 sectors), but both Redump (http://redump.org/disc/460/) and the runtime log itself indicate it should be 201393 sectors.

I've attached the runtime log below:

PS BASE_PATH> .\psxtract-2\psxtract-2\psxtract.exe .\SLUS01279\EBOOT.PBP Unpacking PBP .\SLUS01279\EBOOT.PBP... [0] 944 bytes | PARAM.SFO [1] 11250 bytes | ICON0.PNG [2] 0 bytes | ICON1.PMF [3] 41146 bytes | PIC0.PNG [4] 2651 bytes | PIC1.PNG [5] 0 bytes | SND0.AT3 [6] 42273 bytes | DATA.PSP [7] 327506661 bytes | DATA.PSAR Successfully unpacked .\SLUS01279\EBOOT.PBP!

Single disc game detected!

Found STARTDAT offset: 0x13851b20 Saving STARTDAT as STARTDAT.BIN...

Decrypting ISO header... ISO header successfully decrypted! Saving as ISO_HEADER_0.BIN...

ISO disc: SLUS_01279 ISO title: Dino Crisis™ 2

Found special data offset: 0x13854b15 Decrypting special data... Special data successfully decrypted! Saving as SPECIAL_DATA.BIN...

Offset 44m:47s:18f at 0428 Offset 48m:19s:18f at 0414 seeking to 100000 + 13401a20 (13501a20) Extracting audio track 2 (15900 sectors, 3474048 bytes) 1 audio tracks extracted to ATRAC3 Attempting to convert from ATRAC3 to WAV, this may take awhile...

BASE_PATH\psxtract-2\psxtract-2\at3tool.exe -d "D01 TRACK02.AT3" "D01 TRACK02.WAV" Decoding 132 kbps (ATRAC3) Decoded Bytes = 3473664 Bytes@9046frames(ave=384bytes)

1 audio tracks converted to WAV Need to pad 348756 bytes 1 audio tracks converted to BIN

Building the data track... ISO offset 100000 .............................................................................................................................. Read 13401a20 bytes, wrote 1c416f00 bytes Data track successfully reconstructed! Saving as ISO.BIN...

Offset 0m:0s:0f at 041e Offset 44m:47s:18f at 0428 Converting the final image to BIN/CUE... Patching ECC/EDC data... Processing 201393 sectors The image has been fixed!

Generating CUE file... adding DATA TRACK.BIN.ISO adding D01 TRACK02.BIN Disc successfully converted to BIN/CUE format!

has207 commented 6 months ago

Hey sorry for some reason I don't get notifications about new issues on github. I'll take a look at what's up with the Dino Crisis games

tjmatthews1999 commented 6 months ago

No problem. Ironically I didn't get notified of your reply either. Thanks for looking into it!

has207 commented 6 months ago

This one is also another example of issue in #3

has207 commented 6 months ago

Thanks for reporting these, I'll track them in the original issue (#3). The games are extracted correctly, and should be fully playable, there does appear to be some kind of "watermark" or something that exists on very small subset of physical discs that does not get included in the eboots, I'm thinking it's something pxstract can patch in just to make the md5 checks pass for the games we know about. Will maybe add in next release, but fwiw this is purely cosmetic.

has207 commented 6 months ago

Okay I think I rushed to close this one, this indeed looks like there's another bug and final sector count is 1 less than what it's supposed to be (in addition to the ECC in final sector issue). I'll need to look into this one more closely.