This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "BZFS Command Line Options"

From BZFlagWiki
Jump to: navigation, search
(updated link to official documentation)
 
(54 intermediate revisions by 21 users not shown)
Line 2: Line 2:
  
 
==Use==
 
==Use==
Any command line option can be passed to BZFS in the command line, or placed in a text file passed in with the -conf parameter.
+
Any command line option can be passed to BZFS in the command line, or placed in a text file (a [[Sample conf|server configuration file]]) passed in with the -conf parameter.
  
==Config files==
+
==Server configuration files==
A config file is simply a text file with a list of command line options, one per line. This file can be the parameter to the -conf command line option. BZFS will load all options in the config file as if they had been passed in as runtime options.
+
A server configuration file is simply a text file with a list of command line options, one per line. This file can be the parameter to the -conf command line option. BZFS will load all options in the config file as if they had been passed in as runtime options. Note that a config file may itself include the -conf option, allowing one config file to "include" another. This could be useful if a group of servers (hosted on the same machine) want to share common settings.
 +
 
 +
It may be helpful to start with a [[Sample conf|Sample]] config file.
 +
 
 +
==Standard Options==
  
==The Options==
 
 
*'''-a''' ''linear angular''
 
*'''-a''' ''linear angular''
Sets the maximum linear and angular accelerations. The units are somewhat arbitrary so you'll have to experiment to find suitable values. Positive values will set limits to the acceleration and lower they are, greater is the inertia. Zero or negative values disable acceleration limits.
+
Sets the maximum linear and angular accelerations. The units are somewhat arbitrary so you'll have to experiment to find suitable values. Positive values will set limits to the acceleration and lower they are, greater is the inertia. Zero or negative values disable acceleration limits. '''-a 50 38''' is recommended for standard-speed servers.
  
*'''-admsg'''
+
*'''-admsg''' ''message''
message Define a message which will be broadcast to all players every 15 minutes. This option can be used multiple times to define a multiline message.
+
Define a message which will be broadcast to all players every 15 minutes. This option can be used multiple times to define a multi-line message.
 +
 
 +
*'''-adminlagannounce''' ''milliseconds''
 +
Announce players that lag more than ''milliseconds'' to admins.
  
 
*'''-advertise''' ''groupname,groupname,...''
 
*'''-advertise''' ''groupname,groupname,...''
Allows control of who can see this server on the server list. Use:*'''-advertise NONE to make a private server (no one will see the server, but global logins can be used). The default, if*'''-advertise is not specified, is to alloweveryone to see the server. Otherwise, your server will only be listed to members of the groups which you specify when either*'''-filterCallsigns or*'''-filterChat is enabled.
+
Allows control of who can see this server on the server list. Use -advertise NONE to make a private server (no one will see the server, but global logins can be used). The default, if -advertise is not specified, is to allow everyone to see the server. Otherwise, your server will only be listed to members of the groups which you specify with -advertise.
  
*'''-ban''' ip{,ip}*  
+
*'''-autoTeam'''
 +
Instructs the server to automatically assign joining players to the team that needs more players, overriding user preference. For specifics on operation, see [[Auto Team]].
 +
 
 +
*'''-b'''
 +
When  -c  is  supplied, this option randomly rotates the buildings.
 +
 
 +
*'''-badwords''' ''badwordfile''
 +
Specify a file that contains bad words that will be used when either  -filterCallsigns  or -filterChat is enabled.
 +
 
 +
*'''-ban''' ''ip{,ip}*''
 
Prohibits connections from the listed IP addresses. Trailing 255 bytes are treated as mask bytes.
 
Prohibits connections from the listed IP addresses. Trailing 255 bytes are treated as mask bytes.
  
*'''-banfile''' filename
+
*'''-banfile''' ''filename''
 
Specifies the name of a file where bzfs will store the banlist. It will load the banlist from this file when it starts (if the file exists), and write the banlist back to the file when someone gets banned or unbanned. If this option isn't given the banlist will not be saved.
 
Specifies the name of a file where bzfs will store the banlist. It will load the banlist from this file when it starts (if the file exists), and write the banlist back to the file when someone gets banned or unbanned. If this option isn't given the banlist will not be saved.
 +
 +
*'''-banTime'''
 +
Default number of minutes player should be banned (unspecified, the default is 300).
  
 
*'''-c'''
 
*'''-c'''
Enables the capture-the-flag style game. By default this allocates one team flag per team. This can be modified see *'''+f team. By default, the free-for-all style is used.
+
Enables the capture-the-flag style game. By default this allocates one team flag per team. This can be modified see '''+f''' ''team''. By default, the free-for-all style is used.
  
*'''-cache''' worldCacheURL
+
*'''-cache''' ''worldCacheURL''
 
Specifies the URL for the world cache file. This is a binary file that clients will attempt to download before getting the world from the bzfs server.
 
