Jump to content
LaunchBox Community Forums

Bulk Convert .cue/.bin (or files other than .bin) to .chd 1.02

   (5 reviews)

3 Screenshots

About This File

Bulk Convert .cue/.bin (or files other than .bin) to .chd

Using MAME’s chdman.exe (“Compressed Hunks of Data (CHD) Manager”, included with MAME), this plugin will convert CD based game files to a single .chd file in your selected Platform.  Example:

Before    Loom (USA).cue     Loom (USA).ccd     Loom (USA).img     Loom (USA).sub
After       Loom (USA).chd
Before    Arctic Thunder.cue     Arctic Thunder.bin
After       Arctic Thunder.chd

 

If you are looking to convert gdi or iso files (as well as cue) to CHD, see this plugin instead.

Bulk Convert cue/gdi/iso files to CHD - Third-party Apps and Plugins - LaunchBox Community Forums (launchbox-app.com)

 

Why convert?

 

  • You end up with just a single file per game
  • A CHD file is, well… compressed. Resulting in less storage space requirements
    • Arctic Thunder.cue + .bin = 601MB    Arctic Thunder.chd = 466MB
    • Spider-Man 2: Enter Electro = 684MB    CHD format = 318MB
  • Because we can and it's easy to do


Requirements

  • This plugin file
  • chdman.exe (included with MAME)
  • Game rom-sets that include a .cue file. (Loom (USA).cue, Arctic Thunder.cue etc.)

 

What happens after converting?
After successfully creating a CHD Image, the games application path will be changed to the new .chd file.

Also, after the files have been converted you have the option to 

  • Leave the old files in place (default)
  • Move the old files to a separate [backup] folder
  • Delete the old files
     

 

Installing the plugin

  1. Download the plugin
  2. Unblock “cue2chd (v1.00).zip” by right clicking the file and checking “Unblock” and clicking “OK”.
  3. Open the zip file and copy the contents (1 folder containing 1 file) into /LaunchBox/Plugins/
    • i.e. G:/LaunchBox/Plugins/cue2chd/cue2chd.dll

image.png.85087847d85ef26c747b022235f9e1a3.png

 

Using the plugin

  1. Start LaunchBox
  2. Select Tools, Convert cue to chd
  3. Select a Platform
  4. Click Convert
  5. (Optional)
    • Check Delete old files when complete 
      • This will permanently delete the old files (.cue, .bin, .img etc) after successfully converting them to .chd.
    • Check Move old files when complete
      • This will move the old files (.cue, .bin, .img etc) after successfully converting them to .chd to a folder you specify [for ‘backup’].
         

If you do not select Delete or Move, all files will remain in their current location along with the newly created .chd file. 

 

 If you opt to delete the old files and later want/need to convert the CHD files back to .cue etc., you can use chdman.exe to "reverse the process".  The command line is:

chdman.exe extractcd -i “file_name.chd” -o “file_name.cue”

 

 

Special thanks to @faeran for coming up with the idea for this plugin and his support and testing.

 As always, all comments and suggestions are welcome.


What's New in Version 1.02   See changelog

Released

Version 1.02 (April 23, 2022)

Fixed: Error not appearing if chd file was not created.

  • Like 15
  • Thanks 7
  • Unusual Gem 8

User Feedback

Recommended Comments



This is a great plugin idea, in fact it is such a great idea that it has reminded me that i still need to convert the bin and cues for 3 more platforms.  This plugin will make that process much easier!

  • Like 1
Link to comment
Share on other sites

I have failed to do my homework and went straight to work with this plugin and It worked just as stated and completed my sega cd set of 136 games in about 3 hours with a somewhat elderly and low end when new 2013 cpu (amd fx-6350) but i failed to check chd compatibility with either emulator i use ( kega fusion or retroarch with genesis plus gx core) so i i have screwed up. The question for the moment is, Is there away to return the game application path back to the original cue files or should i just delete from launchbox and reimport? NEXT TIME, i will look both ways before crossing the street lol

btw 63.5GB down to 31.1GB

edit...I had no bios setup for retroarch genesis plus gx core ..this core is compatible with chd.   my error.

Edited by Mainiack
  • Game On 1
Link to comment
Share on other sites

