- 53 hairy chesticles balrog blade <The F5 Tornadoes> 16,777,115 (+16,775,435) 356/815 [0.44] offline Fight Fight
1 <The F5 Tornadoes> balrog blade [53] 1 356 818 0.44 1,299 16,777,055 (+16,775,375)
I think someone has found a bug...
bugs
Sir Galahad [53] 2011-04-04 11:34:00
[13 years, 266 days ago] |
|
Sir Galahad [53] 2011-04-04 11:40:08
[13 years, 266 days ago] |
ok agreed that post didn't make much sense :P, WE NEED AN EDIT BUTTON ;) |
2011-04-04 11:41:09
[13 years, 266 days ago] |
Ya, i was fighting him, he had normal energy (100 something i think) then it came up [You target is currently fight] went back to the menu and he had 16 million o.O |
Sir Lancelot [63] 2011-04-04 11:42:54
[13 years, 266 days ago] |
his energy is now roun 900, but his monthly is still that high amount |
Administrator 2011-04-04 13:08:59
[13 years, 266 days ago] |
Energy is stored as an unsigned 24-bit integer, giving it a range of 2^24 = 16,777,216. What happened is that he had a very low amount of energy and the game tried to subtract an energy amount greater than he had, resulting in a negative number. Since energy is stored as unsigned though, this was interpreted as an unsigned integer, causing it to rollover to the upper range. |
2011-04-04 13:19:19
[13 years, 266 days ago] |
Very interesting problem :D |
Administrator 2011-04-04 13:25:27
[13 years, 266 days ago] |
Oh whoops yes, I probably did mean isolation, not atomicity. |
Administrator 2011-04-04 15:45:31
[13 years, 266 days ago] |
I thought about this some more and there's a fix even more simple than using transactions. Instead of doing "set energy = energy - ?" where the ? is the energy transfer, it could just be "set energy = ?" where ? is the expected end energy. |
Sir Galahad [54] 2011-04-06 12:19:35
[13 years, 264 days ago] |
guess it happened again... |
Administrator 2011-04-06 12:32:07
[13 years, 264 days ago] |
Emanuel set out to reproduce this. I didn't think he'd be able to pull it off, so color me impressed. :p |
Warbringer [79] 2011-04-17 12:56:12
[13 years, 253 days ago] |
This happened again on Pure Pwnage level 92 :p |
2011-04-17 13:27:36
[13 years, 253 days ago] |
Up we go beat us all! |
warrington [105] 2011-04-17 15:26:00
[13 years, 253 days ago] |
Guess that fix never happened then haha. |
2011-04-17 15:39:28
[13 years, 253 days ago] |
Woop, fixed xD |
DreamSweet [78] 2011-04-18 02:02:27
[13 years, 252 days ago] |
Omg mutex fail lol D: |