AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Basic Server Information (https://forums.alliedmods.net/showthread.php?t=138503)

KyleS 09-18-2010 18:42

[CS:S] Basic Server Information
 
3 Attachment(s)
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. :wink:

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. :oops:

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?

Xp3r7 09-18-2010 19:43

Re: [CSS] Basic Server Information
 
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.

thetwistedpanda 09-18-2010 19:45

Re: [CSS] Basic Server Information
 
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.

KyleS 09-18-2010 22:05

Re: [CSS] Basic Server Information
 
I HATE Handles, but I'm done :wink:

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 :up:

d_duck 09-19-2010 05:56

Re: [CSS] Basic Server Information
 
if using individual HUD skin , dosen't show the Hud Info.

KyleS 09-19-2010 06:14

Re: [CSS] Basic Server Information
 
Quote:

Originally Posted by d_duck (Post 1303268)
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) :wink:

KyleS 09-20-2010 18:02

Re: [CS:S] Basic Server Information
 
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.

Xp3r7 09-21-2010 09:53

Re: [CS:S] Basic Server Information
 
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! :o

KyleS 09-21-2010 12:59

Re: [CS:S] Basic Server Information
 
Fixed (I hope).

KyleS 11-25-2010 21:13

Re: [CS:S] Basic Server Information
 
Updated.


All times are GMT -4. The time now is 19:43.

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