26 minutes ago, Mainiack said:

I have failed to do my homework and went straight to work with this plugin and It worked just as stated and completed my sega cd set of 136 games in about 3 hours with a somewhat elderly and low end when new 2013 cpu (amd fx-6350) but i failed to check chd compatibility with either emulator i use ( kega fusion or retroarch with genesis plus gx core) so i i have screwed up. The question for the moment is, Is there away to return the game application path back to the original cue files or should i just delete from launchbox and reimport? NEXT TIME, i will look both ways before crossing the street lol

btw 63.5GB down to 31.1GB

edit...I had no bios setup for retroarch genesis plus gx core ..this core is compatible with chd.   my error.

624123671_Screenshot2022-04-03033239.thumb.png.883e3202e05f98ae06f421f6c57f8786.png

Edit- I see you just edited your post 👍

Edited by Rlad
Link to comment
Share on other sites

I really could have used this a month ago. Thanks for making this! Great idea!

Edited by Dan Patrick
  • Like 1
Link to comment
Share on other sites

@JoeViking245 Hey Joe, You do some awesome stuff for LB, thank you. I got a couple questions for ya.

1. Are there any issues that you have found after converting when using the bezel project? 

2. Do things work well if the roms are stored on NAS (using mapped drives)? I know LB will NOT move files when using the Cleanup tool

3. Will is rename the chd file after the cue file or the iso file? (I got some messed up 3DO roms where cue files are named correctly, but calling iso files from within the cue, without countries suffix)

Edited by The Papaw
Link to comment
Share on other sites

Thank you!  I try. :D

26 minutes ago, The Papaw said:

1. Are there any issues that you have found after converting when using the bezel project?

I've only used the Bezel Project for MAME Arcade Machines.  But for this (and I assume others) the bezels are loaded per the launched rom (.cue) filename.  (Similar to question #3)

 

32 minutes ago, The Papaw said:

2. Do things work well if the roms are stored on NAS (using mapped drives)? I know LB will NOT move files when using the Cleanup tool

