What is SourceBans++? And how is it different from Sourcebans?

SourceBans++ is a global administration system for multiple Source based game servers where admins and bans can be added across more than one server.

Web Panel Which ports does the SourceBans Web-Panel require to be open?

If your web panel shows Error Connecting for your game server when it is actually online,
ask your web host to open UDP incoming from your game server port (usually 27015).

If either the RCON console, Admin Rehashing or Kick-It does not work on your web panel,
ask your web host to open TCP outgoing to your game server port (usually 27015).

Use sb_debug_connection.php, a small testing script to get more detailed debugging information. Open the php file and add your gameserver's ip and port as described in the comments.

You should always check beforehand, if your gameserver banned your webserver's ip with listip in rcon. Remove it from the banned_ip.cfg and removeip IP via rcon.

Plugin Why is the "Ban player" option missing in SourceMod's admin menu?

Most likely SourceMod's basebans.smx was still loaded when you installed SourceBans' game plugin. The game plugin automatically disables basebans.smx, but your server needs to be restarted for the "Ban player" option to come available.

Some hosters might disallow plugins to move files. Make sure the basebans.smx is in the plugins/disabled folder.

Web Panel Player list displays "Max Players" instead of all the players
Not showing players

Add host_players_show 2 to your server.cfg or any startup config file

Web Panel / Plugin I wish to translate Sourcebans++ for my community

Website

  • Copy the theme you want to translate into a new folder
  • Modify all files ending in .tpl with the translation
  • Modify theme.conf.php while following theme license outline
  • Enable the theme in web panel setting and you're done

Plugin

  • Before you get started, you'll need a basic understanding of syntax or else you'll mess it up
  • Navigate to Sourcemod's translations directory
  • Open sourcebans.phrases.txt, sourcecomms.phrases.txt, and sourcesleuth.phrases.txt
  • Follow this guide for modifying the translation files
Support Where can I get additional support?

Before proceeding to ask for help, please have these files ready

  • Web Panel Related: error.log. For apache, it typically resides in /var/log/apache2/. Check the location via error_log in your php.ini file
  • Plugin Related: errors_%DATE%.log, located in tf/addons/sourcemod/logs

After you gather the necessary log files, join our Discord using the button below.

Discord
Web Panel Why is the Web-Panel showing "Error Connecting (IP:PORT)" for my server, when it's actually Online?
Web Panel My Banlist doesn't show up, but all other pages do. What can I do?

Your PHP configuration restricts SourceBans to a certain amount of memory.
When viewing the Banlist it tries to lookup the according country for the IP. This is done by loading a ~7MB database file into the memory.

There are several ways to solve this.

  • Remove the '//' in front of this line in your config.php: define('SB_MEM', '128M');
  • Ask your webhost to increase the PHP 'memory_limit' setting.
  • If it still doesn't show up, check the box for 'No Country Research' in your webpanel settings page.
Web Panel Why is Sourcebans++ not sending email reports to me (the owner)?

This is because, by default, the owner account is not assigned to any permission group.

Navigate to Admin Settings, edit, and assign yourself to an admin group

Web Panel I accidently locked myself out by having Steam only login, how can I fix this?

Using a database query tool (PHPMyAdmin), goto _settings table and modify config.enablesteamlogin setting and set the value to 1

Web Panel Why is the webpanel showing me a blank white page?

This is because PHP has encountered a fatal error and cannot show any more of the page.

To show the error message that PHP produced, you need to add the debug parameter to your URL. For example, if your current URL is http://www.sourcebans.net/index.php then you can add the debug parameter by changing the URL to http://www.sourcebans.net/index.php?debug=1

If your URL already has parameters, then add debug on the end, like this: http://www.sourcebans.net/index.php?p=home&debug=1

In most cases, the error message will be self explanatory, but if you need help, then post on our forums.

Plugin Why does the game plugin error log tell me "Database failure: Could not find database conf "sourcebans"?

You forgot to add the "sourcebans" section to SourceMod's databases.cfg, as instructed in the installation.

Please go to http://your.sourcebans.install/index.php?p=admin&c=servers&o=dbsetup (replace your.sourcebans.install with your own URL) and add the "sourcebans" section to your databases.cfg.

Plugin I get the following error: Database failure: [1044/1045/1130/2002/2003]

If the error message reads "Can't connect to local MySQL server through socket", you need to find the "sourcebans" section in databases.cfg and change the value of "host" from "localhost" to the path of your mysql.sock file. If you don't know where mysql.sock is located, ask your gameserver host.
 

Otherwise, most likely your MySQL server does not allow incoming connections from your gameserver. To fix this, you can do either of the following:

  • Go into your webserver's control panel and check if there's a section called MySQL Access Hosts, Remote MySQL or something named similar. There you can add the IP address mentioned in the error. This is usually the IP of your gameserver, but it can also be slightly different, so make sure you copy and paste it exactly from the error.
  • The other option is to run the following query on your SourceBans database (for example using phpMyAdmin): GRANT ALL ON database.* TO 'username'@'ip';

You will have to replace "database" with your SourceBans database name, and "username" and "ip" with those mentioned in the error.

Plugin I'm getting: Could not find driver "mysql"
  • Please make sure dbi.mysql.ext.so (dbi.mysql.ext.dll on Windows) extension exists and check if it is loaded via sm exts list
  • Make sure the extension is executable via chmod u+x dbi.mysql.ext.so
  • Install zlib (Requires SSH):

    • 32-Bit Debian/Ubuntu: apt-get install zlib1g
    • 64-Bit Debian/Ubuntu: apt-get install lib32z1
    • 32/64-Bit Fedora: yum install zlib.i686
    • 32/64-Bit Mandriva: urpmi zlib1
    • 32-Bit SUSE: zypper install libz1
    • 64-Bit SUSE: zypper install libz1-32bit
  • If all of the above does not work, use ldd -d -r dbi.mysql.ext.so to look for missing dependencies, and use Google to look them up