bugs

Forum > Bugs > Energy offset ratio increasing.
Reply To Thread (login)
neps [332]
<123>
2012-03-20 22:21:24
[12 years, 249 days ago]

Not sure if this unintended, but despite having made (duh) or recieved zero attacks this month, My energy offset ratio has been steadily climbing since the update. Since this is supposed to be be:

total energy gained divided energy regen'd

mine should be (x1.00). It's been increasing steadily.

Might explain while high level bots have been getting crazy EPHs. Mine is 954 atm. It was 700ish a few days ago, and I didn't do anything.


 
Draoi [51]
2012-03-20 22:24:40
[12 years, 249 days ago]

Quick! Fix it before all the high levels steal top10 spots :<


 
neps [332]
<123>
2012-03-20 22:58:08
[12 years, 249 days ago]

Some EPHs have doubled from regen alone since the update. I wonder if we'll be seeing 16k, 32k EPH before the month is up.


 
Ender [1]
Administrator
2012-03-21 21:26:03
[12 years, 248 days ago]

Ha, so this is fixed now, but it was a little subtle. Read on for details if you're curious how it happened.

Energy offset is calculated by keeping track of two values: energy regen and energy. You can then find the offset by simply dividing the energy by the energy regen. Since EPH was fixed at 20 at the time of the database design for this feature, I stored energy regen as a 16-bit integer (max value of 16-bit integer = 2^16 = 65,536, max energy regen in a month = 20 * 24 * 31 = 14,880). Obviously that assumption no longer held with the new EPH formula though, so this meant that as soon as your energy regen hit the 2^16 mark, this value would get stuck in place while your actual energy rose, causing the offset to rise as well, which in turn would grow your EPH and exacerbate the original problem, making it look like it was spiraling out of control.

Thanks for reporting this!


 
neps [332]
<123>
2012-03-21 21:31:36
[12 years, 248 days ago]

Thanks Ender. It was good while it lasted. So I guess, free high EPH now thanks to the bug, I'll be a sad panda when it starts going down again. :(


 
Draoi [51]
2012-03-22 14:37:17
[12 years, 247 days ago]

I'm a sad panda there will be top10 plats to a couple undeserving :\


 
Shoegazer [86]
Moderator
2012-03-22 15:02:24
[12 years, 247 days ago]

finally the levelers are getting some reward for their efforts. makes me wanna level up and get that easy energy :)


 
Forum > Bugs > Energy offset ratio increasing.
Reply To Thread (login)