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

Difference between revisions of "Local chat filter"

From BZFlagWiki
Jump to: navigation, search
(Initial editing)
(Microsoft Windows: typos, use end key (simpler), Windows file path (C:\path\ not /path/))
Line 17: Line 17:
  
 
===Microsoft Windows===
 
===Microsoft Windows===
Microsoft Windows users can follow the following steps to create a shortcut that starts the game client with bots.
+
Microsoft Windows users can follow the following steps to create a shortcut that starts the game client with chat filtering enabled.
 
# Locate the BZFlag shortcut installed in the programs section of the start menu.
 
# 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.
 
# Drag the BZFlag shortcut with the right mouse button on to the desktop.
Line 23: Line 23:
 
# Click on the Copied shortcut with the right mouse button and pick the "properties" item.
 
# 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.
 
# 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".
+
# Press the "End" key on your keyboard to jump to 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'''  
+
# After the last quote(") add a space and then '''-badwords C:\path\to\badwords.txt'''  
 
# Save the changes by hitting the OK button at the bottom.
 
# Save the changes by hitting the OK button at the bottom.
  
Running this shortcut will now start the server with chat filtering.
+
Running this shortcut will now start the client with chat filtering.
  
 
===Mac OS X===
 
===Mac OS X===

Revision as of 11:00, 14 September 2008

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.

Overview

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

Microsoft Windows users can follow the following steps to create a shortcut that starts the game client with chat filtering enabled.

  1. Locate the BZFlag shortcut installed in the programs section of the start menu.
  2. Drag the BZFlag shortcut with the right mouse button on to the desktop.
  3. Pick the "Copy here" item from the context menu that pops up when the drag is complete.
  4. Click on the Copied shortcut with the right mouse button and pick the "properties" item.
  5. Find the "Target" field in the shortcut properties window that is opened, and click in it.
  6. Press the "End" key on your keyboard to jump to the end of the text in the target field. It will end in bzflag.exe".
  7. After the last quote(") add a space and then -badwords C:\path\to\badwords.txt
  8. Save the changes by hitting the OK button at the bottom.

Running this shortcut will now start the client 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