New dreamcast dumping program (test please)

Post Reply
jamjam
Posts: 281
Joined: Mon Jun 08, 2026 1:26 am

New dreamcast dumping program (test please)

Post by jamjam »

Here's a work in progress commandline alternative to CDRWIN, specific to dumping dreamcast games. Do the trap disc as normal then use this instead. The main benefit is it reads in ranges, and if a read error is encountered it retries. Tries to avoid manual partial sector range hell Image

Features:
+ Dumps in sections to avoid redumping good sections later
+ Redumps sections until there's a match (thus the section is deemed good) or after certain number of passes
+ Detects if sections are already written to file and doesn't try to read those sections again (resume skip)
+ Saves read hashes to file, for matching sections from different program executions (resume pickup)
+ When it is deemed that all sections are dumped correctly, creates dense.bin as the input for ice.exe

Usage: DCdumper.exe drive_letter [options]

Code: Select all

[options]
-h      - This help.

-c#     - Cut-off: After which disc is dumped in one lump instead of sections
          Min: 44990 (all at once)  Max: 549150 (no cut-off)  Default: 549150

-dt -df - Delete temporary files: Delete sections and hashes after creating dense.bin
          Default true

-ft -ff - Fake reads: Fake read nearby to try and kick program out of read errors
          Default true

-i#     - Set number of sectors per section
          Min: 26  Max: 504161 (all at once)  Default: 10289

-p#     - Passes: Set maximum number of passes
          Min: 2  Max: 100  Default: 10

-st -sf - Step back: Fake reads after a pass to step to beginning
          Default: true

-t#     - Reread attempts: Max number of re-read attempts on a read error
          Min: 0  Max: 20  Default: 3
If using a "Lite-On SOHD-167T", use option -c400000 (may help with many other drives too).

Please test with existing dumps and report what happens, send the log file if possible. If it creates dense.bin, run it through ice.exe and see if dense.bin is valid (and output tracks match redump). If you can't get it to dump at all, let me know your machine, optical drive, os and anything else you think is relevant.

Suggestions and feedback welcome.

http://www.multiupload.nl/J5O2BNTD4P (0.42a)
Last edited by jamjam on Tue Jan 22, 2013 6:27 pm, edited 1 time in total.
PS3Dec (decrypt ps3 images), PS3DumpCheck (check integrity), GetKey (dump PS3 metadata), DatSplit (split redump dats), GPack (compress related images together)
User avatar
iR0b0t
Posts: 3397
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by iR0b0t »

jamjam wrote:Is the same true of "Lite-On SOHD-167T"?
No jamjam, SOHD-167T seems to be limited on the firmware side, it is returning the WRONG sectors in any way!

I guess they locked it for using LBA higher than ~450075 (99:59:74), or 0x6DE1B.
Using a higher LBA numbers leads to interruption and the drive reads wrong sector ranges in some way.
PX-760A (+30), PX-W4824TA (+98), GSA-H42L (+667), GDR-8164B (+102), SH-D162D (+6), SOHD-167T (+12)
User avatar
amarok
Posts: 679
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by amarok »

Suggestions and feedback welcome. Will post source at a later date.
All I get is the following error message: "Could not get handle to CD. Check input." I'm sure I've used the correct parameters ('dcdump 3:0:0 J:'). I suppose my IDE to USB adapter is to blame again... It doesn't work with ddump either. Too bad, I think this might actually be the tool I've been waiting for for years Image The only suggestion I have is... do it more like IsoBuster (which works for me), and less like ddump Image
My "TSSTcorp DVD-ROM SH-D162C" has read errors without fail on partial ranges over 440000 initially, but after a few passes can read them.
My SH-D162D does that from ~495.000 onwards, but can't start reading above even after a few passes. I have to extract 495.000-549.150 in one go.
Last edited by amarok on Wed Sep 14, 2011 12:19 pm, edited 1 time in total.
jamjam
Posts: 281
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by jamjam »

Thank you both.

@iRobot: I'll make a switch or check a device string to read the last bit in a big lump on the lite-on.

@amarok
Try just 'j', the second parameter is treated as a single character and passed to startstop.exe. Not handled very well at all, just a quick workaround until I can get to grips with windows api, and just use #:#:# OR drive letter.

If ddump doesn't work I doubt this will be any different, sorry. The usb probably is the problem. I'll look into getting usb drives working, probably over my head for now though.

If by do it like isobuster you mean work with your drive, it might be possible. If you mean the way it dumps or does something, let me know the difference.

The SH-D162D might work with partial reads past that point. The program does try reading sector ranges a lot, and the way it cycles through the sections every pass seems to help. If it's like the lite-on though, I'll handle it the same way.
PS3Dec (decrypt ps3 images), PS3DumpCheck (check integrity), GetKey (dump PS3 metadata), DatSplit (split redump dats), GPack (compress related images together)
User avatar
tossEAC
Posts: 1681
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by tossEAC »

I want to test this but im very unclear as to how????

Please let me know, what to do, and could I have the required dlls, as im getting a dll error for starters
He who controls the SPICE... controls the UNIVERSE!
The SPICE must flow.
User avatar
amarok
Posts: 679
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by amarok »