Specifies the URL for the world cache file. This is a binary file that clients will attempt to download before getting the world from the bzfs server.
  
*'''-cacheout''' filename
+
*'''-cacheout''' ''filename''
 
Save the currently specified world into a binary cache file and exit.
 
Save the currently specified world into a binary cache file and exit.
  
*'''-conf''' configfilename
+
*'''-conf''' ''configfilename''
 
Specifies the name of a configuration file to be used to set all of the bzfs options, rather than setting them on the command line.
 
Specifies the name of a configuration file to be used to set all of the bzfs options, rather than setting them on the command line.
  
*'''-cr''' Enables the capture-the-flag style game with random map.
+
*'''-cr'''
You can optionally specify a building density by provid-
+
Enables the capture-the-flag style game with random map. You can optionally specify a building density by providing a number (default is 5). One team flag per team is provided, but more can be added through '''+f''' ''team''. By default, the free-for-all style is used.
ing a number (default is 5). One team flag per team is
+
provided, but more can be added thru *'''+f team.By
+
default, the free-for-all style is used.
+
  
*'''-d''' Increase debugging level. If more*'''-d is given, more
+
*'''-d'''
debugging info is obtained.
+
Increase debugging level. If more '''-d''' is given, more debugging info is obtained.
  
*'''-density''' numSpecify density for buildings, i.e. the higher the inte-
+
*'''-density''' ''num''
ger number, the more buildings you will get. This
+
Specify density for buildings, i.e. the higher the integer number, the more buildings you will get. This applies to automatically generated maps only.
applies to automatically generated maps only.
+
  
*'''-disableBotsDisallow'''
+
*'''-disableBots'''
clients from using the ROGER autopilot or from
+
Prevent clients from using the ROGER autopilot or from using robots.
using robots.
+
  
