View Single Post
  #64  
Old 30-08-2012, 00:55
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
Command line for Data3.bin (replace it in Compress.bat):

Code:
arc a -ep1 -r -w.\ -msrep+lzma:max:1gb -dp"%choice1%\media" -x@Ex_v_upak.lst .\Darksiders2\%arc%
Edit1:

If Data1,Data2, Data4 archives already exist this batch (Compress.bat) will re-create only Data3:

Code:
echo off
:start
cls
set choice1=
set arc=
set retry=
echo.
set /p choice1=Please type game folder path (e.g. c:\Program Files\Darksiders2):
if "%choice1%"=="" goto start
echo.
echo Creating archive files, please wait...
echo.
:Data1
set arc=Data1.bin
if exist .\Darksiders2\%arc% goto Data2
arc a -ep -w.\ .\Darksiders2\%arc% -mprecomp:t-nfj:zl99:d1+srep+lzma:max:1gb "%choice1%\media\media.upak"
if ERRORLEVEL 1 goto arcfail
:Data2
set arc=Data2.bin
if exist .\Darksiders2\%arc% goto Data3
arc a -ep -w.\ -mprecomp:t-nfj:zl99:d0+srep+lzma:max:1gb -dp"%choice1%\media" .\Darksiders2\%arc% @upak.lst
if ERRORLEVEL 1 goto arcfail
:Data3
set arc=Data3.bin
if exist .\Darksiders2\%arc% goto Data4
arc a -ep1 -r -w.\ -msrep+lzma:max:1gb -dp"%choice1%\media" -x@Ex_v_upak.lst .\Darksiders2\%arc% 
if ERRORLEVEL 1 goto arcfail
:Data4
set arc=Data4.bin
if exist .\Darksiders2\%arc% goto end
arc a -ep1 -r -w.\ -mprecomp:t-nfj:zl78,99:d0+srep+exe+delta+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 -dp"%choice1%" -x@Ex_m.lst .\Darksiders2\%arc%
if ERRORLEVEL 1 goto arcfail
:end
echo.All done.
pause
goto EOF
:arcfail
echo.
echo.WARNING: FreeArc returns an error in archive %arc%! 
set /p retry=Do you wish to retry [Y/N]:
if /I "%retry%"=="Y" goto %arc:~0,5% 
pause
:EOF
Note: if just updated to patch 2, you must re-create all archives not only Data3.bin

Last edited by peterf1999; 31-08-2012 at 10:00.
Reply With Quote