BNPBatch v.1 Easy Pack/List/Unpack All BNP Files

Added by patodeborracha about 8 years ago

BNPBatch v.1
Easy Pack/List/Unpack All BNP Files

[TUTORIAL]
Unpack BNPBatch_v1.rar in your_client_mod\data
Copy bnp_make.exe or bnp_make_r.exe to your_client_mod\data

[PACK]
Execute packallbnp.bat or packallbnp_r.bat (depend if your bnp_make.exe or bnp_make_r.exe)

[UNPACK]
Execute unpackallbnp.bat or unpackallbnp_r.bat (depend if your bnp_make.exe or bnp_make_r.exe)

[LIST]
Execute listallbnp.bat or listallbnp_r.bat (depend if your bnp_make.exe or bnp_make_r.exe)

[DOWNLOAD]
[MEGAUPLOAD] http://www.megaupload.com/?d=4K8C11Y1
.or.
[RAPIDSHARE] http://rapidshare.com/files/398817739/BNPBatch_v1.rar.html
.or.
[2SHARED] http://www.2shared.com/file/zYyvB13w/BNPBatch_v1.html


Replies (2)

RE: BNPBatch v.1 Easy Pack/List/Unpack All BNP Files - Added by nimetu about 8 years ago

bat file can do a lot better ;-)
drop this to the directory where bnp_make exe is (hopefully somewhere in you PATH)
bnp output is disabled (so no /L), but just remove "> NUL" if there is need

@echo off

set exepath=%~dp0

set BNP_MAKE=%exepath%\bnp_make
if exist "%BNP_MAKE%_r.exe" set BNP_MAKE=%BNP_MAKE%_r
set BNP_MAKE=%BNP_MAKE%.exe

if ()==(%1) goto :USAGE
if ()==(%2) goto :USAGE

goto :WORK

:USAGE
    echo to unpack bnp's (bnp_make will unpack them where the bnp is, e.g. under c:\ryzom\data folder) 
    echo    %0 /u c:\ryzom\data\*_fy_*.bnp c:\ryzom\data\*_ma_*.bnp
    exit 0

:PARAMS
    shift
    if "%1" == "" goto :eof
    set files=%files% %1
    goto :PARAMS
:WORK
    set cmd=%1
    rem 'shift' does not affect %*, so lets get the files in loop
    set files=
    call :PARAMS %*

    for %%f in (%files%) do (
        echo + %%f
        "%BNP_MAKE%" %cmd% "%%f" > NUL
    )
    exit 0
* written on windows 7/pro

(1-2/2)