has207 / psxtract-2

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

could not extract over 2GB PBP #10

Closed xenyou closed 1 month ago

xenyou commented 2 months ago

it seems that psxtract-2 can't handle huge PBP file (over 2GB)

I got this error.

PS D:\psxtract-2> .\psxtract.exe -c ..\backups20240502diff\game\NPJJ00307\USRDIR\CONTENT\EBOOT.PBP
Unpacking PBP ..\game\NPJJ00307\USRDIR\CONTENT\EBOOT.PBP...

UNPACK_PBP ERROR: Could not get the input file size.

The game is tokimeki memorial 2. Its size is 2241040KB.

This game also includes __sce_discinfo file in CONTENT directory (attached file). I don't know but It might be help for deviding data.

__sce_discinfo.zip

has207 commented 2 months ago

thanks for the report, I'll check it out

has207 commented 2 months ago

This game is 5 discs, amazing haha I've only tested up to 4 disc games, and I think the code had some assumptions about at most 4 discs in the package, so this may be the problem..

Tokman5 commented 1 month ago

I had encountered the same issue about the same game(Tokimeki Memorial 2). Because its size exceeded the range of 32bit signed integer, I needed to make some changes for variable type and functions (check my commit https://github.com/Tokman5/psxtract/commit/8756a60bfbbc19d915ff2b5b72fa3354b39e36d3 ). After doing that, converting the game was done successfully and the md5 hashes of all 5 discs matched the ones in redump.org.

has207 commented 1 month ago

very cool, @Tokman5 do you want to send a pull request? I can merge your changes and make a new release