*'''+f''' {good|bad|teamflag-id}[{count}]
+
*'''+f''' ''{good|bad|teamflag-id}[{count}]''
Forces the existence of the given flag. If specified
+
Forces the existence of the given flag. If specified multiple times for the same flag-id, then that many flags will appear. The good argument is equivalent to specifying '''+f''' once for each kind of good flag. Same goes for the bad argument. The teamflag-id must match one of the predefined [http://bzflag.org/documentation/flags Flag Codes].
multiple times for the same flag-id, then that many
+
flags will appear. The good argument is equivalent to
+
specifying *'''+f once for each kind of good flag. Same goes
+
for the bad argument. The team argument adds a team
+
be "*'''+s40*'''-s50*'''-f G". Similarly, "*'''+f good{40} *'''+f bad{10}
+
-f G{40}" would give you exactly 40 good flags except
+
genocide and 10 of each bad flag.
+
  
*'''-fb''' Allow flags on box buildings.
+
*'''-f''' ''{flag-id}''
 +
Restricts a certain flag from existing.
 +
 
 +
*'''-fb'''
 +
Allow flags on box buildings.
  
 
*'''-filterCallsigns'''
 
*'''-filterCallsigns'''
Turn on the filtering of callsigns and email addresses.
+
Turn on the filtering of callsigns and email addresses. Callsigns and addresses are compared against bad words provided via '''-badwords'''.
Callsigns and addresses are compared against bad words
+
provided via*'''-badwords.
+
  
 
*'''-filterChat'''
 
*'''-filterChat'''
Turn on the filtering of chat messages. Messages that
+
Turn on the filtering of chat messages. Messages that contain words listed via a '''-badwords''' file are replaced with !@#$%^&* characters.
contain words listed via a*'''-badwords file are replaced
+
with !@#$%^&* characters.
+
  
 
*'''-filterSimple'''
 
*'''-filterSimple'''
By default, all filtering is aggressive, matching much
+
By default, all filtering is aggressive, matching much more than what is strictly listed in a '''-badwords''' file for convenience. Providing this option will make the '''-filterCallsigns''' and '''-filterChat''' comparisons exact match only.
more than what is strictly listed in a*'''-badwords file
+
for convenience.Providing this option will make the
+
-filterCallsigns and*'''-filterChat comparisons exact match
+
only.
+
  
 
*'''-g'''
 
*'''-g'''
 
Quit after serving one game.
 
Quit after serving one game.
  
*'''-groupdb''' file
+
*'''-groupdb''' ''file''
 
Load groups from file
 
Load groups from file
  
 
*'''-h'''
 
*'''-h'''
Buildings are given random heights.
+
Buildings are given varying heights if the map is random. Has no effect on map files.
  
 
*'''-handicap'''
 
*'''-handicap'''
Players are given a handicap advantage based on their
+
Players are given a handicap advantage based on their ability in relation to the other players. Handicapped players will have faster tanks and shots. The handicap is determined by the player's score in relation to other players.
ability in relation to the other players. Handicapped
+
players will have faster tanks and shots. The handicap
+
is determined by the player's score in relation to other
+
players.
+
  
 
*'''-help'''
 
*'''-help'''
 
Shows a help page and lists all the valid flag id's.
 
Shows a help page and lists all the valid flag id's.
  
*'''-helpmsg''' file name
+
*'''-helpmsg''' ''file name''
Create a help message accessible by /help name, which
+
Create a help message accessible by /help name, which prints the contents of file. Restricted to 10 lines per help message.
prints the contents of file. Restricted to 10 lines per
+
help message.
+
  
*'''-i interface'''
+
*'''-i''' ''interface''
Server will listen for and respond to ``pings'' (sent
+
Server will listen for and respond to ''pings'' (sent via broadcast) on the given interface. Clients use this to find active servers on the network. This is the TCP/UDP/IP address the server will listen on.
via broadcast) on the given interface. Clients use this
+
to find active servers on the network. This is the
+
TCP/UDP/IP address the server will listen on.
+
  
 
*'''-j'''
 
*'''-j'''
 
Allows jumping.
 
Allows jumping.
  
*'''-lagdrop''' warn-count
+
*'''-jitterdrop''' ''warn-count''
Kicks players after warn-count lag warnings.
+
Kicks players after ''warn-count'' jitter warnings.
  
*'''-lagwarn''' time/ms
+
*'''-jitterwarn''' ''time/ms''
Send warnings to players that lag more than time.
+
Send warnings to players that jitter more than ''time''.
A single value sets the total number of players allowed.
+
Five comma separated values set the maximum for each
+
team. If a count is left blank then no limit is set for
+
that team, except for the limit on the total number of
+
players. Both forms may be provided.
+
  
*'''-mps''' max-score
+
*'''-lagannounce''' ''milliseconds''
Sets a maximum score for individual players. The first
+
Announce players that lag more than ''milliseconds'' in public.
player to reach this score is declared the winner and
+
the game is over.
+
  
*'''-ms shots Allows up to shots simultaneous shots for each player.
+
*'''-lagdrop''' ''warn-count''
This is 1 by default.
+
Kicks players after ''warn-count'' lag warnings.
  
*'''-mts max-score'''
+
*'''-lagwarn''' ''time/ms''
Sets a maximum score for teams. The first team to reach
+
Send warnings to players that lag more than ''time''.
this score is declared the winner and the game is over.
+
 
 +
*'''-loadplugin''' ''/filename''
 +
Load plugin. See more at [[Plug-ins|Plugins]]
 +
 
 +
*'''-masterBanURL''' ''URL''
 +
Specify  alternate  URLs  for the master ban file to be pulled from.  This argument may be provided multiple times.
 +
 
 +
*'''-maxidle''' ''seconds''
 +
Kick players that did not play longer than ''second''s. Pausing players are not kicked. If a player uttered a word recently, he will be kicked after thrice the given time.
 +
 
 +
*'''-mp''' ''total | rogue,red,green,blue,purple,observer''
 +
Sets the maximum number of players, total or per team.A single value sets the total number of players allowed. Five comma separated values set the maximum for each team. If a count is left blank then no limit is set for that team, except for the limit on the total number of players. Both forms may be provided.
 +
 
 +
*'''-mps''' ''max-score''
 +
Sets a maximum score for individual players. The first player to reach this score is declared the winner and the game is over.
 +
 
 +
*'''-ms ''shots''
 +
Allows up to shots simultaneous shots for each player. This is 1 by default.
 +
 
 +
*'''-mts''' ''max-score''
 +
Sets a maximum score for teams. The first team to reach this score is declared the winner and the game is over.
  
 
*'''-noMasterBanlist'''
 
*'''-noMasterBanlist'''
Server will not attempt to load the master ban list from
+
Server will not attempt to load the [[Master Ban]] list from the internet.
the internet.
+
  
*'''-p''' port
+
*'''-noTeamKills'''
Listen for game connections on port instead of the
+
Players on the same team are immune to each other's shots. Rogue is excepted.  
default port.Use*'''-help to print the default port, or
+
use*'''-d debug printing.
+
  
*'''-passdb fileLoad'''
+
*'''-offa'''
passwords from file
+
Enables the Open-Free-for-All style game. This is a teamless mode, similar to the classic deathmatch in other games.
  
*'''-passwd''' password
+
*'''-p''' ''port''
Specify a server administrator password for use in
+
Listen for game connections on port instead of the default port.Use '''-help''' to print the default port, or use '''-d''' debug printing.
remote administration such as /kick, /ban, /mute, etc
+
messages.
+
  
*'''-pidfile''' filename
+
*'''-packetlossdrop''' ''warn-count''
Specify a file where the server will write its process
+
Kicks players after ''warn-count'' packetloss warnings.
ID so it may be used for remote administration.
+
  
*'''-poll''' variable=value
+
*'''-packetlosswarn''' ''percent''
Configure several aspects of the in-game polling system
+
Send warnings to players that lag more than ''percent'' packetloss.
'''banTime'''
+
  default number of minutes player should be banned (unspecified, the default is 300)
+
'''vetoTime'''
+
  max seconds authorized user has to abort poll(default is 20)
+
'''votePercentage'''
+
  percentage of players required to affirm a poll (unspecified, the default is 50.1%)
+
'''voteRepeatTime'''
+
  minimum seconds required before a player may
+
  description. By default, a server will respond to
+
  broadcast queries, allowing clients to find servers run-
+
  ning on the standard port on the local subnet.The
+
  -public option causes the server to register itself with
+
  a list server, which clients can query to get a list of
+
  bzfs servers.
+
  
*'''-publicaddr''' address[:port]
+
*'''-passdb''' ''file''
Advertise this server with the given address and port.
+
Load passwords from file
Only has an effect when used with*'''-public.Normally a
+
server advertises itself at the local address and port.
+
Some servers are not accessible from the internet at
+
this address (for example servers behind a firewall
+
using Network Address Translation). Use this option to
+
specify the address and/or port that internet users
+
should use to access this server.
+
  
*'''-publiclist''' url
+
*'''-passwd''' ''password''
Advertise this server on the list servers listed at url.
+
Specify a server administrator password for use in remote administration such as /kick, /ban, /mute, etc messages.
Only has an effect when used with*'''-public. A built-in
+
 
url is used by default. The BZFlag clients use the same
+
*'''-pidfile''' ''filename''
built-in url so, by default, clients will see public
+
Specify a file where the server will write its process ID so it may be used for remote administration.
servers automatically. This argument may be provided
+
 
multiple times to publicize a server to multiple list
+
*'''-poll''' ''variable=value''
servers.
+
Configure several aspects of the in-game polling system.
 +
 
 +
*'''-printscore''' ''variable=value''
 +
Write score to stdout whenever it changes
 +
 
 +
*'''-publictitle''' (-public in 2.0.x and earlier)
 +
Causes the server to register itself with a list server, which clients can query to get a list of bzfs servers. By default, a server will respond to broadcast queries, allowing clients to find servers running on the standard port on the local subnet.
 +
 
 +
*'''-publicaddr''' ''address[:port]''
 +
Advertise this server with the given address and port. Only has an effect when used with '''-public'''. Normally a server advertises itself at the local address and port. Some servers are not accessible from the internet at this address (for example servers behind a firewall using Network Address Translation). Use this option to specify the address and/or port that internet users should use to access this server.
 +
 
 +
*'''-publiclist''' ''url''
 +
Advertise this server on the list servers listed at url. Only has an effect when used with '''-public'''. A built-in url is used by default. The BZFlag clients use the same built-in url so, by default, clients will see public servers automatically. This argument may be provided multiple times to publicize a server to multiple list servers.
 +
 
 +
*'''-publickey''' ''key''
 +
Advertise this server on the public list server using the specified identification key. Required in Version 2.4 and later..
  
 
*'''-q'''
 
*'''-q'''
If specified, the server will not listen for nor respond
+
If specified, the server will not listen for nor respond to ``pings''. BZFlag sends out these pings to give the user a list of available servers.This effectively makes the server private, especially if the '''-p''' option is also used.
to ``pings''. BZFlag sends out these pings to give the
+
user a list of available servers.This effectively
+
makes the server private, especially if the*'''-p option is
+
also used.
+
  
 
*'''+r'''
 
*'''+r'''
Makes most shots ricochet. Super bullets, shock waves,
+
Makes most shots ricochet. Super bullets, shock waves, and guided missiles do not.
and guided missiles do not.
+
  
*'''-rabbit''' [score|killer|random]
+
*'''-rabbit''' ''[score|killer|random]''
Enables the rabbit-hunt style game. By default, the
+
Enables the rabbit-hunt style game. By default, the free-for-all style is used. You must specify the algorithm used to pick a new rabbit when the old one dies. The score algorithm uses a modified wins/(wins+losses) score and picks the top scoring player to be the new rabbit. The killer algorithm specifies a reverse tag game where whomever kills the rabbit becomes the new rabbit. The random algorithm randomly picks a new rabbit without regard to score. (The score algorithm is the original behavior.)
free-for-all style is used. You must specify the algo-
+
rithm used to pick a new rabbit when the old one dies.
+
The score algorithm uses a modified wins/(wins*'''+losses)
+
score and picks the top scoring player to be the new
+
rabbit. The killer algorithm specifies a reverse tag
+
game where whomever kills the rabbit becomes the new
+
rabbit. The random algorithm randomly picks a new rab-
+
bit without regard to score. (The score algorithm is
+
the original behavior.)
+
  
