[Help] Why is this happening?

08/22/2014 18:30 littlechris95#1
Hello everybody!

I'm having a little problem with my HP Bar ... she just does not show the correct value also to what is visible on the status of the player, I think the problem is in the server sending the packet to the client, because I have debugged this and the variable contains the correct value. See the photos below for better understanding:

Photo 1:

Photo 2:

Thanks!
08/22/2014 23:55 nTL3fTy#2
The client shows the "correct" value in the status window because it's told what to display. The life orb, on the other hand, calculates the max life of the client on its own.
08/23/2014 01:12 abdoumatrix#3
client always right :D

so modify ur calcualtion right.
08/23/2014 01:29 turk55#4
Quote:
Originally Posted by abdoumatrix View Post
client always right :D

so modify ur calcualtion right.
And that is where you think wrong. The server should be always right.
08/23/2014 01:37 Yupmoh#5
Well if the client handles the orb on its own then it must be a problem with the calculation server side.
08/23/2014 02:11 Soulfly25#6
in gameclient or gamestate. at the CalculateHPBonus
there you can see also the function of HPBar
08/23/2014 02:28 -impulse-#7
The problem is intensification refineries.
08/23/2014 13:21 abdoumatrix#8
Quote:
Originally Posted by turk55 View Post
And that is where you think wrong. The server should be always right.
without modfing client it is right till u make calculation right :D
08/23/2014 17:57 littlechris95#9
Quote:
Originally Posted by -impulse- View Post
The problem is intensification refineries.
Yes I also think ... because the difference in values ​​between the status and the hpbar is 3700. 2500 Intensification of refinery and 1200 of Wrangler SubClass, but they are incremented correctly ...

[Only registered and activated users can see links. Click Here To Register...]

--

[Only registered and activated users can see links. Click Here To Register...]
08/23/2014 18:20 Spirited#10
Alright, here's a programming lesson. The reason for modifiers and accessors (get and set methods, or properties as they're called in C#) is to verify input. You should be checking if the value inputted is invalid before it gets set.
08/23/2014 19:37 abdoumatrix#11
Quote:
Originally Posted by littlechris95 View Post
Yes I also think ... because the difference in values ​​between the status and the hpbar is 3700. 2500 Intensification of refinery and 1200 of Wrangler SubClass, but they are incremented correctly ...

[Only registered and activated users can see links. Click Here To Register...]

--

[Only registered and activated users can see links. Click Here To Register...]
just make it be added to ItemHp

so it then added to Maxhitpoints and it calculate the hitpoint from stats
08/23/2014 20:01 littlechris95#12
Quote:
Originally Posted by abdoumatrix View Post
just make it be added to ItemHp

so it then added to Maxhitpoints and it calculate the hitpoint from stats
COPSv6 based...

Check this: [Only registered and activated users can see links. Click Here To Register...]
08/23/2014 20:46 abdoumatrix#13
Quote:
Originally Posted by littlechris95 View Post
COPSv6 based...

Check this: [Only registered and activated users can see links. Click Here To Register...]
xD seems right :D
keep traceing it.
08/23/2014 21:15 -impulse-#14
You didn't understand me. The client does not recognize the hp from intensification refineries. You have to send a special value in the refinery packet for that to work. As for the wrangler you just have to send the martial promote when you login or modify the subclass and it will work fine.
08/24/2014 01:56 littlechris95#15
Quote:
Originally Posted by -impulse- View Post
You didn't understand me. The client does not recognize the hp from intensification refineries. You have to send a special value in the refinery packet for that to work. As for the wrangler you just have to send the martial promote when you login or modify the subclass and it will work fine.
What kind of special value?

I checked here. And the HP from SubClasse Wrangler is only incremented when it is activated.