kippykip / sbitools Goto Github PK
View Code? Open in Web Editor NEWConversion between Sony PlayStation .SBI LibCrypt files
License: The Unlicense
Conversion between Sony PlayStation .SBI LibCrypt files
License: The Unlicense
I was trying to convert to singletrack the game "Breath of Fire IV (USA)" from latest Redump set. It contains:
Breath of Fire IV (USA) (Track 1).bin
Breath of Fire IV (USA) (Track 2).bin
Breath of Fire IV (USA).cue
Cue file content:
FILE "Breath of Fire IV (USA) (Track 1).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
FILE "Breath of Fire IV (USA) (Track 2).bin" BINARY
TRACK 02 MODE2/2352
INDEX 01 00:00:00
Drag and drop "Breath of Fire IV (USA).cue" to "singletrack.bat" generates the files:
Breath of Fire IV (USA).bin
Breath of Fire IV (USA).cue
Resulting cue file content:
FILE "Breath of Fire IV (USA).bin" BINARY
TRACK 1 MODE2/2352
INDEX 1 00:00:00
INDEX 1 61:00:63
The resulting Cue file format is not valid, track 2 is missing, and does not load in many programs (CDMage for example). They give error in index statement.
The more correct format to output such a CUE file would be:
FILE "Breath of Fire IV (USA).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
TRACK 02 MODE2/2352
INDEX 01 60:58:63
Best regards.
I have found SBITools very helpful for converting redump quality images into CCD format for ODEs.
However converting an entire repository of 700+ CD ROM images into CCD format is a bit cumbersome to perform by hand.
Can you implement support for batch image processing in cue2ccd?
I've run across a possible issue with handling of cue files for a very small number of PSX games, while prepping my collection for use with both emulators and PS-IO.
Using the game Constructor (Europe) as an example, the ReDump cue is:
FILE "Constructor (Europe) (En,Fr,De,Es) (Track 1).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
FILE "Constructor (Europe) (En,Fr,De,Es) (Track 2).bin" BINARY
TRACK 02 MODE2/2352
INDEX 00 00:00:00
INDEX 01 00:02:00
Using something like binmerge against the ReDump split files creates a bin file that matches the Total CRC on the ReDump page, and produces this cuesheet:
FILE "Constructor (Europe).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
TRACK 02 MODE2/2352
INDEX 00 18:07:34
INDEX 01 18:09:34
Using SBITools against the ReDump split files creates a img file that matches the Total CRC on the ReDump page, however it produces this cuesheet instead:
FILE "Constructor (Europe).img" BINARY
TRACK 1 MODE2/2352
INDEX 1 00:00:00
TRACK 2 MODE2/2352
INDEX 0 18:07:34
TRACK 2 MODE2/2352
INDEX 1 18:07:34
So far, I've noted this behavior in:
Constructor (EU)
Perfect Assassin (EU)
Street Fighter Alpha 2 (EU)
Street Fighter Collection (Disc 2) (EU)
I can't create a .ccd file because everytime this message appears. Tested on Win 7 and 10 with/without Admin.
Log:
SBITools v0.3.1 - http://kippykip.com
Exporting to: 'CCD\Spyro.SUB'.
Creating CCD file
Writing CCD headers
Writing CCD Entries
Writing TRACK info
Done writing CCD!
Copying image (This will take a moment)
Creating modified CUE
Done writing CUE!
Generating blank .SUB with psxt001z
LibCrypt patch 'Spyro.lsd' was found! Patching subchannel...
Error loading subchannel!Drücken Sie eine beliebige Taste . . .
When using For Files with Sbitools to go into sub folders and process files, i'd end up with a new explorer instance opening up a folder with the converted files once the current disc completed processing. I was wondering if that behaviour could be stopped?
Received the below error using the CUE2CCD batch on South Park Rally [SLES-02352]
CUE sheet matches the one on ReDUMP.org: http://redump.org/disc/29574/
Running this through SINGLETRACK in advance, the generated CUE sheet has:
TRACK 45 AUDIO INDEX 0 45:03:61 INDEX 1 45:05:61 INDEX 1 45:14:23 TRACK 47 AUDIO INDEX 0 45:20:01 INDEX 1 45:22:01
I suspect the problem is with the cue sheet rather than SBITools, but I'm just looking to confirm that.
Can you please add support to TOC/BIN? It's like a CUE file but it also supports subchannel data like CloneCD. Unlike CloneCD which uses 3-4 files to burn in a CD, TOC/BIN only needs 2 to do the same job.
The following cue file is declared invalid in SBITools. similar cue files also have problems. Common thread appears to be a single binary with multiple indexes
CATALOG 0000000000000
FILE "Dark Legend (USA) (Track 01).bin" BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00
FILE "Dark Legend (USA) (Track 02).bin" BINARY
TRACK 02 AUDIO
INDEX 00 00:00:00
INDEX 01 00:01:74
FILE "Dark Legend (USA) (Track 03).bin" BINARY
TRACK 03 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 04).bin" BINARY
TRACK 04 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 05).bin" BINARY
TRACK 05 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 06).bin" BINARY
TRACK 06 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 07).bin" BINARY
TRACK 07 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 08).bin" BINARY
TRACK 08 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 09).bin" BINARY
TRACK 09 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 10).bin" BINARY
TRACK 10 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 11).bin" BINARY
TRACK 11 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 12).bin" BINARY
TRACK 12 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 13).bin" BINARY
TRACK 13 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 14).bin" BINARY
TRACK 14 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 15).bin" BINARY
TRACK 15 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 16).bin" BINARY
TRACK 16 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 17).bin" BINARY
TRACK 17 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 18).bin" BINARY
TRACK 18 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 19).bin" BINARY
TRACK 19 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 20).bin" BINARY
TRACK 20 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 21).bin" BINARY
TRACK 21 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 22).bin" BINARY
TRACK 22 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 23).bin" BINARY
TRACK 23 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 24).bin" BINARY
TRACK 24 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 25).bin" BINARY
TRACK 25 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 26).bin" BINARY
TRACK 26 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE "Dark Legend (USA) (Track 27).bin" BINARY
TRACK 27 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
INDEX 02 00:10:17
As Redump.org don't offer an easy way to download all the .lsd files in their database the way that they offer for .sbi files, can you please share the script by qnorsten that you mentioned in the README can download all the .lsd files from Redump.org
This utility became very useful for converting the Sega Saturn's BIN/CUE images to CCD/IMG/SUB/CUE to properly use with the Saturn's ODE emulator Fenrir-ODE (loading games through SDCard and over Network with the Wifi WIP). The only downbreak it's about the created CUE file. The information of the "TRACK MODE" at the first track (data track MODE1/2352) it's not declared. The workaround it's manually opening the created CUE file with some text editor and adding the kind for the TRACK 1. Details below:
Command:
sbitools.exe -cue2ccd "Alien Triology (USA).cue"
Behavior:
The cue file it's generated like bellow:
FILE "Alien Trilogy (USA).img" BINARY
INDEX 1 00:00:00
TRACK 2 AUDIO
INDEX 0 11:58:50
INDEX 1 12:00:50
...
Expected:
FILE "Alien Trilogy (USA).img" BINARY
TRACK 1 MODE1/2352
INDEX 1 00:00:00
TRACK 2 AUDIO
INDEX 0 11:58:50
INDEX 1 12:00:50
...
Regards
Possibly because the code to recognize the file is:
"ElseIf(FileType(BaseName + ".lsd"))"
"LSDToSub(BaseName:String + ".lsd", Subchannel)"
instead of:
"ElseIf(FileType(CUE.BinPath + BaseName + ".lsd"))"
"LSDToSub(CUE.BinPath + BaseName:String + ".lsd", Subchannel)"
The same for .sbi and the fuctions to copy bin to ccd folder and rename to img.
Hi there,
I'm trying to launch sbitools.exe but the prompt says that it is not a known command.
Can someone explain to me step by step what to do to make it work ?
Thanks a lot
I got regular Exception_Access_Violation errors while running SBITools on large group of folders. These exceptions would stop the batch processing until clicked, slowing down the process. I wasn't able to detect any issues with the conversions that were stopped by this error though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.