Attack list and army sizes.

A place for bugs that have been fixed
Locked
Midnight
Forum Regular
Posts: 695
Joined: Sun May 14, 2006 10:35 pm
ID: 0
Location: Hell and high water...

Attack list and army sizes.

Just noticed that if you compare the army sizes for accounts on the attack list to what they are when you click on the account itself, they tend to be different.

Eg.

MaguÅ - list size - 3,700 - profile size - 3699
Ancient Ajna - list size - 3,588 - profile size - 3589
sgtjohnkeel- list size - 3,620 - profile size - 3619
Harvey- list size - 3,720 - profile size - 3720
Oneil- list size - 3,694 - profile size - 3693
Midnight Masochist - list size - 3726 - profile size - 3725
Image
User avatar
Thade
Forum Elite
Posts: 1516
Joined: Sun Mar 16, 2008 5:06 pm
Alliance: Devil's Brigade
Race: Expendable
ID: 1940484
Location: Where?
Contact:

Re: Attack list and army sizes.

Looks like some kind of rounding bug. Probably a display issue on the rankings page having the wrong thing.
Midnight
Forum Regular
Posts: 695
Joined: Sun May 14, 2006 10:35 pm
ID: 0
Location: Hell and high water...

Re: Attack list and army sizes.

Thats what I figured, but decided to report it as it doesn't seem to occur in main, so figured it was fixable...
Image
User avatar
Thade
Forum Elite
Posts: 1516
Joined: Sun Mar 16, 2008 5:06 pm
Alliance: Devil's Brigade
Race: Expendable
ID: 1940484
Location: Where?
Contact:

Re: Attack list and army sizes.

Also noticed on the stats.php page that rank is not displayed. (figured it was probably same page so would mention it here, split me off if you'd rather it be separate)
User avatar
adminGary
Origins Server Administrator
Posts: 568
Joined: Tue Dec 23, 2008 4:39 pm
ID: 0

Re: Attack list and army sizes.

it's a rounding error.

since it is hard to give out 50 units on a day when the server ticks 48 times a day. The database is set to not hold just an integer, but a few decimals after that. So if on a sever tick you get 1.5 units, you don't loose that 1/2 a unit, it is made up for on the next server tick. Since some pages use round functions and others use floor functions the armies sizes between two pages can be off by a few units.

Since the round is limited to the untrained units, it doesn't cause any problems in any of the calculations for the game, which is probably why it hasn't been fixed yet.
Locked

Return to “Fixed”