RupertAvery / PSXPackager

A utility to convert Playstation disc images in various formats to PBP format and back
Other
230 stars 15 forks source link

Cannot decompress PBP back to Bin/Cue #2

Closed bezza191 closed 3 years ago

bezza191 commented 3 years ago

When decompressing the resulting file appears but with zero size

RupertAvery commented 3 years ago

Hi, I've just tested this both with a single input and batch folder input and it seems to be working, at least with PBPs I have (also compressed by PSXPackager)

It generates a BIN + CUE.

Can you elaborate on the circumstances? Is the PBP from another source i.e. not created by PSXPackager?

bezza191 commented 3 years ago

Hmm well that's odd

I used the most recent release version of the tool (from January) and compressed to PBP from an existing bin/cue of R-Type Delta (used mainly because I have previously compressed it to PBP and been fine)

On testing decompression, it generated a BIN file only, with the correct name but a size of zero

I tried using -o to set an output folder (which produced no file at all) and without -o got only the blank file in the same working directory as the PBP and program

As an aside, was there ever any progress on implementing multi disc and CHD support as well? It seems that the community has been crying out for a tool that supports PBP-BIN/CUE-CHD conversion for some time, and your work seems promising

RupertAvery commented 3 years ago

For multi-support, there is code that should support it, but I haven't gotten around to adding it to the command line and testing it. Also I haven't yet figured out how to add multidisc+audio tracks if there is ever a case for that.

For CHD support, it would probably be easy to add a step that calls chdman.exe, so it would require converting to BIN+CUE in the interim.

I can't seem to replicate your issue. Is it specific to R-Type Delta? I've found a copy of it with BIN+CUE and compressed it to PBP, and compressed it back, and it generated a BIN+CUE with the same size as the original.

There may be something else going on though, perhaps some error that is being thrown and not shown in the Console.

bezza191 commented 3 years ago

Appreciate you looking into it

I'm not near my PC for a couple of days so will have to look into it when I'm back near it.

May be a peculiarity with that one specific image or something. Will do some more testing and get back to you

RupertAvery commented 3 years ago

Hey, I'm adding support for multi-disc PBPs. The way I've figured is to use the M3U file format.

I don't know how to test multi-track cues in multi-disc PBP.

Lunar Silver Star Story has 2 discs and has multi-tracks for audio. I was able to load Disc 2 from the generated PBP in epsxe and play the intro (interestingly, it also has the playable intro sequence game, before it asks to switch to disc 1.

RupertAvery commented 3 years ago

There is a new release with multi-disc PBP support.

https://github.com/RupertAvery/PSXPackager/releases/tag/v1.2

bezza191 commented 3 years ago

Appreciate you looking into it

I'm not near my PC for a couple of days so will have to look into it when I'm back near it.

May be a peculiarity with that one specific image or something. Will do some more testing and get back to you

Turned out to be user error on my part, I think

I hadnt noticed that the PBP had changed name slightly from the Bin/Cue image - it removed (USA) from the end of the name - but didnt say anything or report an error when being fed a PBP name that didnt exist. In the new release from today that instead showed an error which made me realise where the fault was

Thanks for your work - Ill try out the multi disc and ket you know if I find anything