Monthly Target: $400 Donations: $38
 9% 

SoD Player Stats


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FrostbyteX
Senior Member
Join Date: Dec 2007
Plugin ID:
292
Plugin Version:
1.0.11
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    403 
    Plugin Description:
    A simple stats plugin with SQlite support.
    Old 02-22-2008 , 00:47   SoD Player Stats
    Reply With Quote #1

    For CSGO (protobuf) update : see this post - Written by RedSword

    SoD Stats

    Description

    If you're looking for a stats plugin that takes hours to setup and daily maintenance, then look somewhere else. This stats plugin has a zero-configuration install. Just unzip this to your server and join the game. It just works.

    Don't worry about upgrades either. When there's a new version, just unzip the new files and your stats will be automatically and seamlessly updated.

    Simple is good.

    Setup & Upgrade

    Unzip sodstats.zip to your game directory.

    When upgrading to version 1.0.10 you may have to reset stats and change the map upon first run.

    Statistics Information
    A players gains two points per kill, plus one extra point for each 100 points higher his victim's score is. The victim loses the equivalent number of points. This is done so that a really good player cannot boost his score by killing beginners over and over again; likewise, when a skilled player connects he can reach a high rating quickly because everyone else will start out with a much higher score.

    This is hardly a tried and tested method, but from testing on my own server, it did seem to correctly identify the skill level of the players. It slightly rewards playing time, but mostly individual skill.

    When I get the time, I'll add a team score for games like TF2 and DoD:S.

    Cvars

    sm_stats_enabled - [1/0] - Enables/disables stat storing and say commands.
    sm_stats_startpoints - [0-10000] - Sets the starting points for new players.
    sm_stats_displaymode - [0/1/2] - Changes who sees chat output. (0: public rank display, 1: private rank display, 2: chat rank display).

    Commands

    sm_stats_reset - Resets player stats.
    sm_stats_purge [#days] - Removes players from database who haven't connected for [#days] days.

    Say "rank" to see your rank.
    Say "top" or "top10" to see the top ten players.
    Say "session" or "statsme" to see your session and stats information.

    Notes


    This plugin uses the default "storage-local" database. The goal was to make a simple copy/paste plugin without configuration. If you want players to be stored in a different database, I will add a configuration file.

    If the top10, statsme and session menus are appearing incorrectly in your mod, then read the following thread:
    http://forums.alliedmods.net/showthread.php?p=566380
    (Credits to Warnink for finding this)

    If you are running DoD:S and downloaded v1.0.11 before August 13th, please redownload to obtain the DoD:S hotfix.

    Credits

    The SourceMod team and everyone whose plugins I reviewed to learn SourcePawn.
    mplostcause - for testing on DoD:S
    misfit - for testing on TF2
    Sgt-Mess, Bl1nk, PStar, Box Cutter, Guardia Republicano - for testing v1.0.11

    Pending Features

    Translations (I'll need some help!)
    Kill-to-Death ratio in "rank"

    sm_stats_resetrank <STEAM_ID>
    sm_stats_minkills <#kills>
    sm_stats_countbots <1/0>

    Zombie Panic!:
    Removing penalty for deaths (please PM me if you have a better idea for a Zombie Panic! point system)

    Changelog
    8/03/2008 - Version 1.0.11 -
    Added headshot stats for DoD:S. Added purging. Fixed MySQL bugs. Added text display modes. Fixed some crashes. Removed 'active_badges' column from database.

    5/26/2008 - Version 1.0.10 -
    Added colored text. Added headshot logging for counter-strike. Added "sm_stats_startpoints" cvar. Shows points to next rank when saying "rank".
    3/11/2008 - Version 1.0.9 -
    Added default functionality for unknown mods.
    3/03/2008 - Version 1.0.8 -
    Added support for EmpiresMod.
    3/03/2008 - Version 1.0.7 -
    Added support for FortressForever mod.
    3/02/2008 - Version 1.0.6 -
    Fixed incorrect time_joined problem in CreatePlayer.
    3/01/2008 - Version 1.0.5 -
    Rewrote to use natives.
    2/28/2008 - Version 1.0.4 -
    Added time-played.
    2/27/2008 - Version 1.0.3 -
    Added support for TF2/DoD:S - needs testing. Added code for ingame "badges," but commented out for future use.
    2/23/2008 - Version 1.0.2 -
    Added highlighting to "statsme" menu.
    2/22/2008 - Version 1.0.1 -
    Added "statsme" and "session". Fixed a bug with accuracy.
    Attached Files
    File Type: zip sodstats.zip (32.9 KB, 35784 views)

    Last edited by RedSword; 03-24-2015 at 16:10. Reason: updated first line
    FrostbyteX is offline
    errorbartje
    New Member
    Join Date: Nov 2007
    Old 02-23-2008 , 11:12   Re: SoD Stats (SQLite)
    Reply With Quote #2

    Nice Plugin Thx
    errorbartje is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 02-26-2008 , 13:07   Re: SoD Stats (SQLite)
    Reply With Quote #3

    Quote:
    Originally Posted by errorbartje View Post
    Nice Plugin Thx
    You're welcome. What do you think of it? I've only tested it with up to 16 players and there is no notable choke. Mind you, that's on an unstacked 100tic 500fps server.

    Does anyone have any particular requests for features? I'm currently adding in-game achievements ("badges").

    Steve
    FrostbyteX is offline
    qcg33k
    Junior Member
    Join Date: Feb 2008
    Location: Quad Cities
    Old 02-27-2008 , 10:25   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #4

    Does this plugin work for Team Fortress 2? For some reason, I've been trying to use a couple of TF2 rank mods for SM. But with no avail, they don't seem to be working. Currently I'm using mani-mod only for the ranking.
    __________________

    qcg33k is offline
    Send a message via AIM to qcg33k
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 02-27-2008 , 11:59   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #5

    This should work for TF2, but I have not tested it since I do not have a TF2 server.
    FrostbyteX is offline
    misfit
    Member
    Join Date: Aug 2007
    Location: upstate New York
    Old 02-27-2008 , 15:36   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #6

    on TF2 -

    Code:
    15:33:46 sm plugins list
    15:33:46 [SM] Listing 1 plugin:
               01 <Error> "SoDStats" (1.0) by ]SoD[ Frostbyte
    15:34:06 sm plugins debug 1 on
    15:34:06 [SM] Could not toggle debug mode on plugin sodstats.smx.
             [SM] Plugin returned error: Plugin is not runnable.
    misfit is offline
    pRED*
    Join Date: Dec 2006
    Old 02-27-2008 , 15:50   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #7

    Use 'sm plugins info 1' to show the reason it failed to load.
    pRED* is offline
    mplostcause
    Junior Member
    Join Date: Feb 2008
    Old 02-27-2008 , 18:08   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #8

    I am getting similar results when trying to use this plugin on DoDS. This is the log for plugin.

    Code:
    L 02/27/2008 - 16:01:40: SourceMod error session started
    L 02/27/2008 - 16:01:40: Info (map "dod_orange_the_tower") (file "errors_20080227.log")
    L 02/27/2008 - 16:01:40: [SM] Native "HookEvent" reported: Game event "weapon_fire" does not exist
    L 02/27/2008 - 16:01:40: [SM] Debug mode is not enabled for "sodstats.smx"
    L 02/27/2008 - 16:01:40: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 19 on
    L 02/27/2008 - 16:09:24: [SM] Native "HookEvent" reported: Game event "weapon_fire" does not exist
    L 02/27/2008 - 16:09:24: [SM] Debug mode is not enabled for "sodstats.smx"
    L 02/27/2008 - 16:09:24: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 22 on
    L 02/27/2008 - 16:47:47: Error log file session closed.
    L 02/27/2008 - 16:47:47: SourceMod error session started
    L 02/27/2008 - 16:47:47: Info (map "dod_orange_the_tower") (file "errors_20080227.log")
    L 02/27/2008 - 16:47:47: [SM] Native "HookEvent" reported: Game event "weapon_fire" does not exist
    L 02/27/2008 - 16:47:47: [SM] Debug mode is not enabled for "sodstats.smx"
    L 02/27/2008 - 16:47:47: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 22 on
    mplostcause is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 02-27-2008 , 19:34   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #9

    I'll have that fixed by tomorrow night if I can find someone to test DoD:S and/or TF2.
    FrostbyteX is offline
    mplostcause
    Junior Member
    Join Date: Feb 2008
    Old 02-27-2008 , 19:47   Re: QuickStats - Player stats without a MySQL database!
    Reply With Quote #10

    I'll test DoD:S for you.
    mplostcause 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 23:43.


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