Thread Tools Display Modes
01-17-05, 08:55 AM   #1
diggorus
A Defias Bandit
Join Date: Jan 2005
Posts: 2
SvartenUI Player XP Error?

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?
Attached Thumbnails
Click image for larger version

Name:	Error.jpg
Views:	929
Size:	54.3 KB
ID:	10  
  Reply With Quote
01-17-05, 01:42 PM   #2
Svarten
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 25
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
  Reply With Quote
01-17-05, 01:44 PM   #3
Svarten
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 25
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
  Reply With Quote
01-17-05, 01:47 PM   #4
Cide
Swedeheart
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 96
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.
__________________
CTMod Developer
  Reply With Quote
01-17-05, 02:06 PM   #5
diggorus
A Defias Bandit
Join Date: Jan 2005
Posts: 2
hmmmm...


Think ya might be able to make a version that does divide it in half like the Gypsy mod then?? LOL :P
  Reply With Quote
01-17-05, 05:15 PM   #6
mondinga
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 66
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.
  Reply With Quote
01-17-05, 05:41 PM   #7
Svarten
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 25
I'll have to agree, I'll change it for next version upload.

/Svarten
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » SvartenUI Player XP Error?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off