Raised This Month: $12 Target: $400
 3% 

[ANY] Track server score (valve like)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Gachl
BANNED
Join Date: Feb 2009
Plugin ID:
1001
Plugin Version:
0.1.0
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Keep track of your VALVe server score and prevent delisting.
    Old 07-13-2009 , 06:01   [ANY] Track server score (valve like)
    Reply With Quote #1

    Server score tracker
    Version 0.1.0 (beta)
    Support level: Support everything

    Description

    VALVe is blacklisting servers with a bad server score. Many hosters are frightened their server could be delisted. If a server is delisted ALL servers on the IP of the delisted server are delisted, so you don't want to have a server delisted. This plugin keeps track of your VALVe score (approximate) so you know just about how healthy your server is.
    VALVe's rules are:
    • New servers start with a score of 0 points
    • Each time a player connects to a server, it loses 15 points (only once per day and per user)
    • For each minute the player stays on the server, it earns 1 point (up to a max of 45 points per player)
    Source: http://www.teamfortress.com/post.php?id=2338

    I released this plugin on request, but it's hard to test, so I ask you to help me testing it. Let it run a few days on your server and report all bugs! Thank you!
    If the plugin is final I will create a php based auto generated image that shows a line of your server score (last 10 days with highest and lowest).

    Installation

    Copy the files to these locations:
    Code:
    tf/addons/sourcemod/plugins/scoretracker.smx
    This plugin uses default as database handle, if you want to use an other database change line 4 #define DBNAME "yourdesireddb"

    This plugin is BETA so please report ANY BUG that appear.

    Usage

    CVars
    Quote:
    • sm_scoretracker_prefix
      The table prefix
    • sm_scoretracker_version
      The plugin version
    Commands
    Quote:
    • sm_serverscore
      Print the score of the last few days in your console.
    If you like this plugin please give me +Karma.
    Also rate this thread
    Thanks!

    Todo
    Stroked means done.
    • Add table prefix

    Changelog

    Code:
    v0.0.1 2009/07/13
    +	Plugin created.
    v0.0.2 2009/07/13
    *	Fixed players won't written to db.
    v0.0.7 2009/07/13
    *	No negative values would be possible
    &	Authors comment: Threaded sql is a bitch!
    v0.1.0 2009/07/23
    +	Added table prefixes
    Please report bugs here, I'll try to fix them as soon as possible.
    Attached Files
    File Type: sp Get Plugin or Get Source (scoretracker.sp - 1681 views - 8.8 KB)

    Last edited by Gachl; 07-23-2009 at 05:52. Reason: new version (0.1.0)
    Gachl is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 07-13-2009 , 07:20   Re: [ANY] Track server score (valve like)
    Reply With Quote #2

    Wow that really sucks that they are delisting a lot of servers, I'll be sure to add this one to my server straight away.

    Also someone might want to make a plugin, that asks the player to reconnect after 45min so that you can keep your scores healthy. Against people that could grief your server by connecting and disconnecting a lot.

    That just made me think of another plugin, to auto ban anyone who does that more then 3 times?
    __________________
    alinayg is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 07:31   Re: [ANY] Track server score (valve like)
    Reply With Quote #3

    That wouldn't be necessary, because a player can only lower the servers score (-15) once in 24 hours, so if a player reconnects 5 times in a short time, you don't lose 75 points, you'll lose only once 15 points and then you gain points with this player (even after he reconnected!)

    Last edited by Gachl; 07-13-2009 at 07:33.
    Gachl is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 07-13-2009 , 07:33   Re: [ANY] Track server score (valve like)
    Reply With Quote #4

    Ahh, alright then, thanks for clearing that up.

    Also it seems that the vbcompiler is down on sourcemod.com.
    __________________
    alinayg is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 07:39   Re: [ANY] Track server score (valve like)
    Reply With Quote #5

    Oh right, sourcemod.net is down and alliedmods.net is fcking slow at the moment. I'll upload a compiled version while sm.net is down!
    Gachl is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 07-13-2009 , 07:49   Re: [ANY] Track server score (valve like)
    Reply With Quote #6

    Note to self: Download full install for sourcemod.

    I just want to get this going and start testing it!

    Does it always go down at this time?
    __________________
    alinayg is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 07:55   Re: [ANY] Track server score (valve like)
    Reply With Quote #7

    No, seems like dns isn't working right (maybe nameservers down, maybe apache fails, who knows). I uploaded a compiled version, so you can use it.
    Gachl is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 09:55   Re: [ANY] Track server score (valve like)
    Reply With Quote #8

    It's up again, removed the precompiled version.
    Gachl is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 10:48   Re: [ANY] Track server score (valve like)
    Reply With Quote #9

    New version up
    Code:
    v0.0.2 2009/07/13
    *	Fixed players won't written to db.
    Gachl is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-13-2009 , 11:58   Re: [ANY] Track server score (valve like)
    Reply With Quote #10

    New version up
    Code:
    v0.0.7 2009/07/13
    *	No negative values would be possible
    &	Authors comment: Threaded sql is a bitch!
    Gachl is offline
    Reply


    Thread Tools
    Display Modes

    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 12:02.


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