Local chat filter
There is no need to rely on the server owners to protect yourself from unwanted language. You can filter chat locally from your BZFlag client.
The "-badwords" option is used in conjunction with a file that contains the words to be blocked. To use this option you must start your client from a command line. Once the filter is enabled, it will stay active until deactivated. (It saves this option to the Config file ). To deactivate it, edit this config.cfg file and comment out the command with the path with a # in front of the line.
A multilingual badwords file can be found in source downloads.
Starting the client with a command line
The game client must be started with a command line option to enable the local filter.
Linux and Unix
On Linux or other Unix-like systems the game client can be started with command line options directly from the terminal.
bzflag -badwords /path/to/badwords.txt
Microsoft Windows users can follow the following steps to create a shortcut that starts the game client with bots.
- Locate the BZFlag shortcut installed in the programs section of the start menu.
- Drag the BZFlag shortcut with the right mouse button on to the desktop.
- Pick the "Copy here" item from the context menu that pops up when the drag is complete.
- Click on the Copied shortcut with the right mouse button and pick the "properties" item.
- Find the "Target" field in the shortcut properties window that is opened, and click in it.
- Use the right arrow key to find the end of the text in the target field. It will end in bzflag.exe".
- After the last quote(") add a space and then -badwords /path/to/badwords.txt
- Save the changes by hitting the OK button at the bottom.
Running this shortcut will now start the server with chat filtering.
Mac OS X
The Mac OS X method for starting the game with bot support is the same as the Linux method, but the path to the bzflag client is required. If you installed BZFlag in your applications folder, then the command that needs to be typed into terminal will be along the lines of:
/Applications/BZFlag.app/Contents/MacOS/bzflag -badwords /path/to/badwords.txt