Skip to content

Extracting assets

Gong Xian edited this page Jul 8, 2022 · 7 revisions

Extracting files from the disc image first requires that the image is in GDI format. Different formats, such as BIN/CUE, must be converted first. Furthermore, current tools for rebuilding hacked disc images only support GDI output.

Requirements

  • GD-ROM Explorer
  • A utility to convert Dreamcast disc images to GDI format, if necessary. Examples include:

  1. If your Sakura Taisen 3 disc images are in BIN/CUE format, use one of the tools above to convert them to GDI/BIN/RAW format.
  2. In GD-ROM Explorer, open the disc.gdi file.
  3. Create a new directory into which the files will be extracted named for the disc number, such as st3_disc1.
  4. In the left sidebar, right-click on IP.BIN and extract it to the directory.
  5. Right-click on the ISO entry under IP.BIN and select Extract content of \ to... Create a new directory named data in the same directory that IP.BIN was extracted to.
  6. Repeat this process with the other discs.
  7. Make duplicate copies of all of the directories of extracted files. One copy will be your backups of the original files. The other is your working copy, on which you will do all editing and disc rebuilding.

The directory for extracted disc 1 files should look like this:

0005171

The data directory should look like this:

0005172

Rebuilding the image

Creating a patch with the edited data files involves using a tool like GDIBuilder or the Universal Dreamcast Patcher to build a new image, while keeping the original track01.bin and track02.raw files.

For rapid testing, this Windows batch file can be used with the command-line GDIBuilder tool:

buildgdi.exe -data <WORKING DISC PATH>\data -ip <WORKING DISC PATH>\IP.BIN -output <GDI PATH> -gdi <GDI PATH>\disc.gdi -raw

Replace the path names with full paths in your working environment. The GDI path should include copies of the original GDI image files, as track01.bin and track02.raw will be reused.