PDA

View Full Version : Sta/HP Calculation bug


Smaks
06-11-2003, 07:13 PM
ok, so I've been messing around with eqemu for a few weeks now, ive noticed that there is a bug with the max number of hp that you have and your total hp for example:

my wizard has 1031 hp maximum but it will only allow you to get up to 1000 hp maximum. Now, I have done some research on this and tried different item combinations etc. It seems to be a bug with the way HP are calculated after 255 stamina, there isnt a problem at 256 sta, but anything over that makes the Current/Max HP mismatch. and then it always says you are at 99% life.

Sta | Amount Off
---------------------
280| 31 HP
278| 28 HP
272| 20 HP
267| 15 HP
258| 2 HP

Now, I have noticed that sometimes when i log in, my character just starts to lose HP, and he constantly loses hit points until he dies, and then he keeps losing hp putting him in a death loop. I am not sure if this bug is related to this yet, but since I took some items off and dropped my characters stamina to 255 or lower I havent seen this happen yet. I will look into the code when I get a little more time, would appreciate any help or input anyone has.

Another bug I have noticed is that when someone is playing on my server sometimes it displays the incorrect amount of HP in the group window, or they take a lot of damage on their client and the server doesn't register it.

kathgar
06-12-2003, 12:54 AM
For loosing life, make sure you don't have any gm items and aren't a gm, no duplicate lore items, and you have the recomended level for the items.

gej302
06-12-2003, 03:52 AM
you might consider doing a #showstats to see if the server thinks you are over 255 stamina, too. What could be happening is that client says to server hey, I'm 1031 hp, and server replys with "denied, you are 1000hp, submit in 30 seconds for further denial"

Bigpull
06-12-2003, 06:30 AM
Stats over 254 will break characters .
Unless someone gets a wild hair up thier ass i wouldn't expect ANYTHING pop related to work untill we're done with all the other expansions

Recommended level items shouldn't drain your life if your using a (relativly) recent cvs version

hp desync is just lag, code needs optimized ect

Have a look at the client Calc* functions and "friends", Hp's AC and Atk all need some loving.

Smaks
06-12-2003, 07:07 AM
You say, '#showstats'
Name: Zalumbas the Gay Gnome
Level: 65 MaxHP: 3623 CurHP: 3623 AC: 792 Class: 12
MaxMana: 5745 CurMana: 5745 ATK: 20 Size: 3.0
STR: 160 STA: 255 DEX: 255 AGI: 234 INT: 255 WIS: 134
CHA: 115
Race: 12 BaseRace: 12 Texture: 255 HelmTexture: 255
Gender: 0 BaseGender: 0
EntityID: 87 PetID: 0 OwnerID: 0 AIControlled: 0
CharID: 5 PetID: 0

Also, thanks for the lore items/gm items suggestion, that seems to have fixed the problem.

According to the client my character should have 4004 HP Max, 1271 AC, 1127 Atk.

160str 280sta 234agi 280dex 134wis 280int 115cha

Thanks for the info bigpull :)
appreciate all the input guys