Monthly Target: $400 Donations: $131
 32% 

[ANY] Connection Method Viewer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
3969
Plugin Version:
1.2.0
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    203 
    Plugin Description:
    Displays how clients connected to the server
    Old 11-13-2013 , 19:57   [ANY] Connection Method Viewer
    Reply With Quote #1

    [ANY] Connection Method Viewer

    v1.2.0

    Description:
    Queries the value of the new cl_connectmethod cvar to display how clients connected to the server when a command is run. Currently, this cvar only exists in TF2. It will be added to other games when they next update.

    Cvars:
    • connect_method_version - plugin version
    • connect_method_auto_update - enables automatic updating (has no effect if Updater is not installed)

    Commands:
    • sm_connectmethod - displays how all in-game players connected to the server, restricted to generic (b) by default

    Installation:
    Put connect_method.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load connect_method" into your console or rcon.

    Auto Update:
    Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

    Changelog:
    • v1.2.0 (11/14/13)
      • Fixed a potential late-load problem
    • v1.1.0 (11/13/13)
      • Improved data acquisition method
    • v1.0.0 (11/13/13)
      • Initial release

    Download Plugin (connect_method.smx)
    View Source (connect_method.sp)


    Requires updater.inc and mckayupdater.sp to compile.
    __________________

    Last edited by Dr. McKay; 11-14-2013 at 13:58.
    Dr. McKay is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 11-13-2013 , 20:02   Re: [ANY] Connection Method Viewer
    Reply With Quote #2

    What current connection methods are there?
    __________________
    Mitchell is offline
    PolyQuad
    Member
    Join Date: Oct 2011
    Old 11-13-2013 , 20:20   Re: [ANY] Connection Method Viewer
    Reply With Quote #3

    Thanks a ton Dr. Mckay, this is really useful info for server owners.

    I currently use All info to record connect info, it would be nice to have it added to this plugin
    http://forums.alliedmods.net/showthread.php?p=740183

    It would be nice to have the ability to record this info into mysql. If that happens let me know and I can writeup a front end for it.


    Poly
    PolyQuad is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 11-13-2013 , 20:30   Re: [ANY] Connection Method Viewer
    Reply With Quote #4

    Quote:
    Originally Posted by Mitchell View Post
    What current connection methods are there?
    Quote:
    Originally Posted by Mailing List
    Here are the values that I found:

    Quickplay, use # : "quickplay_#"
    Quickplay Beta/MvM Quickplay : "matchmaking"
    Server Browser - Internet Tab : "serverbrowser_internet"
    Server Browser - Favorites Tab : "serverbrowser_favorites"
    Server Browser - History Tab : "serverbrowser_history"
    Server Browser - LAN Tab : "serverbrowser_lan"
    Server Browser - Friends Tab : "serverbrowser_friends"
    Console : ""
    steam://connect URL : "steam"
    Join Off of Friend : "steam"
    Redirect Prompt : "redirect"
    Quote:
    Originally Posted by PolyQuad View Post
    Thanks a ton Dr. Mckay, this is really useful info for server owners.

    I currently use All info to record connect info, it would be nice to have it added to this plugin
    http://forums.alliedmods.net/showthread.php?p=740183

    It would be nice to have the ability to record this info into mysql. If that happens let me know and I can writeup a front end for it.


    Poly
    I already have a full-featured analytics plugin in the works which logs info to MySQL. The frontend is already being written.
    __________________

    Last edited by Dr. McKay; 11-13-2013 at 20:31.
    Dr. McKay is offline
    PolyQuad
    Member
    Join Date: Oct 2011
    Old 11-13-2013 , 20:45   Re: [ANY] Connection Method Viewer
    Reply With Quote #5

    Badass, I will definitely make a donation for your efforts they are much appreciated.

    Didnt see the donate link. Donation completed! *702V

    Poly

    Last edited by PolyQuad; 11-13-2013 at 20:47. Reason: Donated
    PolyQuad is offline
    Dr. Greg House
    Professional Troll,
    Part-Time Asshole
    Join Date: Jun 2010
    Old 11-13-2013 , 21:14   Re: [ANY] Connection Method Viewer
    Reply With Quote #6

    WTF didn't know this was possible.
    GJ!
    __________________
    Santa or Satan?

    Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
    Dr. Greg House is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 11-13-2013 , 21:57   Re: [ANY] Connection Method Viewer
    Reply With Quote #7

    Updated to v1.1.0. Improved the method by which the plugin determines the connection method. Thanks to psychonic for pointing it out.

    Quote:
    Originally Posted by PolyQuad View Post
    Badass, I will definitely make a donation for your efforts they are much appreciated.

    Didnt see the donate link. Donation completed! *702V

    Poly
    Many thanks.
    __________________
    Dr. McKay is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: Soviet Union
    Old 11-13-2013 , 22:04   Re: [ANY] Connection Method Viewer
    Reply With Quote #8

    Just remember, cl_connectmethod isn't protected so client may send something unexpected.
    Leonardo is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 11-14-2013 , 02:13   Re: [ANY] Connection Method Viewer
    Reply With Quote #9

    Approved in 3...2...1...
    __________________
    napalm00 is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 11-14-2013 , 07:13   Re: [ANY] Connection Method Viewer
    Reply With Quote #10

    Inside OnPluginStart you should only check to see if the client is connected, and not in game, as there could be some overlap where a late loaded plugin could miss a few clients if they're still loading in. Also, no need for the IsFakeClient check there as it's checked again inside of OnClientConnected. Other than that, the plugin looks great. You should also make a note that to compile they'll need your "mckayupdater" plugin (although that should be obvious to anyone who knows what they're doing).
    bl4nk 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 03:45.


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