thekroko / uthgard-herald

Help us build a herald.
GNU General Public License v3.0
13 stars 18 forks source link

Player API reporting incorrect character level. #39

Open Oricul opened 7 years ago

Oricul commented 7 years ago

Since the 02/14 API code push, anyone who levels up is reported as one level lower than they actually are. This is the same symptom as the realm rank bug that was corrected.

Example: https://uthgard.org/herald/api/player/Orito 02/14, after the API code push, I leveled up to 40. Last update is clearly post that day/time.

From what I can tell, characters that have not leveled up since the API code push are reported accurately. Example: https://uthgard.org/herald/api/player/Origami This character hasn't been played for a week or so, and is reported accurately.

andir commented 7 years ago

I doubt that is the same bug as with the realm rank since the calculation was alright before and should not have been affected by the changes I proposed.

The issue with the RR was related to the formula required to convert Realm-Level (starting at 0 <-> R1L0) to the correct display value. With the player level it is much simpler since it is basically (index+1) which equlas len(levels)-i (len(levels) == 50 and max(i) == 49).

Nontheless this might still been bugged :-)

Just my 2 cents.

Oricul commented 7 years ago

I apologize if I was unclear, I meant the symptom is the same, I have no insight to the cause.