Verify your PSX/PS1 discs before posting

held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Verify your PSX/PS1 discs before posting

Unread post 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
User avatar
pgimeno
Top Contributor
Posts: 669
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 246 times
Been thanked: 208 times

Re: Verify your PSX/PS1 discs before posting

Unread post by pgimeno »

Until we have SBI support, LibCrypt games *must* be patched versions, and these are not listed in redump.org.
softtest9
Posts: 158
Joined: Thu May 28, 2020 7:13 pm
Has thanked: 3 times
Been thanked: 21 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
FPGAzumSpass
Core Developer
Posts: 380
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 383 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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 :)
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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 ?
User avatar
pgimeno
Top Contributor
Posts: 669
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 246 times
Been thanked: 208 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
User avatar
pgimeno
Top Contributor
Posts: 669
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 246 times
Been thanked: 208 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
Jegriva
Posts: 81
Joined: Wed Mar 10, 2021 10:06 pm
Has thanked: 49 times
Been thanked: 9 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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?
User avatar
pgimeno
Top Contributor
Posts: 669
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 246 times
Been thanked: 208 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
FPGAzumSpass
Core Developer
Posts: 380
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 383 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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
FPGAzumSpass
Core Developer
Posts: 380
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 383 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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"
breiztiger
Top Contributor
Posts: 427
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 23 times
Been thanked: 93 times

Re: Verify your PSX/PS1 discs before posting

Unread post by breiztiger »

or chd from tosec set ;-)
CPC-Power Staff
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
skyfire
Posts: 5
Joined: Wed May 27, 2020 9:49 pm
Has thanked: 4 times
Been thanked: 2 times

Re: Verify your PSX/PS1 discs before posting

Unread post by skyfire »

Will single Redump CHD files work with the core? Or should I stick with the bin/cue versions?
zakk4223
Posts: 270
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 107 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
breiztiger
Top Contributor
Posts: 427
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 23 times
Been thanked: 93 times

Re: Verify your PSX/PS1 discs before posting

Unread post by breiztiger »

@zakk4223 thanks in advance
CPC-Power Staff
FPGAzumSpass
Core Developer
Posts: 380
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 383 times

Re: Verify your PSX/PS1 discs before posting

Unread post 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.
Post Reply