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

[NMRiH] Win Rates (1.0.4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Lunreth
BANNED
Join Date: Dec 2019
Location: Argentina, Buenos Aires
Plugin ID:
7252
Plugin Version:
1.0.4
Plugin Category:
Statistical
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Records and display winrate stats for every map played in a NMRiH server, inspired by Dayonn_dayonn, uses SQL threaded queries in order to avoid crashes and solves lots of bugs from before.
    Old 08-13-2020 , 01:34   [NMRiH] Win Rates (1.0.4)
    Reply With Quote #1

    WINRATES - NMRiH

    Description
    • Records and display winrate stats for every map played in a NMRiH server, inspired by Dayonn_dayonn, uses SQL threaded queries in order to avoid crashes and solves lots of bugs from before. Code needed to be clean and tidy, so this is a full recode from previous plugin.





    More screenshots:

    Admin Commands (ROOT FLAG)
    1. sm_delete_winrates --> Deletes all rows from database
    2. sm_delete_player_winrates <STEAM_1:0:0000000> --> Deletes a player using STEAMID
    3. sm_delete_map_winrates <map_name> --> Deletes a map by entering exact name

    CVARS (.../cfg/sourcemod/nmrih_winrates.cfg)
    1. sm_nmrih_winrates_enabled --> Enable or disable NMRiH Winrates
    2. sm_nmrih_winrates_debug --> Will spam messages in console and log about any SQL action
    3. sm_nmrih_winrates_database --> Name of database keyvalue stored in sourcemod/configs/databases.cfg
    4. sm_nmrih_winrates_table --> Name of table used by database previously defined

    Features
    • Will count a map clear after player getting extracted or after message "All players have been extracted"
    • Works even in maps without nmrih_extract_point entities
    • SQL Database to store at least 512 different maps, can be changed to more if it were very necessary
    • Config file to exclude maps and disable plugin in certain gamemodes that aren't suitable for this
    • Full menu display with !winrates command
    • Translations available in english and spanish
    • A lose can only be stored if a player respawned at least once, otherwise that player never actually "played" the map, only was a spectator until reaching map change

    Changelog
    • 1.0.0 - (13/08/2020)
      First release
    • 1.0.1 - (17/12/2020)
      Increased limit for database storage (512 maps)
      Added limit for menu display (100 maps only to avoid critical bug)
      Fixed menu bug
    • 1.0.2 - (2/06/2022)
      Fixed wrong NMS round lose condition check
    • 1.0.3 - (12/06/2022)
      Fixed wrong syntax inside loading map rows
      Improved CFG key detection (map extensions not needed anymore)
    • 1.0.4 - (06/07/2022)
      Fixed map list disappearing at random times
      Improved database connection method

    Compile requirements
    - autoexecconfig.inc

    Install
    • Simply copy and merge /addons folder with the one in your game directory
    • Edit configs/winrates_exclude.cfg --> Add excluded maps from plugin detection, won't be taken into account
    • Edit configs/databases.cfg --> Insert a new keyvalue set like the following example:
    Quote:
    "nmrih_winrates"
    {
    "driver" "sqlite"
    "database" "nmrih_winrates"
    }
    Future plans
    • Finish web integration to display winrates correctly using MySQL and SQLite, here is a working example using SQLite + php, map results ordered by winrate value:

    Based in old plugin from Dayonn_dayonn: https://forums.alliedmods.net/showthread.php?p=2578250

    DOWNLOAD

    Last edited by Lunreth; 07-06-2022 at 01:55.
    Lunreth is offline
    paulbanks
    New Member
    Join Date: Aug 2020
    Old 08-14-2020 , 10:44   Re: [NMRiH] Win Rates
    Reply With Quote #2

    Quote:
    Originally Posted by Lunreth View Post
    WINRATES - NMRiH

    Description
    • Records and display winrate stats for every map played in a NMRiH server, inspired by Dayonn_dayonn, uses SQL threaded queries in order to avoid crashes and solves lots of bugs from before.
    online assignment help australia
    Admin Commands (ROOT FLAG)
    1. sm_delete_winrates --> Deletes all rows from database
    2. sm_delete_player_winrates <STEAM_1:0:0000000> --> Deletes a player using STEAMID
    3. sm_delete_map_winrates <map_name> --> Deletes a map by entering exact name

    CVARS (.../cfg/sourcemod/nmrih_winrates.cfg)
    1. sm_nmrih_winrates_enabled --> Enable or disable NMRiH Winrates
    2. sm_nmrih_winrates_debug --> Will spam messages in console and log about any SQL action
    3. sm_nmrih_winrates_database --> Name of database keyvalue stored in sourcemod/configs/databases.cfg
    4. sm_nmrih_winrates_table --> Name of table used by database previously defined

    Features
    • Will count a map clear after player getting extracted or after message "All players have been extracted"
    • Works even in maps without nmrih_extract_point entities
    • SQL Database to store at least 256 different maps, can be changed to more if it were very necessary
    • Config file to exclude maps and disable plugin in certain gamemodes that aren't suitable for this
    • Full menu display with !winrates command
    • Translations available in english and spanish
    • A lose can only be stored if a player respawned at least once, otherwise that player never actually "played" the map, only was a spectator until reaching map change

    Changelog
    • 1.0.0 - (13/08/2020)
      First release

    Requirements
    - autoexecconfig.inc (compile)

    Install
    • Simply copy and merge /addons folder with the one in your game directory
    • Edit configs/winrates_exclude.cfg --> Add excluded maps from plugin detection, won't be taken into account
    • Edit configs/databases.cfg --> Insert a new keyvalue set like the following example:


    Future plans
    • To do

    Based in old plugin from Dayonn_dayonn: https://forums.alliedmods.net/showthread.php?p=2578250

    DOWNLOAD
    I will check the other thread to learn more about this plugin. Thanks for the info.

    Last edited by paulbanks; 08-26-2020 at 02:56.
    paulbanks 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 06:33.


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