Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Servertime (https://forums.graalonline.com/forums/showthread.php?t=134257620)

fowlplay4 01-11-2010 04:49 AM

Servertime
 
The server-time listed in the bottom right corner, on the start bar is kind of useless considering it's out of sync and varies from server to server, so why not make it universal.

If possible could it be switched to just use the Login's server-time? Then perhaps server's could plan things around Graal-time and so on.

DustyPorViva 01-11-2010 05:43 AM

Don't think it's possible for it to be global as it runs off the server clocks, and different servers are on different machines. There'd be no way to sync them without the clocks occasionally losing some time(potentially bad for scripts relying on their accuracy).

The server clocks being so off is a major problem, but Stefan has stated concern with updating them because it could put some server clocks back as far as a day or so, meaning that scripts that run checks on timevar2 would be a day behind(thus, say if a server used timevar2 to lock you out from something, it'd be open a day earlier suddenly). More important scripts like banks or something could be potentially more dangerous.

fowlplay4 01-11-2010 06:08 AM

I'm not looking to have the values of timevar and timevar2 change, just the time displayed in the clock in the bottom right corner. So really it's just displaying what time it is on the Login server.

Pretty sure the login script could just store whatever value it's based off on login (assuming it's timevar), and then use the offset between it and clientside timevar2.

Kind of like how it's done here: Scripted Timevar3

DustyPorViva 01-11-2010 06:18 AM

Quote:

Originally Posted by fowlplay4 (Post 1549636)
I'm not looking to have the values of timevar and timevar2 change, just the time displayed in the clock in the bottom right corner. So really it's just displaying what time it is on the Login server.

Pretty sure the login script could just store whatever value it's based off on login (assuming it's timevar), and then use the offset between it and clientside timevar2.

Kind of like how it's done here: Scripted Timevar3

It's the same method I use for clientside/serverside timevar2 accuracy, but the problem is probably going to be transferring data between servers(the offset between login and whatever server you're on). Ideally he could possibly just code it to send updates periodically like how global buddies are done.

cbk1994 01-11-2010 06:20 AM

I'd love to see timevar2 fixed as well. I don't think any servers rely on it enough that it would mess anything up majorly if it was corrected.

DustyPorViva 01-11-2010 06:21 AM

Quote:

Originally Posted by cbk1994 (Post 1549639)
I'd love to see timevar2 fixed as well. I don't think any servers rely on it enough that it would mess anything up majorly if it was corrected.

He could easily give servers a heads up so they could disable important NPCs that rely on it until it catches up.

fowlplay4 01-11-2010 06:27 AM

Quote:

Originally Posted by DustyPorViva (Post 1549638)
It's the same method I use for clientside/serverside timevar2 accuracy, but the problem is probably going to be transferring data between servers(the offset between login and whatever server you're on). Ideally he could possibly just code it to send updates periodically like how global buddies are done.

Well from what I just saw the clientside timevar2 (on the Windows client anyway) is how long the client has been up so I don't think switching servers will be much of a problem.

Quote:

Originally Posted by cbk1994 (Post 1549639)
I'd love to see timevar2 fixed as well. I don't think any servers rely on it enough that it would mess anything up majorly if it was corrected.

Ever since time-jailing became the standard there hasn't really been anything time-critical (at least on Zodiac), worst case scenario kids in jail get out a little sooner.

DustyPorViva 01-11-2010 06:35 AM

Quote:

Originally Posted by fowlplay4 (Post 1549641)
Well from what I just saw the clientside timevar2 (on the Windows client anyway) is how long the client has been up so I don't think switching servers will be much of a problem.

Indeed, but I know the taskbar doesn't use that, as it would be off I imagine. I'd figure he's either calculating offset of clientside and serverside, or doing something more complex to keep it accurately reflecting the servertime instead of the client up-time.


All times are GMT +2. The time now is 08:35 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.