Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: Spydie on March 28, 2006, 08:56:18 PM

Title: Scoreboard Time Messup
Post by: Spydie on March 28, 2006, 08:56:18 PM
Take a look at the times and tell me what's wrong. Everybody in the server was seeing this. I was only in there but.. maybe 5 minutes.

(http://img76.imageshack.us/img76/3456/sshot0889tj.jpg)
Title: Re: Graffiti Classic 2 MESSUP
Post by: Spydie on March 28, 2006, 08:58:34 PM
Ohh looks like you have to make your browser window fullscreen to see it.
Title: Re: Graffiti Classic 2 MESSUP
Post by: jitspoe on March 29, 2006, 12:06:56 AM
Your subject is a bit misleading.  I don't know that this is specific to the server, unless it's always like that.  My guess is that the system ticks overflowed, causing the time difference to appear negative.  Was it like this on just the client-side scoreboard, or did it show it at the end of the map as well?
Title: Re: Graffiti Classic 2 MESSUP
Post by: b00nlander on March 29, 2006, 05:53:45 AM
jitspoe, that is something that happens on all servers once in a while, its nothing specifially on that server, nor is it clientside.
Title: Re: Graffiti Classic 2 MESSUP
Post by: jitspoe on March 29, 2006, 02:03:06 PM
If it is what I think it is, it'll be hard to test.  Computers store time in a 32bit value which counts the number of milliseconds the computer has been on.  This is used for timing in various applications (read: games).  After about 7 weeks, this value overflows.  It gets so big a 32bit value can't hold it anymore, so it wraps around to 0 again.  At that point, the current time (0) is less than the previous time (something like 4294967295), making the difference between them negative.  I think I can fix it, but it'll be hard to tell if the fix worked or not.