EOL best times bug

General discussion about the games and the scene.

Moderator: Moporators

Post Reply
User avatar
Lousku
Kuski
Posts: 2925
Joined: 5 Feb 2010, 00:25
Team: BAP
Location: expensive land of dads

EOL best times bug

Post by Lousku »

So yeye old news, too big times are displayed wrong in shift-f5, but look at this.

daff025.lev

Code: Select all

       real time    shift-f5 time
TL     21:51:10     00:00:38
Me     23:23:78     01:33:06
[2013-10-20 02:54:30] ( TL) ok so. add 1.3306 to my real time
[2013-10-20 02:54:34] ( TL) and minus 0.38
[2013-10-20 02:54:39] ( TL) and u got louskus time
And ye, it checks out. Can someone explain why that is? :S
then again i don't know anything
maybe easier not to think abouut alöl things thought than not things thought ... or something..=?
User avatar
Markku
38mins club
Posts: 299
Joined: 5 Jun 2003, 22:48
Location: Lizard lounge

Re: EOL best times bug

Post by Markku »

With an unsigned 16-bit integer you can represent numbers from 0 to 65535 (= 2^16 - 1). A larger number causes overflow, so instead of 65536 you get again 0 because the numbers wrap around.

65536 hundredths equals 10 minutes 55.36 seconds, so if your real time is 21:51:10, shift-f5 shows 00:00:38 because 21:51:10 = 10:55:36 + 10:55:36 + 00:00:38. In other words, shift-f5 shows your real time modulo 65536 hundredths, and TL's computation checks out because it is simple modular arithmetic.
Prestigious member of 14.6x Tutor14 club
Thundr-
37mins club
Posts: 398
Joined: 10 Jun 2010, 17:02

Re: EOL best times bug

Post by Thundr- »

the 65536 overflow technique very common in millions of 16-bit games to abuse glitches for leik oneshotting bosses etc. Cool to see it "utilized" in elma too :D
User avatar
ROKKEBOL
Kuski
Posts: 376
Joined: 30 Jan 2011, 08:02
Team: BAP
Location: asdf
Contact:

Re: EOL best times bug

Post by ROKKEBOL »

Pls someone remove my 13:91 from warmup best times because it bug time ty
Image

Image
Post Reply