WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   SvartenUI Player XP Error? (https://www.wowinterface.com/forums/showthread.php?t=103)

diggorus 01-17-05 08:55 AM

SvartenUI Player XP Error?
 
1 Attachment(s)
Hi,

I am using your Player XP AddOn ripped from your UI package thats available for download here.

I am having an issue with the amount of rested XP that is shown. I used to use Gypsy Player Frame which also shows the rested XP amount.

On the attached screenshot, you'll see both your Addon as well as Gypsy's. But there is a rather large difference in the amount of rested XP shown between the two AddOn's

Any idea what could be causing this and how to fix it?

Svarten 01-17-05 01:42 PM

Very odd...

My code is pretty streight forward....
local restXP = GetXPExhaustion();
PXP_RestXPNumber:SetText("+"..restXP);

Can't go wrong with that!

Not sure what to think... I never seen anyting wrong with it sofar...

/Svarten

Svarten 01-17-05 01:44 PM

Just had a look at GypsyMod's code...

-- Divide the rested # in half because
-- (a) that's the exp you really end up getting
-- (b) it isn't such an absurdly huge number taking up a lot of space on the UI.

local str = format("%s / %s (+%s)", currXP, nextXP, (tonumber(restXP) / 2));

Now, it seems mine is showing the right amount, and Gypsy is deviding it in half for some reason :)

/Svarten

Cide 01-17-05 01:47 PM

Well, I guess you showed the XP required to get to normal state. However, you recieve double the exp during rested state, so Gypsy probably removes the other half that you get whether you're rested or not. The result is how much rested XP you will receieve until you turn normal.

diggorus 01-17-05 02:06 PM

hmmmm...


Think ya might be able to make a version that does divide it in half like the Gypsy mod then?? LOL :P

mondinga 01-17-05 05:15 PM

The amount I show is far more relevant, as it directly cooresponds to both the amount you actually gain, and the amounts shown in parentheses when you do gain experience. Displaying the amount of actual experience until out of rested state in raw numbers isn't even terribly useful.

Svarten 01-17-05 05:41 PM

I'll have to agree, I'll change it for next version upload. :)

/Svarten


All times are GMT -6. The time now is 07:20 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI