Synchronizing packet updates
Has anyone successfully synchronized character vitals? I'm sick of the server and the client fighting. When does the client begin to tic? Is it when the character successfully connects to the zone? Would it be possible to start our timers then?
|
This seems to be two problems
1) the timing of client/server with the HP 2) the server having the correct amount of HP item #1 I still see fluctuation in my hp up and down, #2 I don't have, but originally there was a bug around this (Don't know if eqemu main source is fixed either). To add in regards to when the timer starts I would assume it would be around either the end of client loading or when the screen begins rendering (client does send an opcode, but eqemu doesnt track it). This would probably require disassembling the client to be sure. Pretty easy to test #2 just buff yourself, add equipment and watch #showstats, make sure you arent off by a few hp here and there (ignore the fluctuations of the HP just make sure the #'s are right). |
Problem #2 isn't really an issue because we can easily modify the client's BaseData to match the server. Unfortunately, they seemingly hard-coded the assumed regeneration. I have it updating virtually seamless now (RoF2). It's still pushing values onto the client, but it's a lot more logical now. I'd still be interested in a more efficient approach if anyone has any information.
|
I think it's spamming too many HP updates (If I remove the sending HP to self in SendHPUpdate my HP stays correct)
|
I pushed some stuff to try to cut down on spam of useless HP updates and also prevent sending it to the client when it will use the OP_Damage packet to update it's own HP.
Still need to get HP regen right though :/ |
Code:
SendHPUpdate(!iBuffTic); // the OP_Damage actually updates the client in these cases, so we skill them |
The comment on line 3700 isn't really true, the SendHPUpdate is done above, the message is done below. I also didn't proof read my comments added to 3696, oh well. Should read skip not skill.
But other than that, what are you confused about? |
The commenting was confusing. Also, how would damage over time spells update? Are they not sent through CommonDamage?
|
That's what the comments say. I haven't checked live.
|
All times are GMT -4. The time now is 09:55 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.