Big Brother Bot

Requirements

  1. Python 2.3+ - http://www.python.org
  2. MySQL-python (Tested with 0.9.2 and 1.0) - http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775
  3. MySQL (Tested with 3.23) - http://www.mysql.com/
  4. Python Elementtree package - http://www.python.org/pypi/elementtree/1.2.6-20050316
  5. setuptools - http://peak.telecommunity.com/dist/ez_setup.py (download and run)

License

BigBrotherBot?(B3) Copyright (C) 2005 Michael "ThorN" Thornton

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Assumptions

I assume you know how to use python and MySQL. If not you should consult the documentation for these if you have problems or questions on how to administer each.

Installation

You have two choices of installation for b3. You can use the easy to install Python Egg or the source distribution.

Installing Python Egg

  1. Download and run the setup tools installer if you haven't already.
  2. Run easy_install -U b3.

Note: MySQL-python does not seem to download and install correctly as a easy_install package. You should instead install it directly by getting the latest install link of the Source Forge page and run easy_install on it.

It should be that simple. B3 and all its dependancies should be installed. You can skip to Running as a Python Egg

Installing Source Distribution

  1. Download the latest source distribution from http://www.python.org/pypi/b3
  2. Extract the package to a suitable location, example: /usr/local/games/b3

Setting up MySQL

  1. Create a database in MySQL for B3 to use. Create a user that has full permissions on this database for B3.

Note: You could also do this by running the script b3/docs/b3-db.sql on MySQL,but don't forget to edit the password in that file first.

  1. Run the B3 database SQL script (b3/docs/b3.sql) on your B3 database.

Configuring B3

See Configuring B3 for configuration information for B3.

Configuring your game

See Game Configuration for configuring your game.

Running B3

Running as a Python Egg

  1. Run b3_run specifying your config file:
    b3_run -c /home/b3/conf/b3.xml
    

Running as a Source Install

  1. Change to the install directory:
    cd /usr/local/games/b3
    
  2. Run b3_run.py specifying your config file:
    python ./b3_run.py -c /home/b3/conf/b3.xml
    

Note: You can run b3_run --help for more options.

Checking Status

  1. Check b3.log
    tail -n100 -f b3.log
    

Setup Users

  1. Change iamgod to 0 in the b3/conf/plugin_admin.xml
  2. Connect to the server and type !iamgod. This will register you as the server owner.
  3. Change iamgod back to "none" after you are registered.