Contents
home
Getting Started
getting help
download
Store
help
developers
screenshots
license
get involved!
links
wiki
stats
forums
CTF league

sourceforge
 browse Subversion
 bug reports
 SVN access
 feature requests
 mailing lists
 maps
 support
opengl
sourceforge
Support This Project
linuxgames
telefragged
Customizing BZFlag

This document only applies to version 1.7. Earlier versions are customized differently. Run `man bzflagrc' on your system for more information.
Sound Files

You can customize the sounds that BZFlag plays by getting it to load your own sound files. You can do this by replacing the original sound files themselves; by putting sound files in another directory and using the -directory command line option; or by copying the original data files to a new location, replacing the sound files, and using the -directory option. On UNIX, you can of course use links to data files instead of making copies.

The sound files must have the original name. The files are 22.05kHz 16 bit WAV files, stereo or mono. The sound files are (not including the usual extension .wav):
boomPlayed when a shell explodes.
explosionPlayed when a tank explodes.
firePlayed when a shot is fired.
flag_alertPlayed when your team flag is grabbed by an enemy.
flag_dropPlayed when a flag is dropped.
flag_grabPlayed when a flag is grabbed.
flag_lostPlayed when your team flag is captured.
flag_wonPlayed when you capture an enemy flag.
jumpPlayed when a tank jumps.
landPlayed when a tank lands.
laserPlayed when the laser is fired.
popPlayed when a tank appears in the game.
ricochetPlayed when a shot ricochets.
shockPlayed when the shock wave is fired.
teleportPlayed when a tank is teleported.

Configuration File

BZFlag saves state across invokations in a file. On UNIX systems, this file is ~/.bzflag or ~/.bzflag.$(HOST); the latter is used only if HOST is defined. On Windows systems, this file is bzflag.bzc and it's in your profile directory. The format of the file is the same regardless of platform.

This page describes the format of the configuration file and the options that BZFlag understands and uses.

Not all options are available through the GUI or the command line. Options only available through the configuration file are marked in bold. Options not available through the GUI are marked in italics. Some options available through the GUI are not available from the command line; these are not marked.

Format

Each line in the file begins with a name (containing no whitespace) followed by whitespace, followed by a value. The value begins at the first non-whitespace character and includes all characters to the end of the line.

Server Options

callsignLast callsign (see -callsign).
emailLast email (see -email).
listSet the server list server url (see -list).
portLast server port number (see -port).
serverLast server.
team Lastteam name (see -team).
interfaceLast multicast interface (see -interface).
startcodeUsed for start server menu. Use the GUI to modify this.

Rendering Options

blendyes/on -- turns blending on or off.
ditheryes/no -- turns dithering on or off.
gammaSets the gamma correction value (brightness).
geometrySet the window geometry; uses standard X geometry format.
lightingyes/no -- turns lighting on or off.
qualitylow/medium/high -- sets the rendering quality level.
resolutionSets the default screen resolution.
shadowsyes/no -- turns shadows on or off.
smoothyes/no -- turns point & line antialiasing on or off.
textureSets the texturing filter or turns texturing off. Values can be: no, nearest, linear, nearestmipmapnearest, linearmipmapnearest, nearestmipmaplinear, and linearmipmaplinear.
viewnormal/stereo/three -- see the -view command line option.
zbufferyes/no/disable -- turns the zbuffer algorithm on or off. No zbuffer is allocated when disabled.
eyesepSets the distance between the eyes for stereo rendering.
focalSets the distance to the focal plane for stereo rendering.
maxlodSets the maximum level of detail to render. Walls are meshed when lighting is on and this limits the number of polygons that will be generated.
zbuffersplityes/no -- uses a hack to clear the zbuffer less often, at expense of depth resolution.
zoom1-8 -- renders at a low resolution and zooms pixels by this factor.
redcolorThree floating point numbers between 0 and 1 (inclusive) -- Gives the red, green, and blue proportions (respectively) of a red team tank's color. This is mainly intended for colorblind users to adjust team colors to something they can unambiguously perceive.
greencolorLike redcolor but for green team tanks.
bluecolorLike redcolor but for blue team tanks.
purplecolorLike redcolor but for purple team tanks.
redradarThree floating point numbers between 0 and 1 (inclusive) -- Gives the red, green, and blue proportions (respectively) of a red team tank's color on radar. This is mainly intended for colorblind users to adjust team colors to something they can unambiguously perceive.
greenradarLike redradar but for green team tanks.
blueradarLike redradar but for blue team tanks.
purpleradarLike redradar but for purple team tanks.
enhancedradarEnables blending of buildings on radar based on height.

Key Options

Key values are either a single key's name or two key names separated by a slash (e.g. =/+). The mouse buttons are treated as keys and named `Left Mouse', `Middle Mouse', and `Right Mouse'. Special keys are named by the label on the US keyboard. For example, F1, Tab, Home, etc. The spacebar uses the name `Space'. Other keys use their face character; for example, A, B, Z, 4, =, }.

Note that BZFlag uses some keys that don't have options, so they cannot be customized. The frames per second toggle is such a key. These functions are masked if a customizable key uses that key.

binocularsKeyToggles binoculars.
dropFlagKeyThe key to drop a flag.
fireKeyThe key to shoot.
flagHelpKeyToggles flag help.
identifyKeyThe key to identify/lock-on a target.
jumpKeyJumps.
pauseKeyPauses the game.
scoreKeyToggles the score sheet.
shortRangeKeySets the radar to short range.
mediumRangeKeySets the radar to medium rage.
longRangeKeySets the radar to long range.
sendAllKeySends a message to everybody
sendTeamKeySends a message to teammates.
sendNemesisKeySends a private message to last victim or killer.
sendRecipientKeySends a private message to a player.
timeBackwardKeyChanges the time of day backward.
timeForwardKeyChanges the time of day forward.

ALT-F1 to ALT-F10 and CTRL-F1 to CTRL-F10 lets you send predefined messages to all players resp. to your team. You can define these messages in your config file:
quickMessage1arbitrary text -- define quick message for ALT-F1
quickMessage2arbitrary text -- define quick message for ALT-F2
......
quickTeamMessage1arbitrary text -- define quick team message for CTRL-F1
quickTeamMessage2arbitrary text -- define quick team message for CTRL-F2
......

Other Options

directoryThe directory where the data files are.
volume0-10 -- sets the sound effect volume.
latitudeThe latitude used for celestial calculations.
longitudeThe longitude used for celestial calculations.
fakecursoryes/no -- when on BZFlag draws a cross hair where the cursor is. This is primarily useful on 3D pass-through cards like the 3Dfx Voodoo.
mousegrabyes/no -- when off BZFlag will not grab the mouse under any circumstances. BZFlag will otherwise grab the mouse when it thinks not grabbing it may interfere with the game.
Search This Site Google  
copyright © CurrentMaintainer 1993-2008