User avatar
MAGIC
Posts: 1303
Joined: Wed Dec 26, 2012 4:44 am
Location: Germany/Frankfurt
Contact: Website Twitter

Quick tutorial for setting up B3 (Windows)

Tue Feb 25, 2014 8:21 pm

--> Quick tutorial for setting up B3 (Windows) <--


What is B3?
Big Brother Bot (B3) is a complete and total server administration package for online games. It is the prefered ingame RCON Tool currently available.

B3 is designed primarily to keep your server free from the derelicts of online gaming, but offers more, much more. With the stock configuration files, B3 will keep your server free from offensive language, and team killers alike. A completely automated and customizable warning system will warn the offending players that this type of behavior is not allowed on your server, and ultimately kick, and or ban them for a predetermined time limit.

(Source: http://www.bigbrotherbot.net)



I will use XAMPP, since it's somewhat easy to install. Please do not use this on a dedicated server! Instead install your webserver and MySQL server manually! (security and so on). Well I bet you know that, since you are renting a dedicated server, and for that you must have knowledge about that stuff!

Requirements:
  • PC
  • Webserver (in this case XAMPP)
  • HDD Space
  • basic knowledge about PCs

Download the files:
  • Download the latest version of XAMPP from here
  • Bigbrotherbot from here. I suggest to use the .zip package
  • Download Notepad++ for editing config files


--> Install XAMPP + import the .b3.sql <--


  1. Install the latest XAMPP, which you downloaded some minutes ago.
  2. Start the XAMPP Control Panel via the Shortcut on your Desktop or via the 'xampp-control.exe' in C:\xampp (default path)
  3. You will see a shiny window. Click at the 'Start' buttons near Apache and MySQL. If you see two green stripes, it's working. If not, then there is something wrong. (Mostly Skype is blocking Port 80 -> Tools - Options - Advanced - Connection - Remove the tick 'Use port 80 and 443 as alternatives for incoming connections') If it still not working please use Google to get answers! I will not help you at this point. If you fail again, then you don't have the basic knowlegde about PCs!
  4. Extract the B3.zip (named BigBrotherBot-1.9.2-win32.zip or something like that) somewhere on your HDD, which you download some minutes ago. And don't touch any files now!
  5. Go into the /sql/ folder and remember this (b3.sql) filename. You will need it soon™
  6. Open your browser and go to http://localhost/phpmyadmin/, you don't need to enter a password. (I recommend to set it - ask Google how)
  7. Now something 'difficult': Click at User, and search for Add user. In the next window enter a new Username (please something easy, like 'b3'), Host is localhost (use the dropdown menu), and generate a password (hint: there is a button. For me is it 'eKxeQ5YSNCJbP8eJ'). And please, please: Enable 'Create database with same name and grant all privileges'. Now click at 'Add User'. The window will close and you will see a new user at the left side.
  8. Click at the username, which you created some seconds ago, and go to Import. You will see a button called 'Browse...' Click at it and search your 'b3.sql'. Scroll down and click at 'Go'. Successful? You will see some output, like 'Import has been successfully finished, 27 queries executed. (b3.sql)'
  9. Close your browser.


--> Configure B3 <--


  1. Go in your /conf/ folder and download this default b3.xml. After putting it in your conf folder open it with Notepad++.
  2. I will show you now the most important settings in this .xml:
    Change your MySQL data in line 21 (I will use the settings, which I used above):

    Code: Select all

    <set name="database">mysql://b3:eKxeQ5YSNCJbP8eJ@127.0.0.1/b3</set>

  3. Change your timezone in line 28:

    Code: Select all

    <set name="time_zone">CET</set>

  4. Change your public IP in line 40 (maybe 127.0.0.1 is working aswell):

    Code: Select all

    <set name="public_ip">11.22.33.44</set>

  5. Change your port in line 42:

    Code: Select all

    <set name="port">19567</set>

  6. Change your Rcon IP (maybe 127.0.0.1 is working aswell) in line 44:

    Code: Select all

    <set name="rcon_ip">11.22.33.44</set>

  7. Change your Rcon port in line 46:

    Code: Select all

    <set name="rcon_port">48888</set>

  8. Change your Rcon password in line 48:

    Code: Select all

    <set name="rcon_password">myrconpassword</set>

  9. You can change the other settings, if you want.
  10. Check the /conf/ folder for plugins. Edit them (just open them with Notepad++ and read all comments), and you are done.
  11. Start your server and after that the 'b3_run.exe'
  12. Join the server and type in the public chat following command: !iamgod



Q/A

B3 setup
B3 can't find the database
Open your b3.xml in b3/conf/ and go to the line where your database is setted. Make sure it has the following format:

Code: Select all

<set name="database">mysql://[db-user]:[db-password]@[db-server[:port]]/[db-name]</set>

(use the user, password and database you've setted earlier)


Multiple instances
Right click "b3_run.exe", create shortcut, right click the shortcut, properties, in the target box add to the end of the text in that box: " -c "conf/<name>.xml"


Usage of the !login command
To prevent that someone changes their XUID to yours, and therefore controls your server, you can use the 'login-plugin'.
1.) Add this line to your b3.xml at the 'plugin-section':

Code: Select all

<plugin config="@conf/plugin_login.xml" name="login" />

2.) Change the plugin_login.xml, loacted in the conf folder to your favorite settings
3.) Go into your MySQL database, and go to <databasename> (ex. 'b3') --> 'clients' --> search your name (e.g. MAGIC) and click at 'edit'.
4.) Go to this MD5-'translator' homepage, because your password have to saved as MD5-hash. Enter your password in the TEXT thingy and click at ENCODE. Now you can copy your password as MD5-hash...
5.) Change to your MySQL database and paste the MD5-hash password in the password-field.
6.) Start/Restart your B3 and join your server.
7.) Now login with

