View Single Post
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 12-01-2009 , 04:11   Re: TF2 Stats With Web Ranking and Item Logger
Reply With Quote #30

Quote:
Originally Posted by MjrNuT View Post
Ok, I didn't realise that what I have underlined above was explicit. Thought this could be changed.

Thanks!

No issues whatsoever at all.
Yea, the "tf2stats" is what the plugin uses to find its settings.

Quote:
Originally Posted by SCE_Ghost View Post
So I want to host the webstats on my website server, I setup an db for the stats. Im still getting an sql error. I notice in tf2-stats.cfg there is a place for webinterface settings, do I add the correct settings? if so which file do I direct it to?

SOrry for the noob questions just trying to clarify.
I'm not sure what you're asking exactly.

What you need to do is:
  • Create a database on your webserver
  • Create a user/password for that database and give it full access. (make sure to allow access from your gameserver's IP)
  • Edit your sourcemod databases cfg file with the IP, database name, username and password for the database.
  • Restart your gameserver and load the ranking plugin.
Once thats done correctly, the plugin will populate the database with the correct tables/fields.
If the web interface can't connect to the database, it could be because the db settings are incorrect in the settings.php include, or because the correct tables don't exist in the database (make sure the plugin is working).
__________________
DarthNinja is offline