*'''-recbuf''' size
+
*'''-recbuf''' ''size''
Start with the recording buffer active, with the speci-
+
Start with the recording buffer active, with the specified size (in megabytes).
fied size (in megabytes).
+
  
 
*'''-recbufonly'''
 
*'''-recbufonly'''
 
Disable recording straight to files
 
Disable recording straight to files
  
*'''-reportfile'''
+
*'''-recdir''' ''directory''
 +
Specify the directory for record and replay files.
 +
 
 +
*'''-replay'''
 +
Start the server in replay mode.
 +
 
 +
*'''-reportfile''' ''filename''
 +
Enable the /report command and log all reports to ''filename''.
 +
 
 +
*'''-reportpipe''' ''command''
 +
Enable the /report command and execute ''command'' when a report is filed. This can be used together with, or instead of the '''-reportfile''' option.
  
 
*'''-requireudp'''
 
*'''-requireudp'''
Require clients to use parallel UDP. If players fire
+
Require clients to use parallel UDP. If players fire before opening a UDP channel, kick them off the server.
before opening a UDP channel, kick them off the server.
+
  
*'''+s''' num-flags
+
*'''+s''' ''num-flags''
The server will have an extra num-flags random super
+
The server will have an extra num-flags random super flags available at all times. The '''-f''' option can be used to restrict which types of flags will be added. Required flags given by the '''+f''' option are not included in the num-flags total.
flags available at all times. The*'''-f option can be used
+
to restrict which types of flags will be added.
+
Required flags given by the *'''+f option are not included
+
in the num-flags total.
+
  
