Mr-Berzerk / PSXtract2021

This is a 2021 version of Hykem's PSXtract built to work on x64 Windows 10. I've also attempted to merge in as many forks of the original as possible.
GNU General Public License v3.0
16 stars 1 forks source link

Castlevania - SotN (USA) extracts successfully, but cue sheet is wrong #2

Open TBirdSoars opened 2 years ago

TBirdSoars commented 2 years ago

I recently found this repository after having this same issue with the original PSXtract.

SotN appears to extract successfully, but when I load the cue sheet in Duckstation, I get the following error: Screenshot 2022-02-09 213325 The cue sheet is as follows:

FILE "CDROM.BIN" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 00 50:53:45
    INDEX 01 50:55:45

According to https://github.com/opsxcq/psx-cue-sbi-collection/blob/master/redump.org/Castlevania%20-%20Symphony%20of%20the%20Night%20(USA).cue, the cue sheet should be:

FILE "Castlevania - Symphony of the Night (USA) (Track 1).bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
FILE "Castlevania - Symphony of the Night (USA) (Track 2).bin" BINARY
  TRACK 02 AUDIO
    INDEX 00 00:00:00
    INDEX 01 00:02:00

Using that and changing FILE to "CDROM.BIN" still doesn't seem to work.

Using https://www.duckstation.org/cue-maker/, I get the following:

FILE "CDROM.BIN" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00

which appears to work. (Also, loading the bin file instead of the cue in Duckstation also seems to work.)

Mr-Berzerk commented 2 years ago

The cue file should be the same name as the bin, and the file name in the cue should be what the bin is.

Aside from that, it looks like your bin file might not have the audio track in it. Did you extract the bin from a disc/pbp yourself/your device, or was it downloaded from somewhere?

TBirdSoars commented 2 years ago

I did keep the file names and the FILE names in the cue sheet the same. The bin was extracted from the EBOOT.PBP using PSXtract, and the PBP was transferred to my PC from my Vita.

Mr-Berzerk commented 2 years ago

Ok, I'll have to take a look, if I can find my copy. It appears the PSXtract2021 is saying there is a AUDIO track, when there isn't one in the pbp. That is why it works when you remove the 2nd track. (this is also why loading the bin instead of the cue works, because it just assumes 1 data track.)

TBirdSoars commented 2 years ago

Just wanted to note this, a rip of a SotN CD actually has two .bin files, Track 1 and Track 2. Either the bin/cue isn't being extracted correctly from the ISO, or this was changed to one .bin file for the PS one Classics release.

Edit: Just tested extracting Mega Man Legends 1 and 2, neither cue sheet will load into Duckstation but the bin files do, just like SotN. These two games also have two track bin files in their CD rips as well. Mega Man Legends gives an error:

Converting the final ISO image...
Fixing CD-ROM image...
ERROR: Encountered inconsistent subheader!
Generating CUE file...
ISO image successfully converted to CD-ROM format!

Only FF7 and Mega Man X4 have extracted successfully, with the expected MD5 hashes.

CadeMan011 commented 1 year ago

Sorry to necro the thread, but I've been having the same problem with SotN, along with every other multi-track PSone game as called out by the .cue file. I've tried manually adjusting the .cue files for some games like Namco Museum Vol.1 to point to the additional tracks in the ISO folder, but DuckStation keeps giving me errors. I've also tried using the same cue maker from DuckStation mentioned above by using the ISO.bin and TRACK_0X.bin files to make a new .cue file, but that doesn't work for me either. I can make the .cue file reference only the extracted CDROM.bin, and that gets the games to boot, but naturally some music doesn't play. Good news is I haven't had any trouble with games whose .cue files only call out one track. Let me know if any of this information is helpful.

TheNametag commented 1 year ago

Same is true for Street Fighter Alpha 2 and Street Fighter Alpha 3. (Though I have not done as extensive testing as above, I can confirm that the .cue files are incorrect (lists both tracks as starting at 00:00:00) and the .bin size is smaller than expected.)

TheRealWario commented 1 year ago

I actually tried this program with Vib-Ribbon as well; it appears as if it can't handle games with multiple tracks, and the final cue file it produces doesn't work. I was able to get the bin file working, but the bin file doesn't have the extra tracts on it, and there will be no music. Hopefully this can be prioritized?

has207 commented 1 year ago

I've been doing a lot of digging into this lately, afaict psxtract never supported audio tracks correctly so all the bin/cue files it produces are busted. CDROM.BIN it outputs for multitrack games is just ISO.BIN after running isofix, so at least it will load by itself, but none of the audio tracks are included. From what I found, including them is not entirely trivial as they're compressed to ATRAC3 in addition to possibly being encrypted.

smbhax commented 1 month ago

Found an updated psxtract that did handle the additional CD audio tracks in my JP PS3 PS Store dump of Namco Museum Vol. 1 correctly, whereas PSXtract2021 did not: https://github.com/has207/psxtract-2

Update: Ah psxtract-2 appears to be by the poster above, @has207