Page 1 of 1

Verify your PSX/PS1 discs before posting

Posted: Sun Nov 28, 2021 8:41 am
by held
The only proper versions you should be using are listed at www.redump.org.

Those discs are verified by checking multiple dumps of multiple discs of the same game.
You can then check your own dump against the MD5/SHA1 checksums/files listed there.

If they match, you are good to go.

If they do NOT match: abort, otherwise you are just wasting everyone's time :oops:


Windows: https://raylin.wordpress.com/downloads/ ... m-utility/
Linux/Mac: use the command line
  • md5sum --check myfile.md5
  • sha1sum --check myfile.sha1

Re: Verify your PSX/PS1 discs before posting

Posted: Sun Nov 28, 2021 12:01 pm
by pgimeno
Until we have SBI support, LibCrypt games *must* be patched versions, and these are not listed in redump.org.

Re: Verify your PSX/PS1 discs before posting

Posted: Sun Nov 28, 2021 12:15 pm
by softtest9
Just a reminder that the dev has requested that we don't report bugs _at all_ at this stage of development. Multi-bin images (which Redump uses) are also not supported yet if I recall.

Re: Verify your PSX/PS1 discs before posting

Posted: Sun Nov 28, 2021 3:08 pm
by FPGAzumSpass
Yes only single track for now.
Multitrack often still work, especially if the other tracks are only audio.

SBI support will come at a later point. Need it for my PAL games :)

Re: Verify your PSX/PS1 discs before posting

Posted: Sun Nov 28, 2021 4:33 pm
by held
softtest9 wrote: Sun Nov 28, 2021 12:15 pm Just a reminder that the dev has requested that we don't report bugs _at all_ at this stage of development. Multi-bin images (which Redump uses) are also not supported yet if I recall.
Correct, but we do have the compatibility thread where people can report their findings.
pgimeno wrote: Sun Nov 28, 2021 12:01 pm Until we have SBI support, LibCrypt games *must* be patched versions, and these are not listed in redump.org.
Are we talking old scene releases or is there a generic patcher out there ?

Re: Verify your PSX/PS1 discs before posting

Posted: Mon Nov 29, 2021 10:31 am
by pgimeno
held wrote: Sun Nov 28, 2021 4:33 pm Are we talking old scene releases or is there a generic patcher out there ?
Cracks, old or new. I'm not aware of a generic patcher, especially because LibCrypt has changed a lot between versions and every game used it differently.

Re: Verify your PSX/PS1 discs before posting

Posted: Mon Nov 29, 2021 10:33 am
by pgimeno
FPGAzumSpass wrote: Sun Nov 28, 2021 3:08 pm SBI support will come at a later point. Need it for my PAL games :)
Great to know that you have it planned! Thanks.

By the way, regarding accuracy, I think that Mednafen has the record of accuracy in a free software emulator. It even includes support for error correction in the CD driver. It may be worth looking into the sources for some details.

Re: Verify your PSX/PS1 discs before posting

Posted: Mon Nov 29, 2021 5:37 pm
by held
pgimeno wrote: Mon Nov 29, 2021 10:31 am Cracks, old or new. I'm not aware of a generic patcher, especially because LibCrypt has changed a lot between versions and every game used it differently.
Yeah, that's an endless pit of variability. I wonder how many bad cracks are still floating out there too.
However I did find this list: https://psxdatacenter.com/sbifiles.html which seems to be an attempt to list every LibCrypt game.

Re: Verify your PSX/PS1 discs before posting

Posted: Wed Dec 01, 2021 6:39 pm
by Jegriva
I have a lot of dumps made way back with those pesky multibin files. Do I have to redump them in a simple single bin?

Re: Verify your PSX/PS1 discs before posting

Posted: Thu Dec 02, 2021 1:21 am
by pgimeno
Depends. I'm not sure but it's likely that the final core will accept multi-file BIN/CUE without joining them. As of now, the WIP core can only work with one file. In some cases, specifying the file for the first track suffices.

So if you want to check it out now, yes, you need to merge; otherwise wait until we know whether the final core will need them joined or not. Judging by the MegaCD, which is able to work with multi-file images, I don't think it will be necessary to merge them.

Re: Verify your PSX/PS1 discs before posting

Posted: Thu Dec 02, 2021 5:51 am
by FPGAzumSpass
Final core will work with mult-bin + .cue

For now, just load the first track, for most games that's enough anyway as there is no CD music playback currently.

Re: Verify your PSX/PS1 discs before posting

Posted: Thu Dec 02, 2021 7:33 pm
by held
binmerge.sh: a bash based bin merger.