*'''-s''' num-flags
+
*'''-s''' ''num-flags''
The server will have up to num-flags random super flags
+
The server will have up to num-flags random super flags available at any time.The '''-f''' option can be used to restrict which types of flags will be added. Required flags given by the '''+f''' option are not included in the ''num-flags'' total.
available at any time.The*'''-f option can be used to
+
restrict which types of flags will be added.Required
+
flags given by the *'''+f option are not included in the
+
num-flags total.
+
  
 
*'''-sa'''
 
*'''-sa'''
 
Antidote flags are provided for players with bad flags.
 
Antidote flags are provided for players with bad flags.
  
*'''-sb Allow spawns on box buildings.
+
*'''-sb'''
 +
Allow spawns on box buildings.
  
*'''-set''' name value
+
*'''-set''' ''name value''
 
Set BZDB variable name to value
 
Set BZDB variable name to value
  
*'''-sl''' id num
+
*'''-sl''' ''id num''
 
Restrict flag id to num shots.
 
Restrict flag id to num shots.
  
*'''-spamtime''' time  
+
*'''-spamtime''' ''time''
Minimum <time> between player chat messages that are alike.
+
Minimum ''time'' between player chat messages that are alike.
  
*'''-spamwarn''' warnLimit
+
*'''-spamwarn''' ''warnLimit''
Number of warnings a player/spammer gets, whoviolates
+
Number of warnings a player/spammer gets, who violates '''-spamtime'''.
-spamtime.
+
  
*'''-speedtol''' factor
+
*'''-speedtol''' ''factor''
Override the default speed auto kick factor. The factor
+
Override the default speed auto kick factor. The factor should not be less then 1.0. The factor is a multiplier.
should not be less then 1.0. The factor is a multiplier.
+
  
*'''-srvmsg''' message
+
*'''-srvmsg''' ''message''
Define a server welcome message. This option can be used
+
Define a server welcome message. This option can be used multiple times to define a multiline message.
multiple times to define a multiline message.
+
  
*'''-st''' time
+
*'''-st''' ''time''
 
Bad flags are automatically dropped after time seconds.
 
Bad flags are automatically dropped after time seconds.
  
*'''-sw''' count
+
*'''-sw''' ''count''
Bad flags are automatically dropped after count wins.
+
Bad flags are automatically dropped after count wins. Capturing a team flag does not count as a win.
Capturing a team flag does not count as a win.
+
 
 +
*'''-synclocation'''
 +
Forces all clients to use the same sun and stars location.
  
 
*'''-synctime'''
 
*'''-synctime'''
Forces all clients to use the same time of day.The
+
Forces all clients to use the same time of day. The current time is determined by the server's clock. This disables the + and - keys on the clients.
current time is determined by the server's clock. This
+
disables the *'''+ and*'''- keys on the clients.
+
  
 
*'''-t'''
 
*'''-t'''
Adds teleporters to the game.
+
Adds teleporters to random maps. Has no effect on map files.
 +
 
 +
*'''-time'''
 +
Starts a countdown immediately when the server starts.
  
 
*'''-timemanual'''  
 
*'''-timemanual'''  
the countdown has to be started manually using the /countdown command.
+
The countdown has to be started manually using the /countdown command. This is useful for matches.
This is useful for matches.
+
  
 
*'''-tk'''
 
*'''-tk'''
Changes the default behavior where a player dies when he
+
Changes the default behavior where a player dies when he kills a teammate. When using this option, he will just get a -1 score penalty for the kill but not be killed in game.
kills a teammate. When using this option, he will just
+
get a*'''-1 score penalty for the kill but not be killed in
+
game.
+
  
