×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Bugs
  • /
  • Negative time when completing a map past the six minute mark.
1 / 2 › »
Negative time when completing a map past the six minute mark.
Haruhitastic
« Censeur »
1361834340000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
http://i.imgur.com/yhJfxfF.png
[Caludoi] -38s?
[Caludoi] what?
[Haruhitastic] AHAHAHAH WHAT,.
[Caludoi] how did i do that

Don't know if it's intentional or not but it is rather amusing. Mostly posting this to point it out in case it wasn't. Any ideas what causes it though? I don't know how far past the six minute mark it was.. I knew at one time it was possible to have a four digit second time (ie: 1000.0) but I assume this began when they added the extra place.

eta -
it's getting worse


http://i.imgur.com/5tTWcCA.png
third place is negative, fourth is regular
Kit
« Archonte »
1361835480000
    • Kit#9532
    • Profil
    • Derniers messages
    • Tribu
#2
  0
What?
How weird.
Haruhitastic
« Censeur »
1361835600000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Caludoi and myself are testing this right now. I or he will post results once we finish.
Caludoi
« Citoyen »
1361837280000
    • Caludoi#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
05 minutes of waiting -- ~300
10 minutes of waiting -- ~-60
20 minutes of waiting -- ~-120

Looks like it goes from 0 to 540 and then starts looping 0 to -540.
Haruhitastic
« Censeur »
1361837520000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Here's the final image from the testing for the curious


http://i.imgur.com/dozNuAY.png
Caludoi
« Citoyen »
1361839980000
    • Caludoi#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
I just tried :41 to :50 and ended up at -112s, which flies in the face of my theory.

NOW THAT I SAW THE EDIT BUTTON:
Overflow seems to happen at 330s to -330s, then counting back up to 330 and overflowing again. There we go.
Caludoi
1361841120000
    • Caludoi#0000
    • Profil
    • Derniers messages
    • Tribu
#7
[Modéré par Mausibiene]
Qwename
« Citoyen »
1361859300000
    • Qwename#0000
    • Profil
    • Derniers messages
#8
  0
The answer to this bug lies in the fact that the time taken for a mouse to complete the map is sent to the client in the form of two bytes, and is interpreted by the client as a short(or word). The value is then divided by 100 to get the final time that will be shown beside the individual mouse positions.
The problem with this is that a short can only hold values from -32768 to 32767, therefore the times displayed will range from -327.68 to 327.67.
Of course this isn't usually a problem anyway in TFM, unless you're in a tribe house or happened to take more than 327.67 seconds to complete a bootcamp map.
To solve the problem, change short into unsigned short or, at the risk of consuming more bandwidth, use int or unsigned int.
-- Fellow TFMicer

EDIT: Using unsigned short is good enough since 655.35 seconds is 10 minutes 55.35 seconds, while using a signed integer to hold the value would amount to a maximum of around 248 days.

EDIT EDIT: Turns out that in AS3, the only unsigned type is uint...

EDIT EDIT EDIT: You can still send it as two bytes, but interpret as integer by padding 2 more bytes.
Coldfreeze
« Citoyen »
1361872380000
    • Coldfreeze#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Happens in tribe house.
Caludoi
« Citoyen »
1361880300000
    • Caludoi#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Could've thought of that myself, heh.
Anyway, I reckon the data has been sent as an int before, so it probably isn't that much of a problem in terms of bandwidth/performance.
Haruhitastic
« Censeur »
1361898480000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Coldfreeze a dit :
Happens in tribe house.

Qwename a dit :
Of course this isn't usually a problem anyway in TFM, unless you're in a tribe house or happened to take more than 327.67 seconds to complete a bootcamp map.

u are good at da read
Plague
« Citoyen »
1362337020000
    • Plague#4538
    • Profil
    • Derniers messages
    • Tribu
#12
  0
It happened to me lol.
The time counter thingymabob probably goes to a specific positice number then goes to negatives.
Haruhitastic
« Censeur »
1362446580000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Everyone is so good at reading comprehension aren't they >.>
Caludoi
1363890900000
    • Caludoi#0000
    • Profil
    • Derniers messages
    • Tribu
#14
[Modéré par Dracoleaf, raison : If you are going to bump a thread, please make sure you add discussion value in the bump.]
Xanmeow
« Citoyen »
1376929140000
    • Xanmeow#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
seen it lol i dont get this its weird
Haruhitastic
« Censeur »
1376929380000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Qwename and Caludoi both explain it. Read their posts, then you will "get it."
Kredos
« Citoyen »
1376951400000
    • Kredos#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
There is a chance this was intentional, reason being, the person to get into the hole in bootcamp, it will add or minus score? Either way, it seems like a bug, a really weird one
Haruhitastic
« Censeur »
1376951520000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
Can you be a little more specific? :I I have no idea what you're saying.

And of course it's a bug. I wouldn't have put it here if not.
Papero
« Citoyen »
1376975820000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#19
  0
weird i thought it always extended to hours ?

o-o
Championrs
« Citoyen »
1376992380000
    • Championrs#0000
    • Profil
    • Derniers messages
#20
  0
Haruhitastic a dit :
[Caludoi] -38s?
[Caludoi] what?
[Haruhitastic] AHAHAHAH WHAT,.
[Caludoi] how did i do that

Don't know if it's intentional or not but it is rather amusing. Mostly posting this to point it out in case it wasn't. Any ideas what causes it though? I don't know how far past the six minute mark it was.. I knew at one time it was possible to have a four digit second time (ie: 1000.0) but I assume this began when they added the extra place.

eta -
it's getting worse


third place is negative, fourth is regular

When a map is finished mor ethan a 100 hundred times, there will be something like 1-1 (Name)
Ill get a screenshot
  • Forums
  • /
  • Transformice
  • /
  • Bugs
  • /
  • Negative time when completing a map past the six minute mark.
1 / 2 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27