Good question.  I have no idea [how NAS using mapped drives work].  If it helps answer any, the plugin gets the games Application Path (the path pointing to the .cue file) and then converts it (if it's a relative path) to an absolute path.  Then, after successful converting, the games Application Path gets changed (updated) to the full (absolute) path of the [new] .chd file.  So if the App Path was "Games\3DO\theGame\theGame.cue", it will now be "D:\LaunchBox\Games\3DO\theGame\theGame.chd".

 

47 minutes ago, The Papaw said:

3. Will is rename the chd file after the cue file or the iso file?

Definitely after the .cue filename.  That's the name the emulator is looking for and had [presumably] worked. ;)

  • Thanks 1
Link to comment
Share on other sites

7 minutes ago, JoeViking245 said:

Thank you!  I try. :DI've only used the Bezel Project for MAME Arcade Machines.  But for this (and I assume others) the bezels are loaded per the launched rom (.cue) filename.  (Similar to question #3)

Good question.  I have no idea [how NAS using mapped drives work].  If it helps answer any, the plugin gets the games Application Path (the path pointing to the .cue file) and then converts it (if it's a relative path) to an absolute path.  Then, after successful converting, the games Application Path gets changed (updated) to the full (absolute) path of the [new] .chd file.  So if the App Path was "Games\3DO\theGame\theGame.cue", it will now be "D:\LaunchBox\Games\3DO\theGame\theGame.chd".

 

Definitely after the .cue filename.  That's the name the emulator is looking for and had [presumably] worked. ;)

I'm going through my messed up 3D files and fixing them now. After that, I will see what happens with a copy of that and report back to ya concerning the bezels and the NAS. Keep your toes crossed :P

  • Like 1
Link to comment
Share on other sites

2 hours ago, The Papaw said:

I'm going through my messed up 3D files and fixing them now

If the .cue's are named correctly, the plugin should just work.  Regardless of the .iso filenames.  The plugin parses the .cue file for the associated files for that game, no matter how they're named.  

So if you had "my-properly-named-file.cue" and "messed-up-name.iso", as long as the .cue includes "messed-up-name.iso" inside of it, you'll end up with "my-properly-named-file.chd".

But yes!  Keep me posted.  Toes crossed.

  • Thanks 1
Link to comment
Share on other sites

Just now, JoeViking245 said:

If the .cue's are named correctly, the plugin should just work.  Regardless of the .iso filenames.  The plugin parses the .cue file for the associated files for that game, no matter how they're named.  

So if you had "my-properly-named-file.cue" and "messed-up-name.iso", as long as the .cue includes "messed-up-name.iso" inside of it, you'll end up with "my-properly-named-file.chd".

But yes!  Keep me posted.  Toes crossed.

I had just finished all the fixes and just now started the conversion process. I can confirm the utility is moving files from a NAS folder to a different NAS folder :D

One thing, not sure if you can do anything about it, but as I am trying to type this, each time a new game starts converting, it take the attention away from here and I have to keep clicking back on the forums to type again.

I will let you know how it does with the bezels after they are finished.

Link to comment
Share on other sites

12 minutes ago, The Papaw said:

One thing, not sure if you can do anything about it, but as I am trying to type this, each time a new game starts converting, it take the attention away from here and I have to keep clicking back on the forums to type again.

I probably could set it to run in the background.  But it's a process that does take time and CPU.  Umm... mainly the Converting. Not as much the programming. ;) 

For me, typically with something CPU intensive, I like to keep that part in the forefront (vs 'hiding' the process) when I write my apps. 

But ya, this is probably something worth looking into for 2.0.  Until then, a quick pressing of Alt+Tab will get you back to where you need to be. :D

  • Like 1
Link to comment
Share on other sites

Great NEWS! I converted about 200 3DO Interactive Multiplayer games, the pluggin worked great, moved files fine and bezels are working as expected. Concerning changing it to run in background?  I agree with ya, maybe you can add a option for the user or something, doesn't make much difference really.

Added note: My 3DO Interactive Multiplayer rom folder went from 114GB to 79GB. Awesome HDD space saving!!!

Thanks for creating it.

Edited by The Papaw
  • Like 1
Link to comment
Share on other sites

53 minutes ago, The Papaw said:

maybe you can add a option for the user

No.  It's all or nothing.  But I'm thinking about it (which is a good sign).  

Awesome to hear that it worked great!!!  I like seeing those excellent space savings too!

  • Unusual Gem 1
Link to comment
Share on other sites

@JoeViking245 Hey Joe, how does it handle games with multiple discs? Does it put them each into a chd (disc 1, disc 2, disc 3, etc.) or combine them all together in a single chd.

I suppose same question about multiple versions as well (USA, Japan, Europe or Rev 1, Rev 2)

I am just now getting back on PC and looking more into things and noticed I still have a few that didn't seem to convert.

Edited by The Papaw
Link to comment
Share on other sites

10 minutes ago, The Papaw said:

@JoeViking245 Hey Joe, how does it handle games with multiple discs? Does it put them each into a chd (disc 1, disc 2, disc 3, etc.) or combine them all together in a single chd.

I suppose same question about multiple versions as well (USA, Japan, Europe or Rev 1, Rev 2)

I am just now getting back on PC and looking more into things and noticed I still have a few that didn't seem to convert.

Why convert? Because "You end up with just a single file per game".

If all converts well, you will end up with the same number of .chd files as you have .cue files.  (assuming all your cue files are referenced as games in LaunchBox.)

If you open a .cue file with any text editor, you can see all the associated files that correspond to that game.  That game, being the filename of the .cue file.

MYgame.cue + MYgame_Disk1.bin + MYgame_Disk2.bin + MYgame_Disk3.bin  =  one game ("MYgame")

MYgame.chd  =  one game ("MYgame")

 

Same goes for multiple versions.  If they have their own .cue, they'll get their own .chd.  Unless they're Additional Apps.  This plugin doesn't scan the Additional Apps.

  • Thanks 1
Link to comment
Share on other sites

@JoeViking245 Hey there Mr. Joe: Have you tried your plugin on PS1 games? I was thinking about making a copy of my PS1 rom folder (up close to a TB though) and giving it a whirl.

From what I am reading, using RetroArch and the Duckstation core, I think the core supports chd's. Couldn't find docs on the core in RA docs, but found some reddit posts that said it supported chd's

Any thoughts, opinions? I would love to know how much hdd space it might save.

Edited by The Papaw
Link to comment
Share on other sites

46 minutes ago, The Papaw said:

Have you tried your plugin on PS1 games

Yes.  In fact that's what I was using to test it with.  Though I had to convert them back from chd to bin/cue.  And of course it worked great for both of the games I have.  It went from 0.99Gig to 499MB (for the 2 games).

I've never tried DuckStation in RA. Just the standalone.

  • Thanks 1
Link to comment
Share on other sites

Just now, JoeViking245 said:

Yes.  In fact that's what I was using to test it with.  Though I had to convert them back from chd to bin/cue.  And of course it worked great for both of the games I have.  It went from 0.99Gig to 499MB (for the 2 games).

I've never tried DuckStation in RA. Just the standalone.

Ya mind me asking why ya had to convert them back?

Link to comment
Share on other sites

1 hour ago, The Papaw said:

why ya had to convert them back?

I have zero cue/bin/whatever files on my cab.  Everything was converted to chd several years ago.  I figured since I was writing this plugin, I probably should at least test it.  So I took the 2 smallest chds I have (for 'faster' testing) and converted them [back] to cue/bin. Then ran my tests [converting them to .chd]. :D

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

6 minutes ago, JoeViking245 said:

I have zero cue/bin/whatever files on my cab.  Everything was converted to chd several years ago.  I figured since I was writing this plugin, I probably should at least test it.  So I took the 2 smallest chds I have (for 'faster' testing) and converted them [back] to cue/bin. Then ran my tests [converting them to .chd]. :D

 

Gotcha, just wanted to make sure there wasn't an issue. Thanks for all your help Joe, much appreciated.

Link to comment
Share on other sites

@JoeViking245 Hey Joe, I had a few issues converting all my PS1 roms (I think it was more of how LB had things scanned in) with multiple discs and versions, but I got it all cleaned up and finished. The plugin is AMAZING!!! It reduced the folder by over 350GB!! That is a huge recovery!

Thanks again for sharing it!

Link to comment
Share on other sites

5 minutes ago, The Papaw said:

I had a few issues converting all my PS1 roms (I think it was more of how LB had things scanned in) with multiple discs and versions

Do you think it's an issue that others will have too?  What's the scenario?  Multiple disks shouldn't be an issue. Assuming they're all listed in the .cue file and your setup pointed to the cue file (rather than pointing to disk 1, disk 2, etc., separately).  If you had multiple versions listed as Additional Apps, I posted an update yesterday that will account for those.

If the multiple versions share .bin (or whatever) files, that would be an issue.  If that's the case, that can be fixed in the plugin.

  • Thanks 1
Link to comment
Share on other sites

N

6 minutes ago, JoeViking245 said:

Do you think it's an issue that others will have too?  What's the scenario?  Multiple disks shouldn't be an issue. Assuming they're all listed in the .cue file and your setup pointed to the cue file (rather than pointing to disk 1, disk 2, etc., separately).  If you had multiple versions listed as Additional Apps, I posted an update yesterday that will account for those.

If the multiple versions share .bin (or whatever) files, that would be an issue.  If that's the case, that can be fixed in the plugin.

Not entirely sure what happened to be honest. I had some games that had like 3 or 3 discs. It might have converted 1 & 2 but not 2 and 4. Sometimes it might only get 1 disc. Some games that had multiple versions that were names  like "Tomb Raider (USA) (v1.0)", "Tomb Raider (USA) (v1.1)", "Tomb Raider (USA) (v1.2)". would only convert the version that LB was pointing too.

Problem is, these roms were scanned in a few yrs back so the xml file could have been screwy, ya know?

Edited by The Papaw
Link to comment
Share on other sites

18 minutes ago, The Papaw said:

would only convert the version that LB was pointing too.

Ya, it will only convert the games that you have imported into LaunchBox.  And from there, it only looks for game application paths that point to a .cue file.  If it points to a file with any other extension, it skips to the next game.

  • Thanks 1
Link to comment
Share on other sites

I wouldn't put much into it and see if other folks report anything back. I think most of my issues were related more to the xml. 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...