Hey puisuqe tu travaille sur des dumps assez différents, pourrait tu tester ce nouveau batch file pour moi:
Code:
@echo OFF
title=FamilyGuy's SelfBootDATA Pack! - Image2Data v1.1
ECHO.
ECHO This bat files will extract the data from a multi-track
ECHO game to the data folder. It works for both ISO and BIN
ECHO files! In the latter case, the tracks will be converted
ECHO into iso. You'll have the choice to keep them or not.
ECHO.
ECHO It will also place the ip.bin in the root folder of the pack.
ECHO You could then run SELFBOOT.bat to make a selfboot backup !
ECHO.
ECHO For 3track-only games, input the name of the 3rd track both
ECHO times it ask for a track, and put 45000 as the starting LBA.
ECHO.
ECHO.
ECHO.
set /p T3="Enter the name of the 1st track with the extension (ex: XYZ.bin):"
for %%1 in (%T3%) do (
set T3X=%%~x1
set T3N=%%~n1
)
If %T3X%==.bin Echo %T3% will be converted to iso ...
ECHO.
set /p TX="Enter the name of the last track with the extension (ex: ZYX.iso):"
for %%1 in (%TX%) do (
set TXX=%%~x1
set TXN=%%~n1
)
If %TX%==%T3% Echo Both tracks are the same!
if not %TX%==%T3% (
If %TXX%==.bin Echo %TX% will be converted to iso ...
)
ECHO.
ECHO.
set /p LBA1="Enter the Starting LBA of the last track of the GD-ROM:"
set /A LBA = "LBA1"+150
ECHO.
ECHO.
IF not exist %T3% GOTO ERR1
IF not exist %TX% GOTO ERR2
if %T3X%==.bin (
ECHO Converting %T3% into %T3N%.iso
copy "Utilities\bin2iso.exe" bin2iso.exe >nul
bin2iso %T3% %T3N%.iso
del bin2iso.exe >nul
)
if %TXX%==.bin (
if %TX%==%T3% goto EXTRACT
ECHO Converting %TX% into %TXN%.iso
copy "Utilities\bin2iso.exe" bin2iso.exe >nul
bin2iso %TX% %TXN%.iso
del bin2iso.exe >nul
)
GOTO EXTRACT
:ERR1
IF not exist %TX% GOTO ERR3
ECHO.
ECHO ERROR !
ECHO %T3% doesn't exist!
ECHO Make sure %T3% is in the the root folder of the pack!
ECHO.
ECHO FamilyGuy 2008
pause >nul
exit
:ERR2
ECHO.
ECHO ERROR !!
ECHO %Tx% doesn't exist!
ECHO Make sure %Tx% is in the the root folder of the pack!
ECHO.
ECHO FamilyGuy 2008
pause >nul
exit
:ERR3
ECHO.
ECHO ERROR !!!
ECHO %T3% and %TX% don't exist!
ECHO Make sure they are in the the root folder of the pack!
ECHO.
ECHO FamilyGuy 2008
pause >nul
exit
:EXTRACT
ECHO.
ECHO.
ECHO Extracting %TXN%.iso to the data folder with the TOC from %T3N%.iso ...
ECHO.
move %T3N%.iso data\%T3N%.iso >nul
if not %TX%==%T3% move %TXN%.iso data\%TXN%.iso >nul
copy utilities\extract.exe data\extract.exe >nul
cd data >nul
extract %T3N%.iso %TXN%.iso %LBA%
ECHO Moving ip.bin ...
move ip.bin ..\ip.bin
ECHO Deleting temp files ...
del extract.exe >nul
move %T3N%.iso ..\%T3N%.iso
if not %TX%==%T3% move %TXN%.iso ..\%TXN%.iso
cd .. >nul
ECHO.
ECHO The tracks have been extracted to the data folder !
ECHO.
If %T3X%==.bin CHOICE /C:YN Delete the converted %T3N%.iso ?%1
IF ERRORLEVEL ==2 GOTO HERE
IF ERRORLEVEL ==1 del %T3N%.iso >nul
:HERE
if not %T3%==%TX% (
If %TXX%==.bin CHOICE /C:YN Delete the converted %TXN%.iso ?%1
IF ERRORLEVEL ==2 GOTO THERE
IF ERRORLEVEL ==1 del %TXN%.iso >nul
)
:THERE
ECHO.
CHOICE /C:YN Run SELFBOOT.bat? (Good idea if the game fits a cd and isn't protected)%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 CALL SELFBOOT.BAT
:END
Echo.
ECHO DONE!
ECHO.
ECHO Familyguy 2008
pause >nul
exit
C'est un nouveau image2data.bat beaucoup plus élégant que le dernier, tu n'as qu'à spécifier le nom complet (y compris l'extension) des tracks et puis le LBA de la derniere track.
Pour l'utiliser, ouvre l'ancien bat avec notepad, efface tout et colle-le nouveau dedans.
Merci, si tout se passe bien avec tes jeux il sera de la prochaine update.
FG