Guide: Extracting And Recompiling CDI Images

Moderators: pcwzrd13, deluxux, VasiliyRS

Post Reply
User avatar
DR TEAMCAST
Uber
Posts: 1025
Joined: Wed Aug 12, 2009 4:51 pm
Dreamcast Games you play Online: All
Location: New Jersey
Contact:

Guide: Extracting And Recompiling CDI Images

Post by DR TEAMCAST »

If you've ever wanted to try modding Dreamcast games, then this is where to start

EXTRACTING

To start, extract all of the tools in the toolkit attached below into the root of your hard drive. For example purpose of this guide, we will assume this is called "C:\"

Move your CDI disc image file to the cdirip folder

Double click the cdirip exe in the cdirip folder and point it to your CDI disc image file. When it asks the destination folder, point it to "C:\isofix"

Take note of the LBA value in track 2
Image

Next, go into the 'isofix' folder. There will now be a filed called "bootfile.bin". Rename this to "ip.bin" and save it to a new folder "C:\discroot"

Double click 'isofix.exe'

When it asks for the iso file to fix, input "tdata02.iso". It will then ask for the LBA value, this is the LBA noted before. In this case input "11702"
Image

Now install the ISObuster. The installation file is included in the toolkit attached below. Once you have done that, open ISObuster. Then open "fixed.iso" in "C:\isofix"

Navigate to CD --> Session 1 --> Track 01 and click the red "ISO" icon
Image

Highlight all files and right-click, select "Extract Objects"
Image

Select "C:\discroot" as the destination folder

Lastly, right-click the red "ISO" icon and navigate to "Folder tree and file information --> List tree-info (in txt file) --> LBA Full Path"
Image

Save FileList.txt in the "sortfile" folder included in the toolkit. Which should be in "C:\sortfile"

The image is now properly extracted

---------------

Recompiling

Once you have made your modifications, you will then have to recompile the CDI image

First, we need to prepare the sort file. Open the "C:\sortfile" and double click "listorganizer.au3"

Select the FileList.txt file from before. It will then output your sort file called "output.txt"

Move "output.txt" to "C:\mkisofs"

Open output.txt and add the following line

Code: Select all

 >:\IP.BIN 30001

THE SPACE IS IMPORTANT

If you removed or added a significant amount of data. It may be necessary to make a new DUMMY.DAT file to reflect the current amount of data. If you would like to do this then download and install "BootDreams". On the top menu bar navigate to "Extras --> Dummy file --> Custom MB" and input "670"
Image
Image
Select "C:\discroot" as the selfboot folder, input anything as the disc label and click "Process". When it brings up the box to save the CDI file exit BootDreams. As it will have already created your new DUMMY.DAT file. Just rename it from DUMMY000.DAT to DUMMY.DAT

Now click the Windows start button. Then type "cmd" and press enter

Now type

Code: Select all

cd c:\mkisofs


Followed by

Code: Select all

mkisofs -C 0,11702 -V MODDED_CDI -sort output.txt -l -o new.iso c:\discroot

Image

Then move "new.iso" from "C:\mkisofs" to "C:\isofix"

Open isofix.exe again, enter "new.iso" with LBA "11702"

Depending on how many files you added, you can open ISObuster again, generate a new "FileList.txt" then run "listorganizer.au3" and compile a new ISO with the new sort. I always do this, but it may not be needed.

Lastly, copy "fixed.iso" to "C:\bin2boot"

Open bin2boot.exe and enter "fixed.iso"

Your new CDI file will be generated and ready to burn 8-)
Attachments
cdi_toolkit.zip
(6.18 MiB) Downloaded 5432 times
ImageImage
Forum for Dreamcast and Saturn browsers http://bb.dreampipe.net
Media, News, Events and more for your Sega Dreamcast internet browser at http://dreampipe.net
TheGershon
Fancy Pants Admin
Posts: 1
Joined: Wed Jun 08, 2016 2:41 pm

Re: Guide: Extracting And Recompiling CDI Images

Post by TheGershon »

bin2boot doesn't work on anything past XP, is there an alternative?
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

Hey dan so iv been trying this with Dcres release of sa2 and with out doing any mods or adding anything ias v been just testing to see if i can get it to just boot up but so far no luck. I dont think iv made any mistakes but i notice when i do the cdi rip no "bootfile.bin" appears so that could be a issue. could also be the txts, here they are both before and after.
Attachments
output.txt
(79.39 KiB) Downloaded 861 times
FileList.txt
(89.55 KiB) Downloaded 776 times
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

Oh and iv also made a update to the cdi toolkit with the mkisofs fixed!
Attachments
cdi_toolkit.7z
(6.48 MiB) Downloaded 1536 times
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

Oh and iv also made a update to the cdi toolkit with the mkisofs fixed!
Attachments
toolkit update .7z
(6.48 MiB) Downloaded 1612 times
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

okay solved one issue i was having and now it boots but is stuck in a endless loop. here is the updated txt
Attachments
output.txt
(79.39 KiB) Downloaded 856 times
FileList.txt
(89.55 KiB) Downloaded 769 times
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

Hey dan is this tutorial only good for half-life? because the issue iv been having i think is in the recompiling section. could be the 11702 lba
User avatar
DR TEAMCAST
Uber
Posts: 1025
Joined: Wed Aug 12, 2009 4:51 pm
Dreamcast Games you play Online: All
Location: New Jersey
Contact:

Re: Guide: Extracting And Recompiling CDI Images

Post by DR TEAMCAST »

If the LBA of the game you ripped was not 11702, or the binary was not the main binary (not 1st_read.bin) then you need to use binhack32 to hack the binary for lba 11702. Then make sure you either rename the binary to 1ST_READ.BIN, or (you should do this anyway to be sure you're booting the right binary) create a new IP.BIN (with either Sizious' tool or other tool) and set it to boot whatever FILE.BIN you want

You can also burn with CDRecord feature in BootDreams instead of rendering CDIs, though it writes directly to the CD without generating an image file
ImageImage
Forum for Dreamcast and Saturn browsers http://bb.dreampipe.net
Media, News, Events and more for your Sega Dreamcast internet browser at http://dreampipe.net
User avatar
itsthinkingstill
Vagabond
Posts: 787
Joined: Sat Aug 31, 2013 3:11 am
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: Guide: Extracting And Recompiling CDI Images

Post by itsthinkingstill »

so i created a new ip.bin then i ran the binhack 32 and gave it a msn vale of 0 and still no luck. so then i found some pff patches so i tried to apply them and still no luck. so il run through the whole process i followed all the steps until recompiling, then after making the new.iso i tried to apply the ppf patch with this http://www.theisozone.com/downloads/pla ... f-patcher/ then ran through all the steps and then i try it in nulldc and it gets to the sega logo and then just loops again and again.
User avatar
mistamontiel
Shark Patrol
Posts: 1959
Joined: Thu Jul 19, 2012 5:19 am
Dreamcast Games you play Online: Errythan except Tetris o.0
Location: Miami, FL, CUBA
Contact:

Re: Guide: Extracting And Recompiling CDI Images

Post by mistamontiel »

Salutations

I got the extraction part done , but it's two .bin and two .cue don't know how to re-combine ={

I want custom music in the SB/TXR 1/2 games .. preferably for TXR2 so I have to make custom BGM.afs which I think I managed .. using Goldwave not sure how to get a 22khz .wav

The biggest problem is re-combining the two images ..
Post Reply