Fails to Open "DATA TRACK.BIN" with wine
Trying to convert Puyo Puyo Box but it fails to open "DATA TRACK.BIN", resulting in a CDROM.BIN of 0 bytes. I've tried moving to C: and renaming the folder to remove the - but nothing helped.
(deck@steamdeck psxtract-2)$ wine psxtract.exe SLPS03114/EBOOT.PBP
Unpacking PBP SLPS03114/EBOOT.PBP...
[0] 944 bytes | PARAM.SFO
[1] 9147 bytes | ICON0.PNG
[2] 0 bytes | ICON1.PMF
[3] 40945 bytes | PIC0.PNG
[4] 2651 bytes | PIC1.PNG
[5] 0 bytes | SND0.AT3
[6] 11809 bytes | DATA.PSP
[7] 55524287 bytes | DATA.PSAR
Successfully unpacked SLPS03114/EBOOT.PBP!
Single disc game detected!
Found STARTDAT offset: 0x034ee680
Saving STARTDAT as STARTDAT.BIN...
Decrypting ISO header...
ISO header successfully decrypted! Saving as ISO_HEADER_0.BIN...
ISO disc: SLPS_03114
ISO title: ã·ãã·ãBOX
Found special data offset: 0x034f08ff
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 33ee4f0 bytes, wrote 874ce00 bytes
Data track successfully reconstructed! Saving as ISO.BIN...
Offset 0m:0s:0f at 041e
Offset 13m:26s:12f at 0414
Converting the final image to BIN/CUE...
Patching ECC/EDC data...
Could not write to output file - terminating
Generating CUE file...
ERROR: DATA TRACK.BIN.ISO cannot be opened
Disc successfully converted to BIN/CUE format!
It's a wine issue, I don't know why the release doesn't work but it's fixed in HEAD if you compile from source
Are there instructions for compiling from source? I'm not really sure how to do it without having the steps included.
I just added build instructions, if your distro is something different you need mingw's g++ compiler so install the appropriate package, then just run make. It should be pretty straightforward.
https://github.com/has207/psxtract-2/blob/master/BUILD.Linux.md
It worked, but I seem to have received a strange result. The game is working however.
(deck@steamdeck psxtract-2)$ wine "psxtract.exe" EBOOT.PBP
Unpacking PBP EBOOT.PBP...
[0] 944 bytes | PARAM.SFO
[1] 9147 bytes | ICON0.PNG
[2] 0 bytes | ICON1.PMF
[3] 40945 bytes | PIC0.PNG
[4] 2651 bytes | PIC1.PNG
[5] 0 bytes | SND0.AT3
[6] 11809 bytes | DATA.PSP
[7] 55524287 bytes | DATA.PSAR
Successfully unpacked EBOOT.PBP!
Single disc game detected!
Found STARTDAT offset: 0x034ee680
Saving STARTDAT as STARTDAT.BIN...
Decrypting ISO header...
ISO header successfully decrypted! Saving as ISO_HEADER_0.BIN...
ISO disc: SLPS_03114
ISO title: ã·ãã·ãBOX
Found prebaked CUE file for SLPS-03114
Game title from CUE: Puyo Puyo Box (Japan)
Found LEADOUT at 13:24:12 (60312 frames)
Found special data offset: 0x034f08ff
Decrypting special data...
Special data successfully decrypted! Saving as SPECIAL_DATA.BIN...
Building the data track...
ISO offset 100000
......................................
Raw data track written to DATA_TRACK.BIN
Data track successfully reconstructed!
Patching ECC/EDC data...
Offset 0m:0s:0f at 041e
Offset 13m:26s:12f at 0414
Processing 60312 sectors
Number of mode 0 sectors: 0
Number of mode 1 sectors: Mode 1 sectors are not supported.
Number of mode 2 form 1 sectors: 60308
Number of mode 2 form 2 sectors: 4
Mode 2 form 2 boot sectors with EDC: 4
Mode 2 form 2 boot sectors without EDC: 0
Total sectors processed: 60312
The image has been fixed!
Gap after data track: 150 sectors
Attempting to extract audio tracks...
There are no CDDA audio tracks, continuing...
Converting the final image to BIN/CUE...
Using prebaked CUE file, generating BIN file only...
adding DATA_TRACK.BIN.ISO
Copied prebaked CUE file to Z:\home\deck\Applications\psxtract-2\Puyo Puyo Box (Japan).cue
=== MD5 VERIFICATION ===
MD5 verification for SLPS-03114 (prebaked CUE):
Expected: 8d59d404d8d74d35f2cc18296e51e506
Actual: f146e268c0ae0bbbddca63ec48be597d
Result: FAIL
========================
Disc successfully converted using prebaked CUE file!