|
Post by supersiggy on Jun 28, 2007 8:46:58 GMT -5
Dear pSX developer, dear pSX friends,
I am a great fan of the pSX emulator and I've been using nothing else since I found it. I am especially fond of pSX's own compression format cdz. I have compressed half my games to cdz, but now I'm really too lazy to do the rest, as I own a complete r*m set of NTSC-U and an almost complete set of Pal r*ms.
I think that it would be totally awesome if there was a way to batch convert cd images to cdz. It would make handling cdzs way easier.
I would be very happy if you would consider this feature, or even better: write a small programm (console based, I wouldn't care) that would do this.
I would even be incredibly delighted if somneone here would say: "you stupid n00b, there is already a way to do this...".
Thank you all for reading. I'm waiting for your comments and suggestions and maybe a hot debate.
Kind regards
supersiggy
|
|
|
Post by Ultima on Jun 28, 2007 8:52:06 GMT -5
You can create a batch script that uses cdztool.exe, but that's as best as you can do.
|
|
|
Post by supersiggy on Jun 28, 2007 9:12:31 GMT -5
hi Ultima, thanks for your fast reply. I have already checked out some tutz about batching. I am completely new to this, could you give me an idea how i could make such a script?
Thank you very much
|
|
|
Post by Ultima on Jun 28, 2007 9:14:12 GMT -5
Dunno, that depends on what you files are named like, and what the file types are. And stuff.
|
|
|
Post by supersiggy on Jun 28, 2007 9:28:20 GMT -5
The file types vary from clone cd images (img,sub,cue) to bin,cue files.
My Files are named like this: Game Title [NTSC-U] [SLUS-xxxx].
I got as far as to create a list of normal cdztool commands, as I would type them in the console.
all I need to know is, how I make the batch file work, so that it runs all tese commands one after another.
|
|
|
Post by supersiggy on Jun 28, 2007 10:00:32 GMT -5
lol, sorry about that stupid question... it is the basic purpose of batching to get commands to run one after another. Thanks anyway I figured it out myself. It worked quite fine.
A hint for users who would like to do the same: it is best to seperate cloneimages and bins to different folders. That way it all goes smoothly.
cheers, and have a nice day!
|
|
|
Post by Ultima on Jun 28, 2007 10:03:38 GMT -5
Batch scripting isn't my forte, though I can probably tell you how to do it using AutoIt script. I forgot to mention that directory structure is just as important, as it's annoying to make the scripts go recursively through directories. So leaving the directory flat, and having every single file being in the same directory (no subdirectories) would make things much easier. Copy and paste this into a text file and call the file cdztool.au3. Get AutoIt and install it. Place cdztool.au3 and cdztool.exe in the same directory as the images are in, and run cdztool.au3. It *should* work, though I must admit, I haven't actually tested it. Just in case, I guess you should try copying 2 or 3 games into another directory, and test the script on that directory. Edit: Updated script; now supports MDF/MDS, and stops relying on standard AutoIt library... The following is the original (old) script:
|
|
|
Post by supersiggy on Jun 28, 2007 12:01:25 GMT -5
okay that is way more sophisticated than the way I did it...
I simply generated a list of bins in one directory using directory lister. Than I used wordpad to add cdztool at the beginning. than I copied the list to another text file and replaced the .bin extension with .cdz.
then I combined both lists, renamed the txt file to .bat and then it worked.
your method seems way more sophisticated, and I'll give it a try for the next set of psx games.
P.S.: This is my first batch file, and it actually worked fine. Very handy stuff this batch scripting. I could have saved hours, maybe days if only I knew this was so easy.
Thank you Ultima for all your help!
|
|
|
Post by supersiggy on Jun 28, 2007 12:49:46 GMT -5
I've tried your script and it worked!
It only had problems with .iso and .mdf/.mds files. But that's a problem with cdztool.exe.
I recommend that pSX author puts this script into the next release. I am sure there are more people out there who would love to have to see that feature.
For the 4th time: thank you Ultima. And thank you pSx author!
|
|
|
Post by Ultima on Jun 28, 2007 16:03:32 GMT -5
No problem. My script was only a quick-and-dirty solution, and I myself don't think it's worthy of being included in any release (not to mention the fact that AutoIt would need to be installed on any computer that wants to use the script). ISO files don't work with cdztool (I'd forgotten that), and pSX doesn't support Alcohol images. In short, they can't be compressed.
|
|