Raised This Month: $154 Target: $400
 38% 

[CS:S] Basic Server Information


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Plugin ID:
1959
Plugin Version:
2.1
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Provides Basic Server Information for anyone with the *Root* flag on your server.
    Old 09-18-2010 , 18:42   [CS:S] Basic Server Information
    Reply With Quote #1

    What is this?
    This is a Server Administration plugin that provides you with a couple things.
    Server Time:
    Server Date:
    Current Map:
    Next Map:
    Time Left:
    Players (Total/InGame/Connecting):
    UpTime:

    Why'd you make this?
    I grew rather tired of joining a server that I had admin on, then attempted to figure out how much time I had left to FTP over a plugin just to test it out. I also grew tired of going into my Console, or dealing with the scoreboard to figure out how many players are connected, let alone still connecting and or are actually ingame.

    Why are you sharing this?
    I find it extremely useful and non intrusive. Others will probably find it the same. I've been quite the *leech* so to speak in the past, so I thought I'd share something useful with everyone.

    What does it look like?
    http://img178.**************/img178/842/serverinfo.jpg
    Or see the Attachment.

    ChangeLog
    v1.1: Thursday, September 16th 2010
    * Optimized Time functions, created two work timers.

    v1.2: Thursday, September 16th 2010
    * Added TimeLeft, Current and Nextmap
    * Optimized TimeLeft issue

    v1.2b: Friday, September 17th 2010
    * More Optimizations

    v1.3: Saturday, September 18th 2010
    * Even more optimization, fixed issue where if mp_timelimit was changed the plugin output would not be updated.

    v1.4: Saturday, September 18th 2010
    * Added a public Cvar to conform to the general Plugin releasing standards.

    v1.5: Saturday, September 18th 2010
    * Added sm_rdisplay (!rdisplay, @rdisplay or /rdisplay in chat depending on your triggers) toggle the printing of messages.
    * Added sm_rootdisplay_enabled to enable or disable the plugin.
    * Added sm_rootdisplay_show to automatically display on a clients screen or should it be manually triggered.
    * Changed sm_rootdisplay to sm_rootdisplay_version as that makes more sense now.
    * Changed the plugin name from ServerHudHunt (I didn't even realize I made that typo) to RootDisplay.

    v1.6: Saturday, September 18th 2010
    * Code Cleanup, fixed a rare handles error.
    * Changed Printouts from SourceMod to RootDisplay.

    v1.7: Monday, September 20th 2010
    * Using the same cache method as TimeLeft for GetTime (Can't believe I made that simple error >.<)

    v1.7b: Monday, September 20th 2010
    * (Bug) CVars weren't being checked properly do to me using OnMapStart instead of OnConfigsExecuted.

    v1.8: Tuesday, September 21st 2010
    * (Bug) The Clock string was too short, apparently. D:

    v2.0: Thursday, November 25th 2010
    * Added Server UpTime (Thanks to Exvel)
    * (Issue) I misunderstood for statements, should be fixed now (Thanks Thorrrrrrrrrrrrrrrrrrrrr)
    * Had to shrink the Display a bit as in some cases over 255 bytes were being sent, resulting in an error.
    * Legacy is now version 1.8

    v2.1: Sunday, December 19th 2010
    * Added the ability to use admin_overrides to allow anyone to use this.

    Known Bugs/Issues
    * El Zilcho.

    Cvars
    sm_rootdisplay_enabled = Enables or Disables the plugin on the fly, or at startup.
    sm_rootdisplay_show = Should the plugin automatically print messages to clients with Admin_Root. Or should they be triggering it manually with sm_rdisplay ?
    sm_rootdisplay_version = Basic description of the plugin, and of course the version number.

    Commands
    sm_rdisplay = Toggles the display of the plugin.

    Notes
    I've done my absolute best to optimize this. If anyone has any tips or suggestions for features, by all means share them!

    EDIT: Just wanted to publicly thank Psychonic, Kevin_b_er, Inflatable_Soulmate, pRED, Tsunami, rhelgeby, Greyscale, and of course MatthiasVance for helping me in IRC in the past. If I've forgotten you, sorry! D:!

    EDIT2: I don't know if this works in TF2 or any other game besides CS:S. Could someone test it and let me know?
    Attached Thumbnails
    Click image for larger version

Name:	ServerInfo.jpg
Views:	4517
Size:	90.8 KB
ID:	73624  
    Attached Files
    File Type: sp Get Plugin or Get Source (RootDisplay_Legacy.sp - 1462 views - 6.5 KB)
    File Type: sp Get Plugin or Get Source (RootDisplay.sp - 1795 views - 6.8 KB)

    Last edited by KyleS; 12-20-2010 at 07:00. Reason: Version updated.
    KyleS is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 09-18-2010 , 19:43   Re: [CSS] Basic Server Information
    Reply With Quote #2

    I like this!

    Can we get a cvar to show/hide it as I wouldnt want it up all the time but it would be nice to check it on it while Im dead, etc.
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-18-2010 , 19:45   Re: [CSS] Basic Server Information
    Reply With Quote #3

    Love the idea, could find this quite useful when I'm server hopping to ensure everything is running correctly. Could I be a bastard and request the ability for command-only functionality? Perhaps a cvar to enable it always, under certain conditions, or upon command issue.
    __________________
    thetwistedpanda is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 09-18-2010 , 22:05   Re: [CSS] Basic Server Information
    Reply With Quote #4

    I HATE Handles, but I'm done

    v1.5: Saturday, September 18th 2010
    * Added sm_rdisplay (!rdisplay, @rdisplay or /rdisplay depending on your chat triggers).
    * Added sm_rootdisplay_enabled to enable or disable the plugin.
    * Added sm_rootdisplay_show to automatically display on a clients screen or should it be manually triggered.
    * Changed sm_rootdisplay to sm_rootdisplay_version as that makes more sense now.
    * Changed the plugin name from ServerHudHunt (I didn't even realize I made that typo) to RootDisplay.

    Keep the suggestions coming
    KyleS is offline
    d_duck
    Member
    Join Date: May 2010
    Old 09-19-2010 , 05:56   Re: [CSS] Basic Server Information
    Reply With Quote #5

    if using individual HUD skin , dosen't show the Hud Info.
    d_duck is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 09-19-2010 , 06:14   Re: [CSS] Basic Server Information
    Reply With Quote #6

    Quote:
    Originally Posted by d_duck View Post
    if using individual HUD skin , dosen't show the Hud Info.
    Do you mean a custom HUD skin? I've never tried this with one. However, with the stock HUD this works flawlessly.

    Or are you talking about an Overlay? This however should work in every case (provided you're using stock files)
    KyleS is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 09-20-2010 , 18:02   Re: [CS:S] Basic Server Information
    Reply With Quote #7

    Long journey, if anyone has grabbed my plugin before 1.7b please re-download it. I've crunched most of what I think were issues and bugs. Now it's onto feature requests (again), if anyone has any that is.
    KyleS is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 09-21-2010 , 09:53   Re: [CS:S] Basic Server Information
    Reply With Quote #8

    Quote:
    L 09/21/2010 - 00:00:00: Info (map "007_complex_classic_n64_nc") (file "errors_20100921.log")
    L 09/21/2010 - 00:00:00: [SM] Native "FormatTime" reported: Invalid time format or buffer too small
    L 09/21/2010 - 00:00:00: [SM] Displaying call stack trace for plugin "RootDisplay.smx":
    L 09/21/2010 - 00:00:00: [SM] [0] Line 98, /home/groups/alliedmodders/forums/files/5/7/0/3/0/73728.attach::UpdateCacheFast()
    L 09/21/2010 - 00:00:01: [SM] Native "FormatTime" reported: Invalid time format or buffer too small
    I had a 10 mb log file filled with this!
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 09-21-2010 , 12:59   Re: [CS:S] Basic Server Information
    Reply With Quote #9

    Fixed (I hope).
    KyleS is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 11-25-2010 , 21:13   Re: [CS:S] Basic Server Information
    Reply With Quote #10

    Updated.
    KyleS 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 02:48.


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