PDA

View Full Version : AC, ATTK, Haste, ETC


kimura
09-30-2013, 11:44 AM
all of these stats in #mystats are showing equal to whatever level the player is...

if level 80 those are 80, if 75 then they are 75 etc...

these stats in #mystats are not effected by items or spells, they don't change unless your level changes...

anyone know what the deal is?

Thanks :P

Kingly_Krab
09-30-2013, 03:44 PM
What version of the source are you running on? And would you mind looking up the Armor Class, Attack, Haste, etc. code in your source and posting it?

kardath2
09-30-2013, 03:46 PM
This fixed it for me. There's one instance of itoa that you shouldn't replace around line 2583 (after adding the function linked). Think you'd have to add another function that accepts more parameters to handle that call, but don't know enough c++ to be sure. :p
http://eqemulator.org/forums/showthread.php?t=36981

Kingly_Krab
09-30-2013, 03:59 PM
That's quite weird, it works 100% fine for me on the newest source, may I ask what revision this error occurred in?

kardath2
09-30-2013, 04:06 PM
Not a clue. I pulled the source from git on sep 7th though.

Kingly_Krab
09-30-2013, 04:07 PM
Mine's from around there I believe, I'm not 100% sure, but that's weird, I had source from last October and it didn't ever do that.

lerxst2112
09-30-2013, 04:33 PM
itoa/atoi has never been safe. The ways it can fail are implementation dependent, so it may be fine on one platform and not on another.

kimura
09-30-2013, 07:29 PM
hey guys, ty for the responses! this seems a litte outta my league as far as knowledge goes haha. . .

the source i used was very recent. . . i think 2514 or 2516?

HnathBST
09-30-2013, 08:06 PM
I can verify the problem on the newest git source (9/13/13). Also the client is HoT for me.


Caption Displayed Actual
Level 85 85
Rune 85 0
Spell Rune 85 0 "Spell Runes", 480 spells in spell book
HP 10276 10276
Mana 9390/9390 9390/9391 (I'm guessing a rounding error. I never hit 9391)
End 4168 4168
DS 85
ATK 85 1716 (reported in inventory)
AC 85 1818 (reported in inventory)
Haste 85 No worn/spell haste, #haste 0

Heal Amt 85/85
spell dmg 85/85
clairvoyance 85/85
dmg shld mit 85/85
(I don't know the formula for calculating them, but I'm fairly certain they aren't 85...)


The only effect level had was changing the 85's to what ever the current level is. I checked at level 10, 20, ..., 70, 80, 85 all the same.

demonstar55
09-30-2013, 08:13 PM
itoa has never been safe. The ways it can fail are implementation dependent, so it may be fine on one platform and not on another.

This isn't "standard" itoa (there actually isn't a standard, itoa isn't part of ANSI C or C++)

What is also weird is that itoa works 100% through out the rest of the Client::SendStatsWindow function. It only fails compiling the final string.

kimura
09-30-2013, 08:51 PM
yes, HnathBST, that is exactly what mine is doing too

demonstar55
09-30-2013, 10:29 PM
This should be fixed on GitHub now.

sorvani
09-30-2013, 10:57 PM
I can verify the problem on the newest git source (9/13/13). Also the client is HoT for me.

just a note, there is not a HoT client. You have UF.
http://www.eqemulator.net/wiki/wikka.php?wakka=ClientVersions

HnathBST
10-01-2013, 12:58 AM
just a note, there is not a HoT client. You have UF.
http://www.eqemulator.net/wiki/wikka.php?wakka=ClientVersions

Touche sir.

kimura
10-01-2013, 03:54 PM
that fixed it! thanks so much demonstar!