Dreamcast: Family Guy Dual sorttxt BAT File
"Do not save this in quotation marks, the rest download and save as a .BATXT to be used with Family Guy's Selfboot DATA/DATA pack v1.4 32-bit Edition 2012. Press CTRL+F to fine "GAMENAME" and replace with your desired games name. Say it is "Silver" just simply find all "GAMENAME" text and replace with "Silver" without quotation marks on any of the above. Save first sorttxt file for inner data portion up to LBA 45000 [65mb] if needed to make room on the disc for more game data. This method gives you a little more room using DATA/DATA format over the normal AUDIO/DATA [11700/11702 LBA] booting methods. Try and avoid using audio and video files in this area to ensure that the Dreamcast does not stutter as the inner side of the disc can't be accessed as fast the out portion, this includes but not limited to AFS,ADX,M1V,SFD,SFA,WMV,WMA,WAV,p04,p08, and p16 file formats. Once you have both of your sorttxt files and the correct files in the right folder use Dark Falaz sorttxt Indexer to fix the files LBA's to properly sort the files on disc in original or custom sorttxt (if needed), this helps cut down laser seek time and constant movement while giving a speed increase and taking it easy on your Dreamcast precious optical drive.
And please thank Family Guy for this as my "help of you want to call it took all of 3 minutes to add. I did however add the links to both Dreamcast rip databases I know of to help crack any extra protections as well as supporting dual sorttxt files. Now from here below should be saved as GAMENAME.bat not GAMENAME.txt and placed in the root of Family Guy's Selfboot pack v1.14 that cann be found hosted at this site.
http://shenmuesubs.sourceforge.net/download/addons/Selfboot_DATA_Pack_v1.3_by_FamilyGuy.rar
Also this tool also supports insertingr your own custom logo's into you newly made game by creating your own logo.mr using Logotools. Tools can be found using google, also a nice guide how to make your own can be found here as well.
http://www.dreamwell.pwp.blueyonder.co.uk/dcselfboot/database/obs/fix/ip/adx2/logo.htm
Till then have fun learning to hack Dreamcast games on your own with this awesome tool made for us the public by the Dreamcast legend Family Guy, BTW in case you are wondering WTF this is I will explain that as well. It retains the sort order of your choosing by using a second txt file. Takes a little work but tools make it a breeze and gives you an extra 65mb of space on a disc if needed. Anyhow on to making your own games.
~legends Never Die [Dreamcast Scene 2012+]"
@ echo off
title=FamilyGuy's SelfBootDATA Pack! - SELFBOOT v1.4 - All-32bit edition
ECHO
ECHO BAT script modifed for dual sortxt files by ~atreyu187
ECHO.
ECHO FG's SB DATA Pack! - SELFBOOT v1.4 - All-32bit edition
echo.
ECHO This .bat Will create a 45000LBA data/data
ECHO backup from extracted files with no need
ECHO to apply LBA hacks to the bins. However
ECHO some non-LBA based copy protection might need
ECHO to be cracked in order for the backup to works.
ECHO GO to the DCRipping Database for a list of
ECHO copy protections.
ECHO http://www.bucanero.com.ar/dreamcast/ripdb/?
ECHO.
ECHO Put around 65 megs in the data1 folder and
ECHO ALL the files in the data folder Duplicated
ECHO files will be burnt only once.
ECHO.
ECHO You can add a 0.0 dummy file in data to accelarate
ECHO loadings, it won't apear in the filesystem.
ECHO.
ECHO The ip.bin must be in the root folder.
ECHO.
ECHO FamilyGuy 2008 - 2012
ECHO.
ECHO Press any key to start ...
Pause >nul
@IF not exist ip.bin goto ERROR
@goto GO
:ERROR
@ echo.
@ ECHO No ip.bin in the folder
@ ECHO You should put the ip.bin in this folder.
@ ECHO.
@ pause >nul
REM @ exit
:GO
:ip.binhack
ECHO.
ECHO Running IP.BINHACK on the ip.bin ...
ECHO.
copy "Utilities\AUTO.BINHACK\bincon.exe" bincon.exe >nul
copy "Utilities\AUTO.BINHACK\BINHACK.EXE" BINHACK.EXE >nul
copy "Utilities\AUTO.BINHACK\cdda.exe" cdda.exe >nul
copy "Utilities\AUTO.BINHACK\dahack.exe" dahack.exe >nul
copy "Utilities\AUTO.BINHACK\SPLIT.EXE" SPLIT.EXE >nul
copy "Utilities\AUTO.BINHACK\AUTO.BINHACK.bat" AUTO.BINHACK.bat >nul
call AUTO.BINHACK.bat
del bincon.exe >nul
del BINHACK.EXE >nul
del cdda.exe >nul
del dahack.exe >nul
del SPLIT.EXE >nul
del AUTO.BINHACK.bat >nul
ECHO.
ECHO IP.HAK created !
if exist logo.png goto LOGO
goto Data0
:LOGO
ECHO.
ECHO LOGO.PNG detected...
copy "-=Isos=-\logoinsert.exe" logoinsert.exe >nul
copy "-=Isos=-\pngtomr.exe" pngtomr.exe >nul
copy "-=Isos=-\libpng.dll" libpng.dll >nul
pngtomr logo.png logo.mr >nul
ECHO LOGO.PNG converted into LOGO.MR
logoinsert.exe logo.mr ip.hak >nul
del logoinsert.exe
del pngtomr.exe
del libpng.dll
del logo.mr
ECHO LOGO.MR inserted in IP.HAK !
:Data0
IF EXIST "sorttxt1.txt" goto SORT1
goto Data1
:Data1
Echo.
Echo Building 1st session ...
Echo ON
@ ECHO.
@ mkisofs -V GAMENAME -duplicates-once -hide 0.0 -l -o data1.iso data1
@ ECHO.
@ ECHO.
@ ECHO.
@ ECHO data1.iso | Fill.exe
@ ECHO.
@ ECHO.
@ ECHO Done!
@ ECHO.
@ ECHO OFF
GOTO KEEPON
:SORT1
Echo.
Echo Building 1st session ...
ECHO.
ECHO Sorttxt.txt detected ...
ECHO ON
@ ECHO.
@ mkisofs -V GAMENAME -duplicates-once -hide 0.0 -l -sort sorttxt1.txt -o data1.iso data1
@ ECHO.
@ ECHO.
@ ECHO.
@ ECHO data1.iso | Fill.exe
@ ECHO.
@ ECHO.
@ ECHO Done!
@ ECHO.
@ ECHO OFF
:KEEPON
IF EXIST "sorttxt.txt" goto SORT2
GOTO DATA2
:SORT2
Echo.
Echo Building 2de session ...
ECHO.
ECHO Sorttxt.txt detected ...
ECHO ON
@ ECHO.
@ mkisofs -C 0,45000 -V GAMENAME -G ip.hak -M data1.iso -duplicates-once -l -sort sorttxt.txt -hide 0.0 -o data2.iso data
@ ECHO.
@ ECHO.
@ ECHO Done!
@ ECHO.
@ ECHO OFF
GOTO MERGE
:DATA2
Echo.
Echo Building 2de session ...
ECHO ON
@ ECHO.
@ mkisofs -C 0,45000 -V GAMENAME -G ip.hak -M data1.iso -duplicates-once -l -hide 0.0 -o data2.iso data
@ ECHO.
@ ECHO.
@ ECHO Done!
@ ECHO.
@ ECHO OFF
:Merge
ECHO.
ECHO Merging the isos ...
ECHO.
copy "-=Isos=-\NRG\leadin" leadin >nul
copy "-=Isos=-\NRG\nrgheader" nrgheader >nul
copy "-=Isos=-\NRG\nrgheader.exe" nrgheader.exe >nul
copy /b leadin+data1.iso+data2.iso+nrgheader GAMENAME.nrg
ECHO Hacking the nrgheader ...
ECHO.
ECHO GAMENAME.nrg | NRGHEADER
:clean
ECHO Cleaning Files ...
del nrgheader.exe >nul
del del leadin >nul
del nrgheader >nul
del data1.iso >nul
del data2.iso >nul
del ip.hak
ECHO.
ECHO DONE !
ECHO.
ECHO The backup is now done! Run it in NullDC (using DEAMON tools)
ECHO or burn it to a disc to test it out! If it doesn't work,
ECHO go to the Dreamcast Ripping DataBase to find if your
ECHO game as a non-lba based copy protection.
ECHO
ECHO http://www.bucanero.com.ar/dreamcast/ripdb/
ECHO
ECHO http://bbs.chinaemu.org/read-htm-tid-73249-fpage-23-page-1.html (yzb's Chinese database)
ECHO.
ECHO Thanks to Xzyx987X for the nrgheader technique,
ECHO ECHELON for the BINHACK program, M$ for bat files,
ECHO Neoblast and Indiket for the Fill.exe program
ECHO and Indiket for the NRGHEADER program !
Echo.
ECHO FamilyGuy 2012
ECHO
ECHO Edited for dual sortxt by atreyu187
ECHO.
ECHO Press any KEY to quit ...
PAUSE >nul
REM EXIT