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

[TF2] Remove Unnecessarily Most Antagonists (1.1.3 - 03.04.2016)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Temeez
Junior Member
Join Date: Aug 2015
Plugin ID:
4765
Plugin Version:
1.1.3
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Don't allow players to the server if they have too low playtime in the game.
    Old 08-07-2015 , 04:03   [TF2] Remove Unnecessarily Most Antagonists (1.1.3 - 03.04.2016)
    Reply With Quote #1

    TF2-RUMA 'Remove Unnecessarily Most Antagonists'

    Description
    Allows server owners to set an hour limit. Players that don't meet the playtime limit get kicked when trying to join the server. The playtimes are checked from the Steam profile using the Steam API or from the TF2 stats if the player has set his/her profile to private. The plugin adds accepted players into a SQLite DB, so returning players won't be checked again.

    Requirements
    Server ConVars
    A cfg file for this plugin can be found at \cfg\sourcemod\plugin.ruma.cfg which contains all the following ConVars (except the version).

    • tf2ruma_version - Displays the plugin version.
    • sm_steam_api_key - Required for the playtime check to work.
    • sm_ruma_kickmsg - You can display the required hours to the kicked player if you wish. [ 1 - 0/1 ]
    • sm_ruma_log_level - Logging for the plugin. [ 1 - 0/2]
    • sm_ruma_hour_limit - The amount of hours required to join the server. [ 10 - 0/inf. ]
    • sm_ruma_strict_mode - Kick player depending on the strict mode and playtime. [ 1 - 0/2]
    • sm_ruma_kick_msg_text - Custom reject message for the kicked player, max length of this message is 256!
    Admin Commands
    • sm_ruma_addplayer <steamid64> - Allows admins to add a player into the DB, so they can join the server even if they don't meet the required playtime limit.
    Potential Future plans
    • MySQL support
    Installation
    Download the .zip file for fast install. Extract it into the root (/tf/) folder. Includes the mods .smx, .sp, .txt and the cfg file.

    Reporting issues
    I would appreciate if all the issues would be reported to the TF2-RUMA GitHub repository. This would make it easier to track them, etc.

    Change Log

    Code:
    v1.1.3 (03.04.2016)
    - Added sm_ruma_kick_msg_text ConVar so server hosters can set a custom reject message on their own language.
    
    v1.1.2 (23.03.2016)
    - Fixed another bug, should be the last one.
    
    v1.1.1 (22.03.2016)
    - Fixed a bug
    
    v1.1.0 (14.03.2016)
    - Switched steamtool to SteamWorks
    - sm_ruma_strict_mode config option
    - own database file
    - txt whitelist file
    
    v1.0.1 (11.08.2015)
    - Fixed the bot checking. Ignores the bots now, allowing them to pass.
    
    v1.0.0 (04.08.2015)
    - Release to public
    Attached Files
    File Type: zip TF2-RUMA.zip (18.7 KB, 206 views)
    File Type: smx tf2ruma.smx (11.6 KB, 213 views)
    File Type: sp Get Plugin or Get Source (tf2ruma.sp - 216 views - 20.4 KB)

    Last edited by Temeez; 04-03-2016 at 10:09. Reason: Update to 1.1.3
    Temeez is offline
    Blah91
    Junior Member
    Join Date: Jul 2011
    Old 08-07-2015 , 04:48   Re: [TF2] Remove Unnecessarily Most Antagonists
    Reply With Quote #2

    I requested this plugin from Temeez

    Plugin has has been tested in "production" for a few days and work like a charm.
    Blah91 is offline
    Creampuffyness
    Senior Member
    Join Date: Jun 2009
    Old 08-10-2015 , 17:09   Re: [TF2] Remove Unnecessarily Most Antagonists
    Reply With Quote #3

    Is there no check for bots? I have a 4MB log of this...

    Code:
    L 08/10/2015 - 05:00:18: [INFO] Remove Unnecessarily Most Antagonists plugin loaded, version 1.0.0
    L 08/10/2015 - 05:00:18: [INFO] Database connection established.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Replay<2><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client trigger_hurt<3><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Nom Nom Nom<4><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Divide by Zero<5><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client GENTLE MANNE of LEISURE<6><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client MoreGun<7><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Tiny Baby Man<8><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Big Mean Muther Hubbard<9><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:26: [INFO] (Fake Client): client Force of Nature<10><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:29: [INFO] (Fake Client): client Crazed Gunman<11><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:29: [INFO] (Fake Client): client Poopy Joe<12><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:30: [INFO] (Fake Client): client Freakin' Unbelievable<13><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:30: [INFO] (Fake Client): client The Administrator<14><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:30: [INFO] (Fake Client): client Archimedes!<15><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:30: [INFO] (Fake Client): client It's Filthy in There!<16><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:31: [INFO] (Fake Client): client Kill Me<17><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:31: [INFO] (Fake Client): client CryBaby<18><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:31: [INFO] (Fake Client): client ThatGuy<19><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:32: [INFO] (Fake Client): client Hat-Wearing MAN<20><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:32: [INFO] (Fake Client): client Numnutz<21><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:32: [INFO] (Fake Client): client The G-Man<22><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:32: [INFO] (Fake Client): client The Combine<23><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:33: [INFO] (Fake Client): client Pow!<24><BOT><> was kicked for having no soul.
    L 08/10/2015 - 05:00:33: [INFO] (Fake Client): client THEM<25><BOT><> was kicked for having no soul.
    __________________
    Creampuffyness is offline
    Creampuffyness
    Senior Member
    Join Date: Jun 2009
    Old 08-10-2015 , 17:34   Re: [TF2] Remove Unnecessarily Most Antagonists
    Reply With Quote #4

    Here is a version of 1.0 that wont kick fake clients.
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2ruma.sp - 186 views - 13.9 KB)
    __________________
    Creampuffyness is offline
    Temeez
    Junior Member
    Join Date: Aug 2015
    Old 08-11-2015 , 03:31   Re: [TF2] Remove Unnecessarily Most Antagonists (1.0.1 - 11.08.2015)
    Reply With Quote #5

    Thanks Creampuffyness, I forgot that TF2 even has these bots. Pushed an update.
    Temeez is offline
    Randommagic
    Senior Member
    Join Date: Jun 2014
    Location: -
    Old 12-28-2015 , 13:15   Re: [TF2] Remove Unnecessarily Most Antagonists (1.0.1 - 11.08.2015)
    Reply With Quote #6

    Working fine in my server. Thank you.
    __________________
    Randommagic is offline
    Juaccoo
    Junior Member
    Join Date: May 2015
    Old 02-27-2016 , 18:09   Re: [TF2] Remove Unnecessarily Most Antagonists (1.0.1 - 11.08.2015)
    Reply With Quote #7

    L 02/27/2016 - 20:16:07: [ERROR] AddPlayerToDB failed to query (error: PRIMARY KEY must be unique)
    L 02/27/2016 - 20:16:19: [DEBUG] Bot GamerLiveTV<2><BOT><> was ignored
    L 02/27/2016 - 20:16:25: [DEBUG] Allowed player Viejujo<3><STEAM_ID_PENDING><> to join the server because they are in the databse as 76561198029121502
    L 02/27/2016 - 20:16:26: [INFO] (Method B): client Viejujo<3><[U:1:68855774]><> was kicked for having a playtime of 44 hours. The hour limit is set to 200 hours.
    L 02/27/2016 - 20:16:26: [DEBUG] Used method B for client: Viejujo<3><[U:1:68855774]><>


    im having that error message, cant find ruma_db in the data/sqlite folder and apparently its only reading the tf2 stats and not the steam playtime.

    any help, please?

    Last edited by Juaccoo; 02-27-2016 at 18:18.
    Juaccoo is offline
    Temeez
    Junior Member
    Join Date: Aug 2015
    Old 03-01-2016 , 01:18   Re: [TF2] Remove Unnecessarily Most Antagonists (1.0.1 - 11.08.2015)
    Reply With Quote #8

    Quote:
    Originally Posted by Juaccoo View Post
    L 02/27/2016 - 20:16:07: [ERROR] AddPlayerToDB failed to query (error: PRIMARY KEY must be unique)
    L 02/27/2016 - 20:16:19: [DEBUG] Bot GamerLiveTV<2><BOT><> was ignored
    L 02/27/2016 - 20:16:25: [DEBUG] Allowed player Viejujo<3><STEAM_ID_PENDING><> to join the server because they are in the databse as 76561198029121502
    L 02/27/2016 - 20:16:26: [INFO] (Method B): client Viejujo<3><[U:1:68855774]><> was kicked for having a playtime of 44 hours. The hour limit is set to 200 hours.
    L 02/27/2016 - 20:16:26: [DEBUG] Used method B for client: Viejujo<3><[U:1:68855774]><>


    im having that error message, cant find ruma_db in the data/sqlite folder and apparently its only reading the tf2 stats and not the steam playtime.

    any help, please?
    The sqlite db file name should be 'sourcemod-local', at least by default. Not really sure why that PRIMARY KEY error happened, I'll try to look into it. Can you PM me the whole log for that day?

    Usually when the mod checks the playtime via the TF2 stats instead of Steam playtime, is because for some reason the client haven't received the STEAM_ID yet when the check happens. Unfortunately I haven't found a way to fix this.. Hmm, got an idea when writing this, I need to do some testing when I have the time.
    Temeez is offline
    Temeez
    Junior Member
    Join Date: Aug 2015
    Old 03-14-2016 , 09:16   Re: [TF2] Remove Unnecessarily Most Antagonists (1.1.0 - 14.03.2016)
    Reply With Quote #9

    Updated to version 1.1.0
    • Switched steamtool to SteamWorks
    • sm_ruma_strict_mode config option
    • own database file
    • txt whitelist file

    Its possible to use the database file from the earlier version. How to:
    Code:
    Make a copy of the sourcemod-local.sq3 and rename the copy to tf2ruma.sq3
    Note: It would be better not to do this though.
    sm_ruma_strict_mode set to 1 will kick a player if:
    • There is something wrong with the response body when trying the get the playtime

    sm_ruma_strict_mode set to 2 will kick a player if:
    • There is something wrong with the response body when trying the get the playtime
    • Player has set their Steam profile to private
    • Steam API is down or unavailable (non ok http response)

    Strict mode 2 doesn't allow anyone with bad playtime to connect, ever. Unless that player is in the whitelist file or database.

    Last edited by Temeez; 03-14-2016 at 14:58.
    Temeez is offline
    ClassicGuzzi
    Veteran Member
    Join Date: Oct 2013
    Location: Argentina
    Old 03-14-2016 , 11:18   Re: [TF2] Remove Unnecessarily Most Antagonists (1.1.0 - 14.03.2016)
    Reply With Quote #10

    Cool plugin!

    Quote:
    Originally Posted by Temeez View Post
    Updated to version 1.1.0

    Its possible to use the database file from the earlier version. How to:
    Code:
    Rename the sourcemod-local.sq3 to tf2ruma.sq3
    That's not the way to do it, any other plugin that used that database won't be able to access it's data.
    You can duplicate the file and rename, but the best way would be creating a tf2ruma.sq3 only with this plugin's data.
    __________________
    ClassicGuzzi 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 12:40.


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