Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-24-2009, 09:55 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
timevar2 (serverside)

It seems totally random, it's off by about 30 minutes from what it should (assuming it is supposed to match with Unix epoch time, which it is).

It also seems to go back and forth from time to time
__________________
Reply With Quote
  #2  
Old 03-24-2009, 11:18 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
It's because it sometimes gets off when the server lags or is down.

And it can't update regularly because a lot of scripts are based off of timevar2 and therefore if it changed any other way besides 1 per second it would glitch a lot of scripts up.

At least that's the explanation Stefan gave to me when I asked him awhile back.
Reply With Quote
  #3  
Old 03-25-2009, 12:08 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by WhiteDragon View Post
It's because it sometimes gets off when the server lags or is down.

And it can't update regularly because a lot of scripts are based off of timevar2 and therefore if it changed any other way besides 1 per second it would glitch a lot of scripts up.

At least that's the explanation Stefan gave to me when I asked him awhile back.
It's supposed to be the number of seconds since January 1st, 1970. There is no reason that it shouldn't increase/decrease on server start to the correct value. If it doesn't do so, it will produce an incorrect time, which could be bad.

I also don't really see how changing it to the correct time would glitch scripts. Seems like scripts would glitch a lot more if they thought it was time 'x', then it later became time 'x' minus a few minutes.
__________________
Reply With Quote
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 +2. The time now is 06:21 PM.


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