Post#6 » Wed Nov 13, 2013 5:42 pm
iirc:
The server will calculate the hp, mana, end of every spawn for which it knows the stats. This is every spawn.
Likewise, your client will calculate the hp, mana, end of every spawn for which it knows the stats. This is only your character. Nothing else.
Targets, pets, and group health bars are all based off of whatever the server tells them. Since the server only tells your client the percentage hp, mana, end of other spawns, your client can do nothing but draw a bar indicating percentage. Your client doesn't know how much health another player or mob has, point-wise.
Since your client DOES know your max hp, mana, end and the server tells it you what point value of each you currently have (as opposed to the percentage, like it does for all other spawns), the client then takes it upon itself to calculate the percentage for you.
This is where the discrepancy comes in.
The server knows all, and it tells you your current hp, mana, end. It also knows your max hp, mana, end but doesn't tell you because you can calculate that yourself. Efficient, right?
Right, but it turns out not everyone is using the same formula to calculate hp, mana, end.
THF calculates these numbers using formulae from the Titanium era. Titanium users have that formula, thus server reported hp, mana, end match client calculated hp, mana, end and your health bars shows 100%.
Underfoot client calculates hp, mana, end differently than Titanium. The UF formula seemingly returns more hp, mana, end than the Titanium formula in every instance I've seen.
Thus, when you're full health according to the server (let's say 10k hp) you, the UF user, see yourself at 10k of 11k on your health bar, or 90.9%
The funny thing is that your inventory value will show you at 11k/11k. I have ideas for why that happens that way, but this entire thing is speculation. Take it with a grain of salt!
Bottom line, different hp formula between server and client.
Last edited by
Noren on Thu Nov 14, 2013 4:22 am, edited 1 time in total.