I use the following batch file to mass extract game files:
Code: Select all
@echo off
rem Set directories. Can be changed.
set bfbb_gameroot="<REMOVED FOR FORUM POST>"
set bfbb_export="<REMOVED FOR FORUM POST>"
rem --- Script start ---
rem Prompt user for map directory and map file name
set /p bfbb_mapdir="Enter map directory (e.g. bb):"
set /p bfbb_mapid="Enter map id (e.g. BB01):"
set bfbb_extract="%bfbb_export%\%bfbb_mapdir%"
rem Create output directory
md "%bfbb_extract%"
rem Extract files
quickbms "%cd%\SpongeBobBBBPS2hop.bms" "%bfbb_gameroot%\%bfbb_mapdir%\%bfbb_mapid%.HOP" "%bfbb_extract%"
rem Copy and rename texture files
md "%bfbb_extract%\tex"
copy "%bfbb_extract%\*.RWTX" "%bfbb_extract%\tex\*.txd"
echo Done! Press any key to exit
pause>nul
exit /b
But I get this output from QuickBMS:
Code: Select all
QuickBMS generic files extractor and reimporter 0.9.0
by Luigi Auriemma
e-mail: me@aluigi.org
web: aluigi.org
(Jun 17 2018 - 11:49:55)
quickbms.aluigi.org Homepage
zenhax.com ZenHAX Forum
@zenhax @quickbms Twitter & Scripts
Error: wrong command-line argument (<REMOVED FOR FORUM POST>\SpongeBobBBBPS2hop.bms)
What am I doing wrong?