*'''-tkkr percent
+
*'''-tkannounce'''
Kicks players whose team killing to normal kill ratio is
+
Announces team kills to the admin channel
greater than percent [1-100]. A start up grace period is
+
given to players.
+
  
*'''-ts [micros]Include timestamp information in DEBUG output*'''- useful
+
*'''-tkkr''' ''percent''
for logging. If micros is specified, microseconds will
+
Kicks players whose team killing to normal kill ratio is greater than percent [1-100]. A start up grace period is given to players.
be added to the timestamp.
+
  
*'''-userdb''' file
+
*'''-ts''' ''[micros]''
 +
Include timestamp information in DEBUG output useful for logging. If micros is specified, microseconds will be added to the timestamp.
 +
 
 +
*'''-userdb''' ''file''
 
Load group associations from file
 
Load group associations from file
  
*'''-vars''' file  
+
*'''-utc'''
Loads values for game configurable variables from file.
+
Log timestamps in UTC (Coordinated Universal Time)
Entries are one per line in the form: set variable
+
 
value. For a list of variables that are configurable, in
+
*'''-vars''' ''file''
the BZFlag client, send a message with /set as the text.
+
Loads values for game configurable variables from file. Entries are one per line in the form: set variable value. For a list of variables that are configurable, in the BZFlag client, send a message with /set as the text.
  
 
*'''-version'''
 
*'''-version'''
 
Prints the version number of the executable.
 
Prints the version number of the executable.
  
*'''-world''' world-file
+
*'''-vetoTime'''
Reads a specific BZFlag .bzw world layout file for the
+
Max seconds authorized user has to abort poll(default is 20).
game map.
+
  
*'''-worldsize''' world-size
+
*'''-votePercentage'''
Changes the size for random maps
+
Percentage of players required to affirm a poll (unspecified, the default is 50.1%).
  
[[Category:Server]]
+
*'''-voteRepeatTime'''
 +
Minimum seconds required before a player may repeat a vote.
  
 +
*'''-world''' ''world-file''
 +
Reads a specific BZFlag .bzw world file in [[BZW]] format as the game map.
 +
 +
*'''-worldsize''' ''world-size''
 +
Changes the size for random maps
  
 +
==See also==
 +
* [[BZW|BZW world format]]
 +
* [[Creating a server]]
 +
* [[Server authentication]]
 +
* [[Slash Commands]]
  
  
 
[[Category:Server]]
 
[[Category:Server]]

Latest revision as of 16:50, 17 March 2017

BZFS supports a number of command line options that let you set the various modes and parameters for the game.

Use[edit]

Any command line option can be passed to BZFS in the command line, or placed in a text file (a server configuration file) passed in with the -conf parameter.

Server configuration files[edit]

A server configuration file is simply a text file with a list of command line options, one per line. This file can be the parameter to the -conf command line option. BZFS will load all options in the config file as if they had been passed in as runtime options. Note that a config file may itself include the -conf option, allowing one config file to "include" another. This could be useful if a group of servers (hosted on the same machine) want to share common settings.

It may be helpful to start with a Sample config file.

Standard Options[edit]

  • -a linear angular

Sets the maximum linear and angular accelerations. The units are somewhat arbitrary so you'll have to experiment to find suitable values. Positive values will set limits to the acceleration and lower they are, greater is the inertia. Zero or negative values disable acceleration limits. -a 50 38 is recommended for standard-speed servers.

  • -admsg message

Define a message which will be broadcast to all players every 15 minutes. This option can be used multiple times to define a multi-line message.

  • -adminlagannounce milliseconds

Announce players that lag more than milliseconds to admins.

  • -advertise groupname,groupname,...

Allows control of who can see this server on the server list. Use -advertise NONE to make a private server (no one will see the server, but global logins can be used). The default, if -advertise is not specified, is to allow everyone to see the server. Otherwise, your server will only be listed to members of the groups which you specify with -advertise.

  • -autoTeam

Instructs the server to automatically assign joining players to the team that needs more players, overriding user preference. For specifics on operation, see Auto Team.

  • -b

When -c is supplied, this option randomly rotates the buildings.

  • -badwords badwordfile

Specify a file that contains bad words that will be used when either -filterCallsigns or -filterChat is enabled.

  • -ban ip{,ip}*

Prohibits connections from the listed IP addresses. Trailing 255 bytes are treated as mask bytes.

  • -banfile filename

Specifies the name of a file where bzfs will store the banlist. It will load the banlist from this file when it starts (if the file exists), and write the banlist back to the file when someone gets banned or unbanned. If this option isn't given the banlist will not be saved.

  • -banTime

Default number of minutes player should be banned (unspecified, the default is 300).

  • -c

Enables the capture-the-flag style game. By default this allocates one team flag per team. This can be modified see +f team. By default, the free-for-all style is used.

  • -cache worldCacheURL

Specifies the URL for the world cache file. This is a binary file that clients will attempt to download before getting the world from the bzfs server.

  • -cacheout filename

Save the currently specified world into a binary cache file and exit.

  • -conf configfilename

Specifies the name of a configuration file to be used to set all of the bzfs options, rather than setting them on the command line.

  • -cr

Enables the capture-the-flag style game with random map. You can optionally specify a building density by providing a number (default is 5). One team flag per team is provided, but more can be added through +f team. By default, the free-for-all style is used.

  • -d

Increase debugging level. If more -d is given, more debugging info is obtained.

  • -density num

Specify density for buildings, i.e. the higher the integer number, the more buildings you will get. This applies to automatically generated maps only.

  • -disableBots

Prevent clients from using the ROGER autopilot or from using robots.

  • +f {good|bad|teamflag-id}[{count}]

Forces the existence of the given flag. If specified multiple times for the same flag-id, then that many flags will appear. The good argument is equivalent to specifying +f once for each kind of good flag. Same goes for the bad argument. The teamflag-id must match one of the predefined Flag Codes.

  • -f {flag-id}

Restricts a certain flag from existing.

  • -fb

Allow flags on box buildings.

  • -filterCallsigns

Turn on the filtering of callsigns and email addresses. Callsigns and addresses are compared against bad words provided via -badwords.

  • -filterChat

Turn on the filtering of chat messages. Messages that contain words listed via a -badwords file are replaced with !@#$%^&* characters.

  • -filterSimple

By default, all filtering is aggressive, matching much more than what is strictly listed in a -badwords file for convenience. Providing this option will make the -filterCallsigns and -filterChat comparisons exact match only.

  • -g

Quit after serving one game.

  • -groupdb file

Load groups from file

  • -h

Buildings are given varying heights if the map is random. Has no effect on map files.

  • -handicap

Players are given a handicap advantage based on their ability in relation to the other players. Handicapped players will have faster tanks and shots. The handicap is determined by the player's score in relation to other players.

  • -help

Shows a help page and lists all the valid flag id's.

  • -helpmsg file name

Create a help message accessible by /help name, which prints the contents of file. Restricted to 10 lines per help message.

  • -i interface

Server will listen for and respond to pings (sent via broadcast) on the given interface. Clients use this to find active servers on the network. This is the TCP/UDP/IP address the server will listen on.

  • -j

Allows jumping.

  • -jitterdrop warn-count

Kicks players after warn-count jitter warnings.

  • -jitterwarn time/ms

Send warnings to players that jitter more than time.

  • -lagannounce milliseconds

Announce players that lag more than milliseconds in public.

  • -lagdrop warn-count

Kicks players after warn-count lag warnings.

  • -lagwarn time/ms

Send warnings to players that lag more than time.

  • -loadplugin /filename

Load plugin. See more at Plugins

  • -masterBanURL URL

Specify alternate URLs for the master ban file to be pulled from. This argument may be provided multiple times.

  • -maxidle seconds

Kick players that did not play longer than seconds. Pausing players are not kicked. If a player uttered a word recently, he will be kicked after thrice the given time.

  • -mp total | rogue,red,green,blue,purple,observer

Sets the maximum number of players, total or per team.A single value sets the total number of players allowed. Five comma separated values set the maximum for each team. If a count is left blank then no limit is set for that team, except for the limit on the total number of players. Both forms may be provided.

  • -mps max-score

Sets a maximum score for individual players. The first player to reach this score is declared the winner and the game is over.

  • -ms shots

Allows up to shots simultaneous shots for each player. This is 1 by default.

  • -mts max-score

Sets a maximum score for teams. The first team to reach this score is declared the winner and the game is over.

  • -noMasterBanlist

Server will not attempt to load the Master Ban list from the internet.

  • -noTeamKills

Players on the same team are immune to each other's shots. Rogue is excepted.

  • -offa

Enables the Open-Free-for-All style game. This is a teamless mode, similar to the classic deathmatch in other games.

  • -p port

Listen for game connections on port instead of the default port.Use -help to print the default port, or use -d debug printing.

  • -packetlossdrop warn-count

Kicks players after warn-count packetloss warnings.

  • -packetlosswarn percent

Send warnings to players that lag more than percent packetloss.

  • -passdb file

Load passwords from file

  • -passwd password

Specify a server administrator password for use in remote administration such as /kick, /ban, /mute, etc messages.

  • -pidfile filename

Specify a file where the server will write its process ID so it may be used for remote administration.

  • -poll variable=value

Configure several aspects of the in-game polling system.

  • -printscore variable=value

Write score to stdout whenever it changes

  • -publictitle (-public in 2.0.x and earlier)

Causes the server to register itself with a list server, which clients can query to get a list of bzfs servers. By default, a server will respond to broadcast queries, allowing clients to find servers running on the standard port on the local subnet.

  • -publicaddr address[:port]

Advertise this server with the given address and port. Only has an effect when used with -public. Normally a server advertises itself at the local address and port. Some servers are not accessible from the internet at this address (for example servers behind a firewall using Network Address Translation). Use this option to specify the address and/or port that internet users should use to access this server.

  • -publiclist url

Advertise this server on the list servers listed at url. Only has an effect when used with -public. A built-in url is used by default. The BZFlag clients use the same built-in url so, by default, clients will see public servers automatically. This argument may be provided multiple times to publicize a server to multiple list servers.

  • -publickey key

Advertise this server on the public list server using the specified identification key. Required in Version 2.4 and later..

  • -q

If specified, the server will not listen for nor respond to ``pings. BZFlag sends out these pings to give the user a list of available servers.This effectively makes the server private, especially if the -p option is also used.

  • +r

Makes most shots ricochet. Super bullets, shock waves, and guided missiles do not.

  • -rabbit [score|killer|random]

Enables the rabbit-hunt style game. By default, the free-for-all style is used. You must specify the algorithm used to pick a new rabbit when the old one dies. The score algorithm uses a modified wins/(wins+losses) score and picks the top scoring player to be the new rabbit. The killer algorithm specifies a reverse tag game where whomever kills the rabbit becomes the new rabbit. The random algorithm randomly picks a new rabbit without regard to score. (The score algorithm is the original behavior.)

  • -recbuf size

Start with the recording buffer active, with the specified size (in megabytes).

  • -recbufonly

Disable recording straight to files

  • -recdir directory

Specify the directory for record and replay files.

  • -replay

Start the server in replay mode.

  • -reportfile filename

Enable the /report command and log all reports to filename.

  • -reportpipe command

Enable the /report command and execute command when a report is filed. This can be used together with, or instead of the -reportfile option.

  • -requireudp

Require clients to use parallel UDP. If players fire before opening a UDP channel, kick them off the server.

  • +s num-flags

The server will have an extra num-flags random super flags available at all times. The -f option can be used to restrict which types of flags will be added. Required flags given by the +f option are not included in the num-flags total.

  • -s num-flags

The server will have up to num-flags random super flags available at any time.The -f option can be used to restrict which types of flags will be added. Required flags given by the +f option are not included in the num-flags total.

  • -sa

Antidote flags are provided for players with bad flags.

  • -sb

Allow spawns on box buildings.

  • -set name value

Set BZDB variable name to value

  • -sl id num

Restrict flag id to num shots.

  • -spamtime time

Minimum time between player chat messages that are alike.

  • -spamwarn warnLimit

Number of warnings a player/spammer gets, who violates -spamtime.

  • -speedtol factor

Override the default speed auto kick factor. The factor should not be less then 1.0. The factor is a multiplier.

  • -srvmsg message

Define a server welcome message. This option can be used multiple times to define a multiline message.

  • -st time

Bad flags are automatically dropped after time seconds.

  • -sw count

Bad flags are automatically dropped after count wins. Capturing a team flag does not count as a win.

  • -synclocation

Forces all clients to use the same sun and stars location.

  • -synctime

Forces all clients to use the same time of day. The current time is determined by the server's clock. This disables the + and - keys on the clients.

  • -t

Adds teleporters to random maps. Has no effect on map files.

  • -time

Starts a countdown immediately when the server starts.

  • -timemanual

The countdown has to be started manually using the /countdown command. This is useful for matches.

  • -tk

Changes the default behavior where a player dies when he kills a teammate. When using this option, he will just get a -1 score penalty for the kill but not be killed in game.

  • -tkannounce

Announces team kills to the admin channel

  • -tkkr percent

Kicks players whose team killing to normal kill ratio is greater than percent [1-100]. A start up grace period is given to players.

  • -ts [micros]

Include timestamp information in DEBUG output useful for logging. If micros is specified, microseconds will be added to the timestamp.

  • -userdb file

Load group associations from file

  • -utc

Log timestamps in UTC (Coordinated Universal Time)

  • -vars file

Loads values for game configurable variables from file. Entries are one per line in the form: set variable value. For a list of variables that are configurable, in the BZFlag client, send a message with /set as the text.

  • -version

Prints the version number of the executable.

  • -vetoTime

Max seconds authorized user has to abort poll(default is 20).

  • -votePercentage

Percentage of players required to affirm a poll (unspecified, the default is 50.1%).

  • -voteRepeatTime

Minimum seconds required before a player may repeat a vote.

  • -world world-file

Reads a specific BZFlag .bzw world file in BZW format as the game map.

  • -worldsize world-size

Changes the size for random maps

See also[edit]