Code: Select all

/!login <password>


IMPORTANT
When you bind/write this command then be sure you are hiding it (default with /!login <password>! Or your password is revealed!




Server
How can I get superadmin on my server?
Type !iamgod in the server's chat, it should give you superadmin ([100]).


How can i give other people admin?
type !putgroup <name> <group>
Default groups are: moderator, admin, fulladmin, senioradmin, superadmin


Which commands can I use?
Check this site: http://wiki.bigbrotherbot.net/usage:commands


I'll (try) to update this
Image

User avatar
weavii
Posts: 151
Joined: Tue Dec 24, 2013 2:08 pm

Re: Quick tutorial for setting up B3 (Windows)

Tue Feb 25, 2014 8:42 pm

Thanks for the input!
This will help a lot, since we plan to host some more servers :D

It is even open source, I wonder why I haven't stumbled upon that one yet..
Image

User avatar
MAGIC
Posts: 1303
Joined: Wed Dec 26, 2012 4:44 am
Location: Germany/Frankfurt
Contact: Website Twitter

Re: Quick tutorial for setting up B3 (Windows)

Tue Feb 25, 2014 9:45 pm

Image

User avatar
weavii
Posts: 151
Joined: Tue Dec 24, 2013 2:08 pm

Re: Quick tutorial for setting up B3 (Windows)

Sun Mar 02, 2014 8:59 pm

You only installed the webserver for phpmyadmin, didn't you?
B3 can connect to MySQL with MySQL Python, is there need for it? Or are there any plugins using webserver to show infos/stats?
Image

User avatar
MAGIC
Posts: 1303
Joined: Wed Dec 26, 2012 4:44 am
Location: Germany/Frankfurt
Contact: Website Twitter

Re: Quick tutorial for setting up B3 (Windows)

Sun Mar 02, 2014 10:20 pm

weavii wrote:You only installed the webserver for phpmyadmin, didn't you?

Yeh, I did.
weavii wrote:B3 can connect to MySQL with MySQL Python, is there need for it? Or are there any plugins using webserver to show infos/stats?

Nah, you can use the 'normal' MySQL.
For stats you can use XLRStats(better you use seperated databases for your servers)
And for more information like public banlist, overall bans, overall players and so on, use Echelon
Image

User avatar
weavii
Posts: 151
Joined: Tue Dec 24, 2013 2:08 pm

Re: Quick tutorial for setting up B3 (Windows)

Sun Mar 02, 2014 11:23 pm

MAGIC wrote:
weavii wrote:You only installed the webserver for phpmyadmin, didn't you?

Yeh, I did.

weavii wrote:B3 can connect to MySQL with MySQL Python, is there need for it? Or are there any plugins using webserver to show infos/stats?

Nah, you can use the 'normal' MySQL.
For stats you can use XLRStats(better you use seperated databases for your servers)
And for more information like public banlist, overall bans, overall players and so on, use Echelon


Alright, Echelon looks cool. Can you send rcon commands directly through the web interface?
Image

User avatar
MAGIC
Posts: 1303
Joined: Wed Dec 26, 2012 4:44 am
Location: Germany/Frankfurt
Contact: Website Twitter

Re: Quick tutorial for setting up B3 (Windows)

Sun Mar 02, 2014 11:27 pm

weavii wrote:Alright, Echelon looks cool. Can you send rcon commands directly through the web interface?

indirectly
You can change a players adminlevel, but he has to reconnect in order to get the access. Or if you add a ban to another player, he won't be kicked
Image

User avatar
mouz
Posts: 227
Joined: Sun Apr 28, 2013 8:45 pm
Location: Serbia
Contact: Website

Re: Quick tutorial for setting up B3 (Windows)

Wed Apr 09, 2014 8:06 am

This is a really nice tutorial, I'll need to setup b3 again for my test server and I haven't done it since 3 years ago, so this helps and also I'm pretty sure there is no xuid stealing in bc2, unless of course someone logs in with your account :D

huntera3
Posts: 2
Joined: Fri Aug 16, 2013 4:38 am

Re: Quick tutorial for setting up B3 (Windows)

Sun Dec 07, 2014 7:09 pm

Bro can you make a video plz ? it will be so nice . :)

User avatar
mizudg
Posts: 1620
Joined: Mon Apr 01, 2013 5:09 pm
Location: Bulgaria
Contact: Facebook Skype YouTube

Re: Quick tutorial for setting up B3 (Windows)

Sun Dec 07, 2014 7:29 pm

I've been considering a B3 Tutorial on my channel. I'll see what I can do once I'm back at my computer.
Image

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests