This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Rotating Maps: Difference between revisions
Start of page to show how to rotate map files. |
formatting |
||
| Line 1: | Line 1: | ||
== Windows == | == Windows == | ||
@ECHO OFF | |||
BREAK ON | BREAK ON | ||
REM Batch file for rotating maps | REM Batch file for rotating maps | ||
REM All paths should be in 8.3 notation e.g. progra~1 not program files | REM All paths should be in 8.3 notation e.g. progra~1 not program files | ||
REM Don't forget to add -g and -time <secs> to your conf files | REM Don't forget to add -g and -time <secs> to your conf files | ||
REM Press CTRL-C twice and "y" to answer "Terminate Batch Job (y/n)?" to exit | REM Press CTRL-C twice and "y" to answer "Terminate Batch Job (y/n)?" to exit | ||
REM Batch language is darn ugly, ain't it? | REM Batch language is darn ugly, ain't it? | ||
REM This is set to the default install path of 2.0.2...you might have to change it | REM This is set to the default install path of 2.0.2...you might have to change it | ||
SET BZFSPATH=c:\progra~1\bzflag~1.2\bzfs.exe | SET BZFSPATH=c:\progra~1\bzflag~1.2\bzfs.exe | ||
REM This is the default conf path. If you supply an argument on the commandline it will override this. | REM This is the default conf path. If you supply an argument on the commandline it will override this. | ||
IF "%1" == "" SET CONFDIR=c:\your\path\to\conf\files | IF "%1" == "" SET CONFDIR=c:\your\path\to\conf\files | ||
IF NOT "%1" == "" SET CONFDIR=%1 | IF NOT "%1" == "" SET CONFDIR=%1 | ||
:loop_top | :loop_top | ||
ECHO. | ECHO. | ||
FOR %%b IN (%CONFDIR%\*.conf) DO %BZFSPATH% -conf %%b | FOR %%b IN (%CONFDIR%\*.conf) DO %BZFSPATH% -conf %%b | ||
ECHO "Reached end of rotation, starting over. | ECHO "Reached end of rotation, starting over. | ||
GOTO loop_top | GOTO loop_top | ||
Revision as of 00:05, 20 February 2007
Windows
@ECHO OFF
BREAK ON
REM Batch file for rotating maps
REM All paths should be in 8.3 notation e.g. progra~1 not program files
REM Don't forget to add -g and -time <secs> to your conf files REM Press CTRL-C twice and "y" to answer "Terminate Batch Job (y/n)?" to exit
REM Batch language is darn ugly, ain't it?
REM This is set to the default install path of 2.0.2...you might have to change it
SET BZFSPATH=c:\progra~1\bzflag~1.2\bzfs.exe
REM This is the default conf path. If you supply an argument on the commandline it will override this.
IF "%1" == "" SET CONFDIR=c:\your\path\to\conf\files
IF NOT "%1" == "" SET CONFDIR=%1
- loop_top
ECHO.
FOR %%b IN (%CONFDIR%\*.conf) DO %BZFSPATH% -conf %%b
ECHO "Reached end of rotation, starting over.
GOTO loop_top