Try just 'j', the second parameter is treated as a single character and passed to startstop.exe. Not handled very well at all, just a quick workaround until I can get to grips with windows api, and just use #:#:# OR drive letter.
That was the first thing I tried. Same result.
If by do it like isobuster you mean work with your drive, it might be possible. If you mean the way it dumps or does something, let me know the difference.
Hehe, all I can say is that ddump is the only dumping tool that doesn't work with my USB adapter (well, okay, neither does dcdump, obviously Image ). CloneCD, Alcohol, IsoBuster and so on, they all work just fine.
The SH-D162D might work with partial reads past that point. The program does try reading sector ranges a lot, and the way it cycles through the sections every pass seems to help. If it's like the lite-on though, I'll handle it the same way.
No, it's not like the Lite-On. The SH162D reads sectors above 450.000 correctly, it just refuses to start reading at ~495.000+.
Last edited by amarok on Wed Sep 14, 2011 7:07 pm, edited 1 time in total.
User avatar
Pikmin
Posts: 416
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by Pikmin »

tried to dump a game with Lite-On SOHD-167T
haven't had much luck, read errors just like with cdrwin Image
it's strange the game discs don't have any scratches on them

when i first started the program i received msvcp100.dll missing (Win7 x64)
after i downloaded the vcredist_x86.exe it started fine

couldn't get the device id using the program so i had to look it up in device manager (1:0:0)

will try again with discs that i dumped successfully in the past (Sega Rally & Resident Evil 2 Leon's Disc)

thank you!
jamjam
Posts: 281
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by jamjam »

@tossEAC
Try what Pikmin says, vcredist_x86.exe. Google "visual c++ runtime" incase your computer needs a slightly different version. Beyond that, it should have everything (just startstop.exe and akrip32.dll in same directory as DCDump.exe). Works on xp sp3, haven't tested with anything else.

As for using:
  • Run ddump.exe with no parameters to get a list of all your devices. Find your dreamcast dumping device, and note the #:#:#
  • Also get the drive letter of your device
  • Then follow the dreamcast guide until it says use CDRWin, and instead use DCDump with parameters
    DCDump.exe #:#:# drive_letter
For example my drive is 0:0:0 with drive letter d so the commandline would be
DCDump.exe 0:0:0 d

It will then start dumping the disc in sections, you'll see it says what it's doing. The dump and temp files get saved to the same directory as the program.

@amarok
The program exits before using the drive letter so it isn't the current problem, but for future reference.

CloneCD, Alcohol and Isobuster are commercial grade programs, that need to be robust and work everywhere with everything. They probably have profiles to work well in every situation. It's wishful thinking to expect homemade programs to have the same level of robustness. The main problem here seems to be that you can't find a usb device with #:#:# without some extra steps. If I can't get it to work, maybe when source is available someone else can.

@Pikmin
Read errors for every read attempt, no successes at all? If there is a successful partial read you should see " - Initial dump" or " - Match: ...". Yes please try more tests, thank you Image
PS3Dec (decrypt ps3 images), PS3DumpCheck (check integrity), GetKey (dump PS3 metadata), DatSplit (split redump dats), GPack (compress related images together)
User avatar
tossEAC
Posts: 1681
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by tossEAC »

working now thanks folks.

I have noticed, it gives read errors on, section 0,47 & 48, I dont think it has got anything to do with scratches, it seems its just a problem with the drive somehow, not being able to read the very start or the very end of the disc.

The first 3 I tried, had problems, but read in very fast, about 10 minutes each disc all passses, this 4th disc I am trying is reading in much slower, but didnt give read errors on the initial dump on any section.

And so far what is dumping is typically getting matches second time, apart from when it has scratch problems, which all my disc now im unable to dump sadly have got or had bad scratch problems.

Im sad, becasue the other day before i knew of this program, i cleaned two discs, really well, and both had one error when ice ran through the bin, and me being stupid tried a re-clean, then they ended up with a lot more errors
Last edited by tossEAC on Thu Sep 15, 2011 6:58 am, edited 1 time in total.
He who controls the SPICE... controls the UNIVERSE!
The SPICE must flow.
User avatar
Pikmin
Posts: 416
Joined: Mon Jun 08, 2026 1:26 am

Re: New dreamcast dumping program (test please)

Post by Pikmin »

jamjam wrote:As for using:
  • Run ddump.exe with no parameters to get a list of all your devices. Find your dreamcast dumping device, and note the #:#:#
  • Also get the drive letter of your device
  • Then follow the dreamcast guide until it says use CDRWin, and instead use DCDump with parameters
    DCDump.exe #:#:# drive_letter
For example my drive is 0:0:0 with drive letter d so the commandline would be
DCDump.exe 0:0:0 d
i have tried running it without any options and all i get is this:

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Pikmin\Desktop\DCDump (0.1a)>DCDump.exe
Usage: DCDump.exe #:#:#

Help: DCDump.exe -h

C:\Users\Pikmin\Desktop\DCDump (0.1a)>
(both on Win7 x86 & x64)
Last edited by Pikmin on Thu Sep 15, 2011 7:27 am, edited 1 time in total.
Post Reply