Page 151 of 354
Re: DiscImageCreator
Posted: Thu Aug 09, 2018 9:46 pm
by sarami
/viewtopic.php?p=24664#p24664
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.
Re: DiscImageCreator
Posted: Fri Aug 10, 2018 4:12 pm
by ajshell1
sarami wrote:/viewtopic.php?p=24664#p24664
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?
Re: DiscImageCreator
Posted: Sat Aug 11, 2018 3:51 am
by sarami
Re: DiscImageCreator
Posted: Sat Aug 11, 2018 10:27 pm
by bparker
@sarami Here is my Makefile:
https://ptpb.pw/50T7
Re: DiscImageCreator
Posted: Sat Aug 11, 2018 10:56 pm
by bparker
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.
Re: DiscImageCreator
Posted: Sat Aug 11, 2018 11:33 pm
by bparker
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
Re: DiscImageCreator
Posted: Sun Aug 12, 2018 8:45 am
by sarami
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)
Code: Select all
### 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 https://redump.info/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 https://redump.info/disc/27088/
DiscImageCreator.exe xgd2swap [DriveLetter] foo.iso 3825631 108976 3719856
e.g. Battlefield 3 (Disc 1) (Multiplayer/Co-Op) https://redump.info/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.
Re: DiscImageCreator
Posted: Sun Aug 12, 2018 6:14 pm
by limbo43
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.
Re: DiscImageCreator
Posted: Tue Aug 14, 2018 2:35 pm
by F1ReB4LL
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.
Re: DiscImageCreator
Posted: Tue Aug 14, 2018 4:35 pm
by sarami
Sorry, fixed it.