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

Psychostats Interface Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author
urus
Senior Member
Join Date: Jan 2007
Plugin ID:
334
Plugin Version:
0.2
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Plugin provides ingame commands /rank and /top10 for Psychostats statistic
    Unapprover:
    Reason for Unapproving:
    Superceded by http://forums.alliedmods.net/showthread.php?p=955304
    Old 03-28-2008 , 13:26   Psychostats Interface Plugin
    Reply With Quote #1

    Click image for larger version

Name:	sm_psstats.jpg
Views:	13018
Size:	79.7 KB
ID:	25036



    Description

    Plugin provides ingame commands /rank and /top10 for Psychostats statistic.
    Plugin automatically detected how psychostats calculate stats - by ipaddr, worldid (steamID) or name. Thus plugin can work on LAN and Internet servers.
    Also plugin can work on all mods (CSS, DoDS, TF2, etc..)

    Plugin tested on LAN TF2 server (psychostats 3.1/works by ipaddr) and CSS Internet server (psychostats 3.1/works by steamID/name).
    Please give feedback if plugin works on your server (mod and psychostats version)!


    Requirements

    Psychostats web statistic (versions 3.1 or 3.0.x)


    Chat commands

    /rank - display menu with individual player information
    /top10 - display menu with top10 players


    Installation

    1. Copy psychostats_threaded_uni.smx into sourcemod\plugins folder
    2. Copy plugin.psychostats.txt into sourcemod\translations folder
    3. Copy this db information into sourcemod\configs\databases.cfg file (copy/past) and change bold text ("psstats" - should not change!):

    Code:
    "psstats" 
    {        
           "driver" "mysql"        
           "host" "localhost"        
           "database" "your_db_name"        
           "user" "your_db_user"        
           "pass" "your_db_password"        
           //"timeout" "0"        
           "port" "3306" 
    }
    4. Restart game server

    * you can change psychostats database tables prefix at the top of .sma file (if it need):

    Code:
    // Your psychostats tables prefix here
    new String:MysqlPrefix[10] = "ps";
    Quote:
    Most common problem (mysql and srcds on different boxes)

    Note: You will need to setup MySQL server to accept connections from your game server, or the plugin simply wont work

    Example error:
    L 02/08/2009 - 2360: [psychostats_threaded_uni.smx] Database failure: [1045]: Access denied for user 'totalblo_user'@'216.155.146.22' (using password: YES)

    Answer:
    Your mysql user totalblo_user must have access rights to psychostats database from srcds ip
    Changelog
    0.2
    Fixed mysql query for /top10 (query was too short for steamids and may be for nicks)
    Added mysql errors into sourcemod`s error log

    0.1
    Release


    Thanks authors sourcebans and N1G-TF2-RANK for ideas.



    WARNING! Latest extended version of this plugin here:
    http://forums.alliedmods.net/showthread.php?t=105735
    Attached Files
    File Type: smx psychostats_threaded_uni.smx (6.9 KB, 3813 views)
    File Type: sp Get Plugin or Get Source (psychostats_threaded_uni.sp - 9171 views - 14.2 KB)
    File Type: txt plugin.psychostats.txt (1.7 KB, 5246 views)

    Last edited by urus; 11-19-2009 at 01:07.
    urus is offline
    V0gelz
    Senior Member
    Join Date: Jun 2004
    Old 03-28-2008 , 13:30   Re: Psychostats Interface Plugin
    Reply With Quote #2

    Nicely done.
    gj
    __________________
    V0gelz is offline
    xJonny
    Junior Member
    Join Date: May 2007
    Location: England
    Old 03-28-2008 , 13:35   Re: Psychostats Interface Plugin
    Reply With Quote #3

    It would be nice to have the something that:

    Displays your rank and skill as a public chat message.
    Shows the next 4 players above and below you in the stats.
    Shows a box on the left filled with your stats (like statsme)
    Shows how long its been since the stats were updated.
    Shows the statsme window for that player. (only players currently on the server)

    Otherwise GJ
    xJonny is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 03-30-2008 , 10:54   Re: Psychostats Interface Plugin
    Reply With Quote #4

    Quote:
    Originally Posted by xJonny View Post
    It would be nice to have the something that:
    I know about this plugin, but i wanted lightweight plugin.

    To all.
    Please download new version (0.2). I find and fixed small error for /top10 command.
    Also download new plugin.psychostats.txt.
    See attach in first post.
    __________________

    Last edited by urus; 03-30-2008 at 11:06.
    urus is offline
    n00by
    Junior Member
    Join Date: Jan 2008
    Old 03-30-2008 , 12:19   Re: Psychostats Interface Plugin
    Reply With Quote #5

    Hello!

    I try to install the plugin, but i get this error when i start my server (cs:s)

    Code:
    [psychostats_threaded_uni.smx] Database failure: Could not find database conf "psstats"
    database.conf looks like this

    Code:
    "Databases"
    {
        "driver_default"        "mysql"
        
        "default"
        {
            "driver"            "default"
            "host"                "localhost"
            "database"            "sourcemod"
            "user"                "root"
            "pass"                ""
            //"timeout"            "0"
            //"port"            "0"
        }
        
        "storage-local"
        {
            "driver"            "sqlite"
            "database"            "sourcemod-local"
        }
    }
    "psstats" 
    {        
           "driver" "mysql"        
           "host" "127.0.0.1"        
           "database" "psychostats"        
           "user" "xxx"        
           "pass" "xxx"        
           //"timeout" "0"        
           "port" "3306" 
    }
    __________________
    www.eistee.tk
    eistee.no-ip.com:27015 #
    |eistee.server|CS:S|
    eistee.no-ip.com:27016 # |eistee.server|CS 1.6|

    Last edited by n00by; 03-30-2008 at 12:24.
    n00by is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 03-30-2008 , 13:08   Re: Psychostats Interface Plugin
    Reply With Quote #6

    You have wrong location psstats.
    Must be:


    Code:
    "Databases"
    {
        "driver_default"        "mysql"
        
        "default"
        {
            "driver"            "default"
            "host"                "localhost"
            "database"            "sourcemod"
            "user"                "root"
            "pass"                ""
            //"timeout"            "0"
            //"port"            "0"
        }
        
        "storage-local"
        {
            "driver"            "sqlite"
            "database"            "sourcemod-local"
        }
    
        "psstats" 
        {        
            "driver" "mysql"        
            "host" "127.0.0.1"        
            "database" "psychostats"        
            "user" "xxx"        
            "pass" "xxx"        
            //"timeout" "0"        
            "port" "3306" 
         }
    }
    __________________
    urus is offline
    n00by
    Junior Member
    Join Date: Jan 2008
    Old 03-30-2008 , 13:16   Re: Psychostats Interface Plugin
    Reply With Quote #7

    Hello!

    It won't work

    look, this is the next error i get:

    Code:
    L 03/30/2008 - 19:54:19: [SM] Detected parse error(s) in file "/home/server/srcds/cstrike/addons/sourcemod/configs/databases.cfg"
    L 03/30/2008 - 19:54:19: [SM] Line 22: Line contained too many invalid tokens
    L 03/30/2008 - 19:54:19: -------- Mapchange to de_dust --------
    L 03/30/2008 - 19:54:19: Error log file session closed.
    L 03/30/2008 - 19:54:19: [SM] Failed to load plugin "._psychostats_threaded_uni.smx": Error 1 while parsing plugin
    L 03/30/2008 - 19:54:19: [psychostats_threaded_uni.smx] Database failure: Could not find database conf "psstats"
    __________________
    www.eistee.tk
    eistee.no-ip.com:27015 #
    |eistee.server|CS:S|
    eistee.no-ip.com:27016 # |eistee.server|CS 1.6|

    Last edited by n00by; 03-30-2008 at 14:09.
    n00by is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 03-30-2008 , 14:12   Re: Psychostats Interface Plugin
    Reply With Quote #8

    Delete your databases.cfg and take from attach.
    Attached Files
    File Type: cfg databases.cfg (571 Bytes, 1574 views)
    __________________
    urus is offline
    n00by
    Junior Member
    Join Date: Jan 2008
    Old 03-30-2008 , 14:23   Re: Psychostats Interface Plugin
    Reply With Quote #9

    Thank you very mutch, it works amazing

    Greets
    __________________
    www.eistee.tk
    eistee.no-ip.com:27015 #
    |eistee.server|CS:S|
    eistee.no-ip.com:27016 # |eistee.server|CS 1.6|
    n00by is offline
    Olly
    Senior Member
    Join Date: Mar 2007
    Location: UK
    Old 04-01-2008 , 10:43   Re: Psychostats Interface Plugin
    Reply With Quote #10

    Quote:
    Originally Posted by urus View Post
    I know about this plugin, but i wanted lightweight plugin.

    To all.
    Please download new version (0.2). I find and fixed small error for /top10 command.
    Also download new plugin.psychostats.txt.
    See attach in first post.
    Wow, didn't even think people still on the website
    __________________
    Tumblr Me: http://raspberryteen.tumblr.com


    // Yarrrr!
    Olly is offline
    Send a message via MSN to Olly
    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 20:00.


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