Public feed
#887119
@echo off
set directory="C:\Program Files\EA GAMES\Battlefield 2\"
set fullscreen=1
set menu=1
:Beginning
cd %0\..\
if exist QLauncher.bat GOTO QLauncher
cls
echo Welcome to the Battlefield 2 Mod Launcher!
echo ____________________________________________
echo.
echo Type "Help" for a command list.
echo.
echo Only the first letters of most commands need
echo to be inputted!
echo.
echo Type "q" to go into quicklaunch mode.
echo Rename the Launcher to "QLauncher.bat" to
echo into launch in quicklauncher mode!
echo.
echo.
:Choice
echo Please enter command.
set /P input=Command:
GOTO Choices
:ChoiceMade
echo.
echo Invalid Input
echo.
pause
GOTO Beginning
:Change
echo.
echo Please type in the new path.
set /p directory=Path:
echo.
echo Changed.
echo.
pause
GOTO Beginning
:Launch
echo.
set /P modname=Mod Name:
cd %directory%\mods
if '%modname%' == 'exit' GOTO Beginning
if '%modname%' == 'e' GOTO Beginning
if exist %modname% GOTO Launching
cd %0\..\
echo.
echo Mod not found!
echo.
pause
if '%qlauncher%' == '1' GOTO QLauncher
goto Beginning
:Launching
echo.
echo Launching...
cd %directory%
BF2.exe +modPath mods/%modname% +menu %menu% +fullscreen %fullscreen%
cd %0\..\
echo Launched!
echo.
pause
goto Beginning
:Options
echo.
echo Fullscreen On or Off? (1 or 0)
set /p fullscreen=Choice:
if '%fullscreen%' == '1' GOTO Menu
if '%fullscreen%' == '0' GOTO Menu
echo.
echo Invalid Answer
GOTO Options
:Menu
echo.
echo Menu On or Off? (1 or 0)
set /p menu=Choice:
if '%menu%' == '1' GOTO OptionsChosen
if '%menu%' == '0' GOTO OptionsChosen
echo.
echo Invalid Answer
GOTO Menu
:OptionsChosen
echo.
echo Options changed.
echo.
pause
GOTO Beginning
:Parameters
cls
echo Directory = %directory%
if '%fullscreen%' == '1' GOTO P1
if '%fullscreen%' == '0' GOTO P2
:P1
echo Fullscreen = 1 (On)
if '%menu%' == '1' GOTO P3
if '%menu%' == '0' GOTO P4
:P2
echo Fullscreen = 0 (Off)
if '%menu%' == '1' GOTO P3
if '%menu%' == '0' GOTO P4
:P3
echo Menu = 1 (On)
GOTO P5
:P4
echo Menu = 0 (Off)
GOTO P5
:P5
echo.
pause
goto Beginning
:ModList
cls
cd %directory%\mods
if not exist bf2 GOTO MLError
dir
echo.
if '%qlauncher%' == '1' GOTO Launch
pause
GOTO Beginning
:MLError
echo.
echo Invalid Battlefield 2 Directory!
echo.
pause
goto Beginning
:Reset
%0
GOTO Exit
:Exit
exit
:Choices
if '%input%'=='change' GOTO Change
if '%input%'=='exit' GOTO Exit
if '%input%'=='help' GOTO Help
if '%input%'=='launch' GOTO Launch
if '%input%'=='modlist' GOTO ModList
if '%input%'=='options' GOTO Options
if '%input%'=='parameters' GOTO Parameters
if '%input%'=='quicklauncher' GOTO QLauncher
if '%input%'=='relaunch' GOTO Reset
if '%input%'=='reset' GOTO Reset
if '%input%'=='c' GOTO Change
if '%input%'=='e' GOTO Exit
if '%input%'=='h' GOTO Help
if '%input%'=='l' GOTO Launch
if '%input%'=='m' GOTO ModList
if '%input%'=='o' GOTO Options
if '%input%'=='p' GOTO Parameters
if '%input%'=='q' GOTO QLauncher
if '%input%'=='r' GOTO Reset
if '%input%'=='x' GOTO Exit
GOTO ChoiceMade
:Help
cls
echo Commands
echo change (Changes Battlefield 2 Directory)
echo exit (Exits the launcher)
echo launch (Allows you to launch a mod)
echo modlist (Lists your current mods)
echo options (Set the launch options)
echo parameters (Displays current settings)
echo quicklauncher (Super quick launcher!)
echo reset OR relaunch (Self-explanatory)
echo.
pause
GOTO Beginning
:QLauncher
set qlauncher=1
GOTO ModList
goto Beginning