EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   AC, ATTK, Haste, ETC (https://www.eqemulator.org/forums/showthread.php?t=37338)

kimura 09-30-2013 11:44 AM

AC, ATTK, Haste, ETC
 
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.

Code:

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

Quote:

Originally Posted by lerxst2112 (Post 224521)
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

Quote:

Originally Posted by HnathBST (Post 224527)
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...ClientVersions

HnathBST 10-01-2013 12:58 AM

Quote:

Originally Posted by sorvani (Post 224534)
just a note, there is not a HoT client. You have UF.
http://www.eqemulator.net/wiki/wikka...ClientVersions

Touche sir.

kimura 10-01-2013 03:54 PM

that fixed it! thanks so much demonstar!


All times are GMT -4. The time now is 08:41 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.