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

Timeleft in Hostname


Post New Thread Reply   
 
Thread Tools Display Modes
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-12-2007 , 13:33   Re: Timeleft in Hostname
Reply With Quote #11

If the timer isn't stopped, it might add the time left before map change, thus it could lead to appending the timeleft multiple times if the hostname is not reset in server.cfg. It's possible that it won't happen but it's better to be on the safe side.

What I changed in 1.2.2 is that I read the hostname just before it is changed the first time, instead of reading it at plugin init.

Both (potential) bugs kinda fall into the same category, that is changing the hostname incorrectly.

I haven't seen either bug happening, the old v1.2.1 worked fine for me.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
Cold Rub
BANNED
Join Date: Mar 2007
Location: Long Beach, NY
Old 04-12-2007 , 13:35   Re: Timeleft in Hostname
Reply With Quote #12

will install the "modified" version and will see if it happens again.

Note;
Name change happened around 95 hours uptime
Cold Rub is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-12-2007 , 13:37   Re: Timeleft in Hostname
Reply With Quote #13

Quote:
Originally Posted by Cold Rub View Post
Name change happened around 95 hours uptime
I didn't test it for that long, but I'll leave it running on Ancient's TFC servers for a while to test it some more. (Unless he wants it removed of course.)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-12-2007 , 13:46   Re: Timeleft in Hostname
Reply With Quote #14

Changed: Using m:s format if timeleft < 1h.
Added leading zeros.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 04-12-2007 at 16:32.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-12-2007 , 17:30   Re: Timeleft in Hostname
Reply With Quote #15

I've added additional checks which should prevent that the hostname is set to an empty string, which is probably the cause for it being "Half-Life". This is done by checking the string length of the global variable g_old_hostname.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-13-2007 , 11:37   Re: Timeleft in Hostname
Reply With Quote #16

Adding "no time limit" to the host name if the limit is set to zero, also giving credit to the author of the original plugin.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 04-13-2007 at 16:46.
pizzahut 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 07:08.


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