Page 3 of 4

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 6:22 pm
by Dremora
pnkiller78 wrote:Well, I think that we have problems with the games with audio tracks, I noticed that with the current info submitted to the database, the last data track starting position doesn't match the same number as the gdi provided by httpd-ack and by using the redump.org gdi file the game doesn't start in nullDC.
In httpd-ack's gdi file the starting position is 150 sectors ahead that the calculated using the tracks sizes currently in the database, I think that this have to do with same issue observed on the first session of the disc, httpd-ack eats 150 sectors at the end of the last audio track, if I manually append 150 at the last audio track the position match and the game start.
So, I think that, at least by now, until somebody comes with better solution or explanation, that for games with audio tracks, the last audio track must have 150 appended to the end of the file, so start position of the last track match with the gdi script and the dump effectively runs on nullDC.
Can you please post tracks sizes and gdi from httpd-ack dump (without any manual corrections) of Sega Rally 2?
pnkiller78 wrote:Also, I found this thread on ngemu.com, I think that the script should consider the control field (third parameter) in the gdi files
ctrl : 4 -> data , 0 -> audio
Fixed.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 6:33 pm
by pnkiller78
Dremora wrote:Can you please post tracks sizes and gdi from httpd-ack dump (without any manual corrections) of Sega Rally 2?
Sure, here...

GDI file...

Code: Select all

21
1 0 4 2352 track01.bin 0
2 450 0 2352 track02.raw 0
3 45000 4 2352 track03.bin 0
4 123919 0 2352 track04.raw 0
5 128587 0 2352 track05.raw 0
6 145534 0 2352 track06.raw 0
7 160030 0 2352 track07.raw 0
8 178106 0 2352 track08.raw 0
9 194991 0 2352 track09.raw 0
10 213656 0 2352 track10.raw 0
11 231089 0 2352 track11.raw 0
12 250919 0 2352 track12.raw 0
13 267807 0 2352 track13.raw 0
14 280771 0 2352 track14.raw 0
15 297479 0 2352 track15.raw 0
16 312001 0 2352 track16.raw 0
17 312698 0 2352 track17.raw 0
18 314348 0 2352 track18.raw 0
19 319124 0 2352 track19.raw 0
20 323678 0 2352 track20.raw 0
21 337311 4 2352 track21.bin 0
Also, here it is a screenshot of the first session of the disc and the disc properties windows on ISOBuster.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 6:59 pm
by Dremora
Ok, now I see... httpd-ack makes not full dumps: tracks 2, 4 and 3rd data track (if exists) are missing pregaps (150 sectors). So we should use track 2 from EAC, 150 sectors should be added to the beginning of track 4. The only question is: what's the contents of 3rd data track pregap? I hope Vigi can answer it — he has dumped several GD-ROMs using PC drive.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 7:17 pm
by pnkiller78
Well, basically that's what I did..
* Fixed track 2 according to EAC
* Added the pregap to the track 4
* Added the pregap from the 3rd data track (track 21) to the end of last audio track (track 20).

Hope we can discover more soon, anyway, fix any error is easy cause everything here is about pregap info.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 7:23 pm
by Dremora
pnkiller78 wrote:* Added the pregap from the 3rd data track (track 21) to the end of last audio track (track 20).
I think it's wrong; 150 sectors are missing from here, so moving data from one track to another won't help, it needs to be generated.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 7:40 pm
by pnkiller78
Yeah, I agree with you, apparently httpd-ack doesn't dump pregap of the data tracks, that's why track 2 have 150 sectors less, and track 20 too. In the case of track 2 it's easy to fix because it's readable by EAC and PC drives, but in the other case we must guess.

I have not moved any data, I generated 'em using hex-editor (150 sectors filled with zeros), the dump from the last data track (track 21) start with info from files, not pause... and the end of track 20 ends with audio, I'm assuming that what it's missing is the track 21 pregap, so I generate it and inserted at the end of the previous track (track 20).

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 8:05 pm
by Dremora
pnkiller78 wrote:I have not moved any data, I generated 'em using hex-editor (150 sectors filled with zeros), the dump from the last data track (track 21) start with info from files, not pause... and the end of track 20 ends with audio, I'm assuming that what it's missing is the track 21 pregap, so I generate it and inserted at the end of the previous track (track 20).
I doubt 3rd data track pregap has just zeroes (because it's data track, not audio, it should have at least sync and header). Also pregap should be added to the beginning of data track, not to the end of previous audio track.

Re: What's Dreamcast Dump Tool?

Posted: Sun Feb 24, 2008 11:25 pm
by pnkiller78
Oh, I see, Image
What do you think we could do by now?
Is there a way do dump the pregap for that track?

Re: What's Dreamcast Dump Tool?

Posted: Mon Feb 25, 2008 12:51 am
by Dremora
I am not sure if we can dump it (with this tool), but I think there is no data there except for the sync, header (perhaps also EDC & ECC) — we need to ask Vigi.

Re: What's Dreamcast Dump Tool?

Posted: Mon Feb 25, 2008 12:59 am
by pnkiller78
Ok, I made this discovery...
In the url in httpd-ack for dumping the last audio track there's a parameter that can be modified to force the daemon to dump the entire track including the pregap

Code: Select all

this is the original url
http://192.168.1.253/track04.raw?ipbintoc0_session02_p4096_cdxa0_sector_size2352_gap150_dma1_sector_read16_sub0_abort1_retry5
this is the modified url
http://192.168.1.253/track04.raw?ipbintoc0_session02_p4096_cdxa0_sector_size2352_gap0_dma1_sector_read16_sub0_abort1_retry5
This way the resulting last audio track contains the pregap for the last data track appended to its end.
Analyzing the data in this last 150 sectors, I found that indeed they are empty data sectors, that it's, sectors with no data, just the sectors with the appropriate control fields (Sync, header, EDC, etc), but there's something different in every disc, the first few sectors (5-30 sectors) are shifted by the offset that appear on the audio tracks and the data is not zeros, it's garbage like the one that appears scrambled while calculating disc offsets in ISOBuster sector viewer. Also, I cannot get the same garbage data by reading the track again, if I read the track again, the garbage appear on the same place, but with differente numbers, after the garbage data ends, the zero data sectors appear exactly in the same position with the same control fields every time.
By example, dumping track 20 of Sega Rally, it showed 5 sectors or garbage data in the last data track pregap, after that 145 secotrs were consistent if dumped over and over again.
With Slave Zero, it showed 29 sectors with corrupted info, again with every read, the garbage changed, the remaining 121 sectors of the pregap were the same.

If this pregap it's added to the begging of the last data track, the gdi adjusted properly using the proper values for the sizes of the audio track made the game playable on nullDC.

Also, I made an experiment, if I generate the pregap using zeros, append it to the last data track at the beginning and then fix the sectors using CDMage, the sectors that stayed consistent on the dumped pregaps are the same, that's mean the 145 sectors for Sega Rally and the 121 sector of Slave Zero match their values with the corresponding sectors generated and rebuilded with CDMage.

So, I think that the pregap, it's in fact just zero data in data form1 sectors, that it can be generated, appended to the beginning of the last data track, fixed or rebuilded with CDMage.

What do you think?