1,501

Re: DiscImageCreator

http://forum.redump.org/post/62037/#p62037

I built it on WSL (Windows Subsystem for Linux) using ubuntu 18.04 LTS x64.

No makefile. If you want it, please make it yourself.

1,502

Re: DiscImageCreator

sarami wrote:

http://forum.redump.org/post/62037/#p62037

I built it on WSL (Windows Subsystem for Linux) using ubuntu 18.04 LTS x64.

No makefile. If you want it, please make it yourself.

How did you build it without a makefile?

1,503

Re: DiscImageCreator

see.
https://blogs.msdn.microsoft.com/vcblog … al-studio/

1,504 (edited by bparker 2018-08-12 05:31:48)

Re: DiscImageCreator

@sarami Here is my Makefile: https://ptpb.pw/50T7

1,505

Re: DiscImageCreator

And here is a backtrace of a segmentation fault I get every time I try to dump something: http://dpaste.com/0NAM1ZM

Seems that you are trying to call strncpy() to write into a NULL pointer.

1,506 (edited by bparker 2018-08-12 05:35:51)

Re: DiscImageCreator

Here is a clang static analyzer output where it found 10 issues in the code: http://0bl.net/scan-build-2018-08-12-003209-13342-1/

And if I build with ASAN enabled, it also crashes on startup with a heap buffer overflow error and a couple runtime errors:

http://dpaste.com/2FXXRFJ

1,507

Re: DiscImageCreator

Updated test branch and test build http://www.mediafire.com/file/eq80y20l9 … st.7z/file
*2018-08-12
- added: xboxswap, xgd2swap, xgd3swap command
- added: Reading param.sfo
- added: makefile for linux (Thanks bparker)
- improved: Reading sub-channel (create QGenSector from QNextSector - 1 and QPrevSector + 1)
- fixed: _splitpath for linux (added null checking)

How to use of xboxswap, xgd2swap, xgd3swap (Thanks F1ReB4LL)

### Dumping Guide for XBOX/XBOX360 (XGD2)/XBOX360 (XGD3) on genaral drive
 Prepare DVD-DL or create the DVD+R DL trap disc in advance.  

#### How to prepare
 You need a pressed DVD-DL disc with around 8.5GB data on it
 
 XBOX: Layerbreak larger than 1913776 and the exact size needed (in sectors) is (your_disc_layerbreak - 1913776) * 2 + 3820880

 XBOX360 (XGD2): Layerbreak larger than 1913760 and the exact size needed (in sectors) is (your_disc_layerbreak - 1913760) * 2 + 3825924

 XBOX360 (XGD3): Layerbreak larger than 2133520 and the exact size needed (in sectors) is (your_disc_layerbreak - 2133520) * 2 + 4267015

#### How to create
 XBOX: DVD (Length is 3820880 or larger, Layerbreak is 1913776 or larger)

 XBOX360 (XGD2): DVD (Length is 3825924 or larger, Layerbreak is 1913760 or larger)

 XBOX360 (XGD3): DVD (Length is 4267015 or larger, Layerbreak is 2133520 or larger)

1. Create image file of the above DVD using dumping tool (e.g. isobuster)
2. Run [ImgBurn](http://www.imgburn.com/)
3. Setting LayerBreak manually (L0 sector num is about a half size of DVD length)  
   e.g. If DVD length is 3900304, L0 sector num is about 1950160
4. Before burn the image file, you need to confirm the size is correct  
   e.g. (1950160 - 1913776) * 2 + 3820880 = 3893648 => 3893648 is smaller than 3900304, so the DVD+R DL this image is burnt can dump a XBOX disc
5. Burn image file to DVD+R DL

#### Dump the disc
1. Insert the DVD-DL or DVD+R DL trap disc to a general DVD drive.
2. Run below. (stop spinning disc)  
   DiscImageCreator.exe stop [DriveLetter]
3. Use a pin to press the escape eject button, so the tray will eject (or remove
   the drive cover).
4. Insert the XBOX disc and run below. (close the drive tray)  
   DiscImageCreator.exe close [DriveLetter]  
   (or gently push the tray back or put the drive cover back on).
5. Run below.  
   e.g. Dead or Alive 3 http://redump.org/disc/27157/  
   DiscImageCreator.exe xboxswap [DriveLetter] foo.iso 292756 467910 686060 830074 999794 1212958 1579164 1719138 2010470 2372562 2527492 2682830 2915560 3065604 3219138 3455656  

   e.g. Blue Dragon http://redump.org/disc/27088/  
   DiscImageCreator.exe xgd2swap [DriveLetter] foo.iso 3825631 108976 3719856  

   e.g. Battlefield 3 (Disc 1) (Multiplayer/Co-Op) http://redump.org/disc/35131/  
   DiscImageCreator.exe xgd3swap [DriveLetter] foo.iso 4267015 12544 4246304  

bparker wrote:

And if I build with ASAN enabled

I've not fixed yet.

1,508

Re: DiscImageCreator

Hey sarami

Hashes would be much faster if you run them inline as you rip the disc image. It's already sequential so you can be updating the digest as you read the disc, instead of later when you generate your XML files. This is a savings that adds up very quickly if you are dumping lots of games sequentially.

1,509

Re: DiscImageCreator

Updated test branch and test build http://www.mediafire.com/file/eq80y20l9 … st.7z/file
*2018-08-12

DiscImageCreator.exe xboxswap [DriveLetter] foo.iso 292756 467910 686060 830074 999794 1212958 1579164 1719138 2010470 2372562 2527492 2682830 2915560 3065604 3219138 3455656

This command gets an immediate Windows Appcrash in this version. The previous private version works fine with the same command.

1,510

Re: DiscImageCreator

Sorry, fixed it.

1,511

Re: DiscImageCreator

https://mega.nz/#!evZyEKxK!LDCJHiZ7w0Xa … -_2HfJpbVw -- another example of incorrect subs fixing affecting cue (sectors 183021, 183022, 183023).

1,512

Re: DiscImageCreator

I always say.

Attention
1. Before you report a bug, could you try the latest test version http://www.mediafire.com/file/eq80y20l9 … r_test.7z.

1,513

Re: DiscImageCreator

Well, the dump isn't mine, just forwarding the links from the Dumps section to you smile

The real problem is the 24th track itself is incorrect and no C2 errors were detected. How could that happen?