i think there's a bug around the energy ... don't know how that happened .. seriusly
bugs
|
|
|
you lucky fuck =) this happened during beta also. wish it happened to me |
|
its not a good thing ... this could lead to a rollback |
|
maybe it would be best to make your bot unattackable (if you can do that in bots 4) so that no one takes energy? I admit i tried but failed at it, strong bot :P |
ThisIsSparta [31] |
Nah in beta ender just editted it off iirc |
Spawn [45] |
Ender? |
Administrator |
Whoops, an old bug that I forgot to fix: It happens when two different bots attack another bot with under 20 or so energy at the exact same moment. If the code gets interleaved in a certain way, the parts that check if the target bot has energy to take and the code that actually takes the energy get overlapped in both executions. When both executions then try to take the energy by decrementing an unsigned integer field, it causes an integer underflow and wraps the value around to the upper end, 2^24 ~ 16m in this case. I'll fix it this time. :p |
|
those methods handling the "who attacked who" should be serialized (in java term) then stuff like that wouldn't happen |
Administrator |
This is fixed now. |
|
so i cant attack my bot with two random ones at the exact same time to flip it out and give me 16 mill energy? |
Administrator |
Not anymore. |
|
aw man! you teach me a cool trick and then stop it from working ;p |
exhale [57] |
:P lol |
|
hahah hobo XP |