Raised This Month: $32 Target: $400
 8% 

[REQ] Set time & date on server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-02-2019 , 08:51   [REQ] Set time & date on server
Reply With Quote #1

I need a plugin that can trick the server into thinking it is a certain date and/or time. The reason for this is because TFC has a birthday/christmas mode that automatically activates on certain days.

The command tfc_birthday does not cover christmas and also the mode only changes models, it does not have the full effect of a birthday/christmas (notifications, sounds, etc).
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-02-2019 , 13:32   Re: [REQ] Set time & date on server
Reply With Quote #2

Change the computer's time?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-02-2019 , 13:38   Re: [REQ] Set time & date on server
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Change the computer's time?
Not an option unfortunately, because the server is run in a production environment where multiple services rely on accurate time.

Infact I wouldn't even have my home computer set to the incorrect time. Lots of services actually rely on accurate time.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-02-2019 , 16:07   Re: [REQ] Set time & date on server
Reply With Quote #4

Quote:
Originally Posted by terrum View Post
I need a plugin that can trick the server into thinking it is a certain date and/or time. The reason for this is because TFC has a birthday/christmas mode that automatically activates on certain days.

The command tfc_birthday does not cover christmas and also the mode only changes models, it does not have the full effect of a birthday/christmas (notifications, sounds, etc).
That's the long way of going around the barn.
Make the sought after functions to be called with client_cmd (anytime you want) instead of exclusively by Holiday dates.
__________________
DJEarthQuake is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-02-2019 , 16:14   Re: [REQ] Set time & date on server
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
Make the sought after functions to be called with client_cmd (anytime you want) instead of exclusively by Holiday dates.
That would work too, assuming we can find the function that executes the birthday/christmas modes in order to make it into a command.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-02-2019 , 23:24   Re: [REQ] Set time & date on server
Reply With Quote #6

Quote:
Originally Posted by terrum View Post
assuming we can find the function
Where's the source?
__________________
DJEarthQuake is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-02-2019 , 23:25   Re: [REQ] Set time & date on server
Reply With Quote #7

Quote:
Originally Posted by DJEarthQuake View Post
Where's the source?
It's an assumption.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-03-2019 , 01:53   Re: [REQ] Set time & date on server
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
Is there a reason you don't just modify "the other mod"?
__________________
DJEarthQuake is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 10-03-2019 , 09:13   Re: [REQ] Set time & date on server
Reply With Quote #9

Quote:
Originally Posted by DJEarthQuake View Post
Is there a reason you don't just modify "the other mod"?
Because it's not a 'mod'. It's built in to the game and it does not offer any way of enabling (at least all its features) at will.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-03-2019 , 22:26   Re: [REQ] Set time & date on server
Reply With Quote #10

So I guess, based on the restrictions you've noted, there is no good solution. Though, I've seen some "fake time" libraries that might be able to give a running process a fake time (on Linux).
__________________

Last edited by fysiks; 10-03-2019 at 22:28.
fysiks 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 19:15.


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