Raised This Month: $ Target: $400
 0% 

Help Needed With Source Bans


Post New Thread Reply   
 
Thread Tools Display Modes
Donski
Senior Member
Join Date: Sep 2012
Old 08-27-2014 , 15:20   Re: Help Needed With Source Bans
Reply With Quote #11

I don't think it's a connection issue since it seems like it found the database, but could not find the exact tables.

Maybe check the config.php in your Sourcebans install (should be on root folder I believe) and make sure DB_PREFIX is set correctly.

EDIT: Oops, ninja'ed. After you changed the DB_PREFIX to _ your webpage stopped working, but were you still getting the error in your game server?

Last edited by Donski; 08-27-2014 at 15:25.
Donski is offline
sparkie951
Member
Join Date: Jul 2014
Old 08-27-2014 , 15:27   Re: Help Needed With Source Bans
Reply With Quote #12

Quote:
Originally Posted by Donski View Post
I don't think it's a connection issue since it seems like it found the database, but could not find the exact tables.

Maybe check the config.php in your Sourcebans install (should be on root folder I believe) and make sure DB_PREFIX is set correctly.
It is in the root folder.. The webpage works great and that is what uses the config.php... The problem is in the database.cfg file in the fact that the sourcebans.smx file uses the sourcemod\configs\database.cfg. It is accessing the server but it is trying to open up the wrong file names... For Example

Table name: sb_bans on the SQL Server is being called from sourcebans.smx as sbbans. Note that it is leaving out all the underscores when accessing this...

Excert from my addons\sourcemod\configs\database.cfg

"sourcebans"
{
"driver" "mysql"
"host" "173.12.236.113"
"database" "ins"
"user" "insuser"
"pass" "xxxxxxxx"
"port" "3306"
}
sparkie951 is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 08-27-2014 , 15:45   Re: Help Needed With Source Bans
Reply With Quote #13

That's very odd. Last time I had an issue where my server wouldn't connect right I had the ServerID in sourcebans.cfg wrong.

Edit: Speaking of the sourcebans.cfg, is:

"DatabasePrefix" "sb"

set right?
__________________

Last edited by Dr_Knuckles; 08-27-2014 at 15:47.
Dr_Knuckles is offline
Donski
Senior Member
Join Date: Sep 2012
Old 08-27-2014 , 15:47   Re: Help Needed With Source Bans
Reply With Quote #14

I understand that, but I was under the impression that the plugin was also using some information from the webpanel's configs. I guess not.
Donski is offline
Donski
Senior Member
Join Date: Sep 2012
Old 08-27-2014 , 15:54   Re: Help Needed With Source Bans
Reply With Quote #15

There's also a line in sourcebans.cfg (addons/sourcemod/configs/sourcebans/sourcebans.cfg):

"DatabasePrefix" "sb"

Maybe check that? I think it never needs to be changed since both use sb as default prefix but I'm running out of ideas

I downloaded a fresh copy of 1.4.11 and checked the code it definitely has the underscores though.

Last edited by Donski; 08-27-2014 at 16:03.
Donski is offline
Jammy
Member
Join Date: Aug 2014
Old 08-27-2014 , 16:12   Re: Help Needed With Source Bans
Reply With Quote #16

Again, this is a simple prefix issue as I've already mentioned. You are likely running into a php error when the web page loads blank after you make config changes. When that happens view the web pages source and see what the error is.
Jammy is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 08-28-2014 , 04:56   Re: Help Needed With Source Bans
Reply With Quote #17

Did you try to open firewall for all? Just for testing purposes. If it works then, you have to open some ports
__________________
micazoid is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode