Page 2 of 2

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 3:23 pm
by stompie
how do people get different times on this map i got 12 secs bunch of times then got 1 min O.o

and how doesthe top5 work for a map like this why does it show the people on /top5 that it does any specific order?

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 3:24 pm
by pixel
i made such a map too
dontmove.map
(1.09 KiB) Downloaded 121 times

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 3:48 pm
by Im 'corneum
stompie wrote:how do people get different times on this map i got 12 secs bunch of times then got 1 min O.o

and how doesthe top5 work for a map like this why does it show the people on /top5 that it does any specific order?
at my map i always had around 45 seconds. ans sometimes some miliseconds more or less. i think the time counter in teeworlds goes a couple of digits more down but we dont see this.

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 4:43 pm
by deen
Internally ticks of 20 ms length are used, so we have no more accuracy than that. The ordering is calculated like this: https://github.com/ddnet/ddnet/blob/mas ... #L720-L723

Code: Select all

SET @prev := NULL;
SET @rank := 1;
SET @pos := 0;
SELECT Rank, Name, Time FROM (SELECT Name, (@pos := @pos+1) pos, (@rank := IF(@prev = Time,@rank, @pos)) rank, (@prev := Time) Time FROM (SELECT Name, min(Time) as Time FROM record_race WHERE Map = '%s' GROUP BY Name ORDER BY `Time` ASC) as a) as b WHERE Name = '%s';
So there is no ordering by Name defined, only by Time, which means the order of names depends on the database implementation when multiple players have the same time.

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 4:50 pm
by stompie
deen wrote: So there is no ordering by Name defined, only by Time, which means the order of names depends on the database implementation when multiple players have the same time.
so the latest time that was put in get the top spot?

Re: Dont Move - Fun Map!!

Posted: Sun Oct 23, 2016 5:38 pm
by Ryozuki
stompie wrote:how do people get different times on this map i got 12 secs bunch of times then got 1 min O.o

and how doesthe top5 work for a map like this why does it show the people on /top5 that it does any specific order?
you can make a little move the the left on start and u will get 12 secs