Raised This Month: $ Target: $400
 0% 

View Poll Results: MySQL database support for server list?
Yes, please add this feature, I would immediately use it 13 72.22%
Yes, please add this feature, I don't need it now but I might make use of it later 1 5.56%
I don't care, I wouldn't use it anyway 1 5.56%
Don't add it, use your resources to add more important features 1 5.56%
xREDIRECT is big and complicated already, don't bloat it even more with this useless feature 0 0%
What is a MySQL database anyway? 2 11.11%
Voters: 18. You may not vote on this poll

MySQL database support for server list?


Post New Thread Reply   
 
Thread Tools Display Modes
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 11-15-2008 , 20:55   Re: MySQL database support for server list?
Reply With Quote #11

Even better

I think that option would be very beneficial.
__________________
bmann_420 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 11-17-2008 , 02:38   Re: MySQL database support for server list?
Reply With Quote #12

To continue to spin this thread this could help building really large comunities/servernetworks of servers who doesn't know about themselfe at all....
Think about this: one database on a website that has a form to register/remove his own servers. Putting them into the section he wants, of couse, the section must be extended to the region of the server. Updating the server-list once or twice a day. This way you could find easily a server for any mod you want without leaving the server you are connected to and without looking onto any website.
__________________

Mordekay is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-01-2008 , 20:34   Re: MySQL database support for server list?
Reply With Quote #13

Quote:
Originally Posted by davidonpda View Post
In fact, I would like to see others voice approval and support that this would be a utilized function. If I am the only one that is going to use it, I should do it myself.
the vote result is pretty clear, so the decision is made that xREDIRECT will get this feature.
like bmann suggested it will be controlled by a CVAR (or even more). i think additionally there will be a define option in the source code to turn it on or off, so the SQL code is not compiled into all the binaries of people who don't plan to ever use SQL.

bug tracker entry for this is here.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
davidonpda
Junior Member
Join Date: Dec 2007
Old 12-01-2008 , 22:20   Re: MySQL database support for server list?
Reply With Quote #14

Let me know the format that it will be stored in the database, and I will begin working on a PHP front end for a webserver.
davidonpda is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 12-02-2008 , 12:48   Re: MySQL database support for server list?
Reply With Quote #15

No, this is a very good idea to add. What you should do is on plugin start, parse the mysql db for data and just hold it, don't keep trying to access it.

Then compare ip with net_address (cvar) to blank it out.

But your smart xOR..you should know
Styles is offline
Send a message via AIM to Styles
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-02-2008 , 13:23   Re: MySQL database support for server list?
Reply With Quote #16

the feature of a centralized server list in a database is meant to save admins from having to touch every single server for a list change. this means i need some interval where i refresh the data from the sql tables, otherwise the admin would have to restart every single server and then we're back at touching every server.

for servers that load a new map every 20 minutes it probably doesn't matter but there are servers with longer games (in NS a single game can easily take an hour or longer and the server is designed not to interrupt ongoing games with a map change), longer time limits or even 24/7 servers which need an automatic refresh. so, as i wrote in the bug entry, there will be this refresh but of course i won't constantly reload the list from the database every round or even read the data directly from there, in case you thought that. but well, that would be very far away from how the plugin currently works anyway, why should i do this
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-02-2008 , 18:13   Re: MySQL database support for server list?
Reply With Quote #17

A simple command fromin game or hlsw for a map change, is much easier than overwriting files for every server.
__________________
bmann_420 is offline
jsterling
SourceMod Donor
Join Date: Mar 2004
Location: Denver, CO, USA
Old 12-03-2008 , 18:05   Re: MySQL database support for server list?
Reply With Quote #18

You could connect to the database on server start and map change and have it write to the serverlist.ini and as bmann said also add a cvar to grab and write.
jsterling is offline
Send a message via AIM to jsterling
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-03-2008 , 20:50   Re: MySQL database support for server list?
Reply With Quote #19

i already said something about refreshing on start and map change - what do you do on 24/7 servers that maybe restart once a day? and on NS servers that might have a game running for 2 hours?

and it's not a CVAR but a command and xREDIRECT already has it: redirect_reload. of course this command will work for SQL server lists. i think bmann was rather talking about the "restart" command or "map"/"changelevel" anyway but i am sure redirect_reload is the better solution, it does not need any kind of restart to work (and it already works today).

why are you trying to convince me of not implementing an automatic refresh in a specific interval anyway? it would be like every 20 minutes. a selection every 20 minutes...for a mysql database...i really don't see where the problem is. the interval will be configurable or maybe even have the option to be completely deactivated.
of course i will run tests with it and should i notice the refresh causes a small lag everytime the plugin does it i might turn it off by default.

is that a solution everyone could live with?
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 12-03-2008 at 20:52.
xOR is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-03-2008 , 22:17   Re: MySQL database support for server list?
Reply With Quote #20

Quote:
Originally Posted by xOR View Post
of course i will run tests with it and should i notice the refresh causes a small lag everytime the plugin does it i might turn it off by default.

is that a solution everyone could live with?
I don't think it would be a problem if using threaded queries. Since the data set won't be anything too large, the processing would be fast enough so lag won't be noticed. I agree with your point, it's a great addition to the plugin, but you can configure it for whatever delay you want, or even disable it.
__________________

Community / No support through PM
danielkza 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 22:05.


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