This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[ANY] Timeleft in Hostname


Post New Thread Reply   
 
Thread Tools Display Modes
AzaZPPL
Member
Join Date: Dec 2014
Old 11-14-2016 , 03:07   Re: [ANY] Timeleft in Hostname
Reply With Quote #11

Quote:
Originally Posted by AI_ View Post
The new version still repeatedly adds the time to the end of the host name after map changes.

For example, a host name set as "Server Name [{{timeleft}}] | Community" ends up as "Server Name [29:58] | Community29:58 29:58 29:58 29:58 29:58", etc.
Thanks, I will take a look into this.
AzaZPPL is offline
AzaZPPL
Member
Join Date: Dec 2014
Old 11-14-2016 , 03:35   Re: [ANY] Timeleft in Hostname
Reply With Quote #12

Could you check if this works? I'm emptying the old hostname and checking if its actually empty.

EDIT:
This definitely fixed it.

Download on first page

Last edited by AzaZPPL; 11-14-2016 at 12:33.
AzaZPPL is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-14-2016 , 12:18   Re: [ANY] Timeleft in Hostname
Reply With Quote #13

Quote:
Originally Posted by AzaZPPL View Post
Could you check if this works? I'm emptying the old hostname and checking if its actually empty.

EDIT:
This definitely fixed it.
use your latest version after map change, it shows only the time

asdfxD is offline
AzaZPPL
Member
Join Date: Dec 2014
Old 11-14-2016 , 12:29   Re: [ANY] Timeleft in Hostname
Reply With Quote #14

Quote:
Originally Posted by asdfxD View Post
use your latest version after map change, it shows only the time

Did you restart server? I know where to search if you did
AzaZPPL is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-14-2016 , 12:39   Re: [ANY] Timeleft in Hostname
Reply With Quote #15

Quote:
Originally Posted by AzaZPPL View Post
Did you restart server? I know where to search if you did
no i did not, just loaded the plugin

rcon sm plugins load ...
asdfxD is offline
AzaZPPL
Member
Join Date: Dec 2014
Old 11-14-2016 , 12:41   Re: [ANY] Timeleft in Hostname
Reply With Quote #16

Quote:
Originally Posted by asdfxD View Post
no i did not, just loaded the plugin

rcon sm plugins load ...
Updated the plugin.

Last edited by AzaZPPL; 11-14-2016 at 12:47. Reason: pls work
AzaZPPL is offline
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 11-16-2016 , 01:55   Re: [ANY] Timeleft in Hostname
Reply With Quote #17

Thanks for the fix. It worked like a charm.

The only small issue left is the time shows 00:00 on server start (such as from a daily server reboot) until someone joins. This seems to be due to the server being in hibernation and hasn't yet triggered OnMapStart. It works fine even when the server's empty if a player joined before though.
__________________
AI_ is offline
AzaZPPL
Member
Join Date: Dec 2014
Old 11-16-2016 , 03:06   Re: [ANY] Timeleft in Hostname
Reply With Quote #18

Quote:
Originally Posted by AI_ View Post
Thanks for the fix. It worked like a charm.

The only small issue left is the time shows 00:00 on server start (such as from a daily server reboot) until someone joins. This seems to be due to the server being in hibernation and hasn't yet triggered OnMapStart. It works fine even when the server's empty if a player joined before though.
In 1.3 I changed it so that if the timeleft was either not set or is going lower than 0 seconds the plugin will show `00:00`. I'm gonna try and get the timeleft from the config file and use that time when the plugin has started.

Last edited by AzaZPPL; 11-16-2016 at 03:09.
AzaZPPL is offline
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 11-16-2016 , 04:19   Re: [ANY] Timeleft in Hostname
Reply With Quote #19

The mp_timeleft cvar should already be set at this point, so this should come in handy.
__________________

Last edited by AI_; 11-16-2016 at 04:20.
AI_ is offline
AzaZPPL
Member
Join Date: Dec 2014
Old 11-16-2016 , 07:02   Re: [ANY] Timeleft in Hostname
Reply With Quote #20

Quote:
Originally Posted by AI_ View Post
Thanks for the fix. It worked like a charm.

The only small issue left is the time shows 00:00 on server start (such as from a daily server reboot) until someone joins. This seems to be due to the server being in hibernation and hasn't yet triggered OnMapStart. It works fine even when the server's empty if a player joined before though.
1.4 fixed this issue.

Last edited by AzaZPPL; 11-16-2016 at 07:06.
AzaZPPL 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 19:19.


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