bugs

Forum > Bugs > Fight log issue
Reply To Thread (login)
Nosferatu [257]
2014-09-24 15:41:16
[9 years, 225 days ago]

http://i.imgur.com/NeCA30r.png --- Anyone else ever experience this?


 
Ender [1]
Administrator
2014-09-24 23:00:01
[9 years, 225 days ago]

To give some more context, I looked into this with Nos a couple nights ago (read: it's not caused by the Smarty upgrade) and wasn't able to turn anything up. He's using Chrome beta. I wasn't able to reproduce this with either Chrome stable or Chrome beta and his JS error log is empty, so I'm kind of stumped. If anyone else is seeing this, please post here.


 
Nosferatu [257]
2014-09-24 23:18:53
[9 years, 225 days ago]

I logged on Chrome Version 38.0.2125.66 beta-m (64-bit), Chrome Canary Version 39.0.2168.0 canary, Internet Explorer 11 Version 11.0.9600.17280 (Update Version 11.0.12), & Firefox Version 32.0.2.

All showed the same issue.


 
Linn [90]
2014-09-25 18:33:13
[9 years, 224 days ago]

Looks as if the Js isn't adding the numbers correctly. parseInt() problem maybe?

/Me hides back in the shadows.


 
Ender [1]
Administrator
2014-09-25 19:34:20
[9 years, 224 days ago]

Yeah, that's what this looks like. The weird part is that no one else has this problem and that I can't reproduce it locally when I log into Nos's account with a copy of the live database.


 
Linn [90]
2014-09-25 19:43:34
[9 years, 224 days ago]

In the fighthistory.js file, what about changing

Line 77

experience.push(attack.experience);

to

experience.push(parseInt(attack.experience));

 
Ender [1]
Administrator
2014-09-25 22:18:22
[9 years, 224 days ago]

After some more back-and-forth in chat, this has been narrowed down to only affecting values exceeding 2^32. I'm not sure why they're being interpreted as strings only on some systems (and am still unable to reproduce the problem myself), but I added an explicit cast, so this is fixed now.


 
Nosferatu [257]
2014-09-25 22:47:26
[9 years, 224 days ago]

I have stumped the great and mighty Ender! \o/ Free star?


 
Crab Whistler [130]
2014-09-26 17:05:03
[9 years, 223 days ago]

hands Nos a star


 
Forum > Bugs > Fight log issue
Reply To Thread (login)