Skip to content

has207/psxtract-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psxtract-2

Tool to decrypt and convert PSOne Classics from PSP/PS3. Originally written by Hykem.

This tool allows you to decrypt a PSOne Classics EBOOT.PBP on your PC. It features a modified version of libkirk's source code to support DES encryption/decryption and the AMCTRL functions. Also features isofix code for ensuring finalized ISO matches real discs. And uses at3tool for ATRAC3 decoding of CDDA audio tracks.

Notes

Output of running psxtract.exe EBOOT.PBP is two files - CDROM.BIN and CDROM.CUE in the current directory. You should know what to do with those.

Using the "-c" option on the command line, psxtract will clean up any temporary files it generates while it runs (of which there are many). This flag is kept for backwards compatibility with old psxtract that used it to force CDROM creation. Current version always creates a BIN/CUE pair but we keep the flag for nostalgia.

at3tool.exe and its accompanying dll are required to be in the same directory for ATRAC3 audio decoding of CDDA tracks.

You may supply a KEYS.BIN file to the tool, but this is not necessary. Using the internal files' hashes, psxtract can calculate the key by itself.

Game file manual decryption is also supported (DOCUMENT.DAT).

Linux code has diverged significantly and has been removed. If you want to use this tool on Linux/OSX try it with Wine, just make sure to set WINEPREFIX approprirately. Otherwise spawning external processes needed to decode AT3 files will fail. Hint:

$ WINEPREFIX=~/.wine/drive_c wine /path/to/psxtract.exe -c /path/to/EBOOT.PBP

For more details about the algorithms involved in the extraction process please check the following sources:

Working games and compatibility

Nearly all PSN eboots should be supported. Some known problems are mentioned in the bug tracker:

https://github.com/has207/psxtract-2/issues

If you encounter issues with a particular game report it there, but in general the game should be fully playable even in those cases where we have md5 sum mismatches vs redump.org.

Generally speaking BIN/CUE pair created by this tool SHOULD match information on redump.org, in other words all .BIN files should be the correct size and match md5 hashes of a real disc dump.

However, if the game has CDDA audio audio tracks, i.e. 2 or more tracks per BIN, those audio track md5 sums will NOT match redump.org info. This is working as intended, we generate the audio tracks with the correct size and as close to original as possible. However, as we're dealing with a lossy compression to ATRAC3, the conversion back to raw audio necessarily results in md5 hash mismatches for the audio tracks.

The easiest way to verify hashes is by importing the game into Duckstation and checking hashes from the game Properties menu.

There is one additional known issue that is actually working as intended -- with Resident Evil 2 Dualshock Edition. The EBOOT for that game retains CUE entries and pointers to audio tracks, however these were not included in the EBOOT. The audio tracks present on the physical discs are empty so this is not a real loss, just an issue with the EBOOT itself, so there will be warnings when this EBOOT is extracted but the resulting BIN/CUE is fully playable.

Credits

Daniel Huguenin (implementation of ECC/EDC CD-ROM patching)

Draan, Proxima and everyone involved in kirk-engine (libkirk source code)

tpunix (C port and research of the PGD and AMCTRL algorithms)

PSPSDK (PBP unpacking sample code)

zecoxao (Unscrambling and decoding of audio tracks)

Heel (ATRACT3 decoding for CDDA tracks)

About

Psxtract by Hykem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 74.6%
  • C++ 25.4%