I searched but just couldn't find the post on vogons.org *sigh*
So I'll post Akuma's script here, I hope he doesn't mind :)

This merges bin files into one, and creates a new bin+cue sheet.
I think there needs to be a disclaimer attached, but i cant find it.

So use at own risk, I guess.

Code: Select all

#!/bin/bash
BINMERGE converter v1.00
Copyright (c) 2020 by Akuma under GNU General Public License 2.0

set -eo pipefail
OLDIFS=$IFS;IFS=$'\t\n'
trap "result" 0 1 2 3 15

result(){
  case $? in
      0) echo -e "\nSuccess";;
    100) echo -e "usage: ${0##*/} /path/to/cue-file";;
    101) echo "error: '$file' file not found";;
  esac
  echo
  IFS=$OLDIFS
}

to_time(){\
 printf "%02d:%02d:%02d" $(((10#$1/75)/60)) $(((10#$1/75)%60)) $((10#$1%75));}

to_frames(){ set ${1//:/ }; echo $(((60*10#$1+10#$2)*75+10#$3));}

getcuemode(){ grep -Po 'MODE./[0-9]{4}' "$1";}

getfilesize(){ stat -c%s "$1";}

mergecue(){ #cue-file
  local cue="$1" line framesize filesize frames=0 print
  echo "FILE \"merged.bin\" BINARY"
  cat "$cue"|while read line;do
    IFS=$' \t\r\n';set $line
    case "$1" in
        FILE) IFS='"';set $line
              framesize="$(getcuemode "$cue")";framesize="${framesize##*/}"
              filesize=$(getfilesize "$2")
              print=$frames
              frames=$((frames+(filesize/framesize)))
              continue
              ;;
       INDEX) print=$((print+$(to_frames $3)));;
      PREGAP) print=$((print+$(to_frames $2)));;
    esac
    echo "${line/??:??:??/$(to_time $print)}"
  done
  IFS=$'\t\r\n'
}

mergebin(){ grep -Po '".*"' "$1"|while read file;do echo "${1%/*}/$file"; done|xargs cat;}

checkfile(){ file="$1";[[ -f "$1" ]] || exit 101;}

[[ -f "$1" ]] || exit 100

cue="$(readlink -f $1)"; checkfile "$cue"

mergecue "$cue" > merged.cue
mergebin "$cue" > merged.bin

IFS=$OLDIFS

exit 0

Re: Verify your PSX/PS1 discs before posting

Posted: Fri Dec 03, 2021 5:35 am
by FPGAzumSpass
Again, there is no reason to merge your disks!
Don't expect any game to run, just because you merged your multi-bins into a single.

Please wait until multi-bin + .cue is supported.

I already see some bug reports of "my merged image doesn't work"

Re: Verify your PSX/PS1 discs before posting

Posted: Fri Dec 03, 2021 6:46 am
by breiztiger
or chd from tosec set ;-)

Re: Verify your PSX/PS1 discs before posting

Posted: Fri Dec 03, 2021 10:03 am
by held
FPGAzumSpass wrote: Fri Dec 03, 2021 5:35 am Again, there is no reason to merge your disks!
Don't expect any game to run, just because you merged your multi-bins into a single.

Please wait until multi-bin + .cue is supported.

I already see some bug reports of "my merged image doesn't work"
My bad, I posted it as anti-clutter, instead of the +700 files I now have about 47 bin+cue pairs.

Re: Verify your PSX/PS1 discs before posting

Posted: Sat Dec 04, 2021 4:59 am
by skyfire
Will single Redump CHD files work with the core? Or should I stick with the bin/cue versions?

Re: Verify your PSX/PS1 discs before posting

Posted: Sat Dec 04, 2021 8:01 am
by zakk4223
skyfire wrote: Sat Dec 04, 2021 4:59 am Will single Redump CHD files work with the core? Or should I stick with the bin/cue versions?
There is no CHD support. Assuming no one adds it when they also deal with cue file parsing, I will look into doing so. But only after development has settled down a bit.

Re: Verify your PSX/PS1 discs before posting

Posted: Sat Dec 04, 2021 8:18 am
by breiztiger
@zakk4223 thanks in advance

Re: Verify your PSX/PS1 discs before posting

Posted: Sat Dec 04, 2021 3:36 pm
by FPGAzumSpass
zakk4223 wrote: Sat Dec 04, 2021 8:01 am Assuming no one adds it when they also deal with cue file parsing, I will look into doing so
That would be great!

But i agree, it needs some time. First multibin/cue must work stable for most games.