<< Back to Help Forum   Search

Posts 1 - 9 of 9   
Bug with 90-troop attack at 35% killrate.: 2016-12-12 13:56:17

NewCompte 
Level 61
Report
With an offensive kill rate of 35% and Straight Round, an attack with 90 troops kills 31 troops when it should kill 32 troops.

90*0.35 = 31.5 which should be rounded up to 32, but is instead rounded down to 31.

The rounding up works on attacks with 10, 30, 50, 70 troops but glitches with 90.
It glitches on attacks with 170, 330, 350 troops too.

The 35% offensive killrate is used a lot (in games with "Warriors" in the name), so it's not a harmless bug.
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:10:20

player12345
Level 61
Report
Do you have a game link?
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:13:01

NewCompte 
Level 61
Report
https://www.warlight.net/MultiPlayer?GameID=12475860

Use Menu>Analyse Attack to see it. I also tested it with an actual attack in single-player.
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:17:20

NewCompte 
Level 61
Report
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:21:45

player12345
Level 61
Report
That does seem to be a bug.
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:38:53

NewCompte 
Level 61
Report
Even Google Chrome has the same issue:
Bug with 90-troop attack at 35% killrate.: 2016-12-12 20:52:21

NewCompte 
Level 61
Report

suggests a way to fix it.
Bug with 90-troop attack at 35% killrate.: 2016-12-12 23:28:38

(deleted) 
Level 63
Report
^ same in Firefox.
Bug with 90-troop attack at 35% killrate.: 2016-12-16 01:54:44


psykkoman
Level 61
Report
Probably this is not a bug. It looks to me that this has something to do with the way computers deal with numbers. First they work with binary code. Second, they multiply and divide in complete different manner than we are used to do. Imo this explains abbreviations you describe.
I am not mathematically (or rather binary ;) ) skilled enough to give the exact explanation, but I found article which can be helpful to understand what is the issue:
http://mathforum.org/library/drmath/view/54338.html

Edited 12/16/2016 01:57:44
Posts 1 - 9 of 9