Download
(126 Kb)
Download
Updated: 08/15/17 04:28 AM
Pictures
File Info
Compatibility:
Horns of the Reach (3.1)
Shadows of the Hist (2.5)
Updated:08/15/17 04:28 AM
Created:03/07/15 08:33 PM
Monthly downloads:61
Total downloads:23,998
Favorites:17
MD5:
ChampionXP  Popular! (More than 5000 hits)
Version: 1.0.1.22
by: Zen [More]
This addon displays the amount of Champion XP (CXP) you have earned in the current session, along with the amount per hour. The window only displays if the Champion System is unlocked for your character.
Data is displayed in 2 columns:

The first column (in white) shows the amount of CXP you have earned this session (since logon) and the amount of CXP earned this session per hour. For the first hour, this will equal the value in the row above; after the first hour it will recalculate the average every 5 seconds.

The amount of enlightenment you have is also displayed. When you are on a level 50+ character, you will use Enlightenment when you earn XP to boost the amount of XP gained. On characters below level 50 and when you are logged off, Enlightenment increases.

Any unspent Champion Points are displayed in the 4th row using colour codes:
  1. Orange - The Steed
  2. Green - The Atronach
  3. Blue - The Apprentice
The second column (in yellow) displays the total CXP progress to the next point expressed as a percentage. Note that this is your total progress, not how much you have earned this session. The second row displays how long you have been logged in with this character. the 4th row shows how many Champion Points you have earned in total.

Slash Commands:
/cxp - display CXP earned this session and CXP/hr in chat (suggested by QuadroTony)
/cxpreset - resets the counter for this session (suggested by Plink)
/cxpver - output version information
/cxphelp - display slash commands
/cxpmove - force window to stay visible so you can move it (toggles off after movement stops)

Always read the changelog (check the tabs at the top of this page) to see which aditions and fixes have been made. You can also read ChampionXP.rtf which is part of the package.

Take a look at QuickCompass, a battle compass for hardened warriors that also displays how much AP you've earned since entering Cyrodiil: QuickCompass
1.0.1.22
Horns of the Reach update

1.0.1.21
Morrowind/Horns update

1.0.1.19
SotH Update

1.0.1.18
- Fix for errors when sub-50 level characters are active

1.0.1.16
- DB/SotH DLC update (many thanks to FetaroTESO for providing this fix)

1.0.1.14
- API version update (Thives Guild)

1.0.1.14
- tidy up of library access

1.0.1.13
- Fix by FetaroTESO to account for CXP progression scaling
Many thanks FetaroTESO for being so on the ball with this!

1.0.1.12
- update for Orsinium patch

1.0.1.11
- updated api version number

1.0.1.10
- fix for nil .. string error on line 242

1.0.1.8
- changed hide code to phycically move the window off the screen so it doesn't interfere with UI elements

1.0.1.7
- changed XP/hr to say CXP/hr

1.0.1.6
- fixed total CXP earned counter setting itself to current CXP
- added total CP earned

1.0.1.4
- fixed average calculation that occurs after one hour has passed since logon

1.0.1.3
- fixed another reference to the old wykkyd libs (yay for text search!)
- added /cxpmove command to allow you to force the window to stay visible so you can move it
- added /cxphelp command to display slash commands
- added help information to the Settings/Addons menu and enabled global configuration

1.0.1.02
- dammit, there was another reference to the old wykkyd libs, apologies

1.0.1.01
- changed version number because Minion is dumb and can't tell the difference between 1 and 10

1.0.0.10
- oops, although I replaced the wykkyd libs with new versions, I forgot to update the config file to use them

1.0.0.9
- updated wykkyds libraries to latest version
- fix for the negative CXP/hr problem (hopefully it really is foxed now)
- added the display of unspent CP
Optional Files (0)


Archived Files (30)
File Name
Version
Size
Uploader
Date
1.0.1.21
126kB
Zen
07/15/17 06:01 AM
1.0.1.20
121kB
Zen
08/02/16 04:09 AM
1.0.1.19
121kB
Zen
08/02/16 04:04 AM
1.0.1.18
121kB
Zen
07/14/16 03:08 AM
1.0.1.17
121kB
Zen
07/12/16 01:49 AM
1.0.1.16
121kB
Zen
07/05/16 08:54 AM
1.0.1.15
121kB
Zen
03/09/16 04:55 AM
1.0.1.14
121kB
Zen
11/09/15 07:59 AM
1.0.1.13
112kB
Zen
11/04/15 10:06 AM
1.0.1.12
112kB
Zen
11/03/15 04:18 AM
1.0.1.11
112kB
Zen
08/31/15 11:37 PM
1.0.1.10
112kB
Zen
08/28/15 06:45 AM
1.0.1.9
112kB
Zen
08/21/15 09:57 AM
1.0.1.8
112kB
Zen
07/06/15 04:24 AM
1.0.1.7
112kB
Zen
07/05/15 02:49 AM
1.0.1.6
112kB
Zen
06/22/15 04:42 AM
1.0.1.5
97kB
Zen
06/18/15 07:00 AM
1.0.1.4
97kB
Zen
06/08/15 11:22 PM
1.0.1.3
97kB
Zen
06/08/15 03:43 AM
1.0.1.02
96kB
Zen
06/07/15 12:35 PM
1.0.1.01
96kB
Zen
06/07/15 07:04 AM
1.0.0.8
154kB
Zen
05/05/15 02:58 AM
1.0.0.7
154kB
Zen
04/28/15 02:25 AM
1.0.0.7
154kB
Zen
04/28/15 02:16 AM
1.0.0.6
154kB
Zen
04/24/15 04:15 PM
1.0.0.5
154kB
Zen
03/20/15 05:20 AM
1.0.0.4
191kB
Zen
03/09/15 03:19 AM
1.0.0.3
191kB
Zen
03/09/15 02:12 AM
1.0.0.2
191kB
Zen
03/09/15 01:58 AM
1.0.0.1
109kB
03/07/15 08:33 PM


Post A Reply Comment Options
Unread 05/01/15, 12:25 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Wrong CXP

Originally Posted by Sinful Soul
Often when I zone it adds several hundred thousand CXP to the "CXP earned". For instance, when I was in Mournhold I was at ~400,000 CXP and when I traveled to Cyrodiil it showed ~900,000 CXP, it added exactly 500,000 CXP to the meter. I can't remember if that bug only happens when traveling to Cyrodiil or not, but I think it's happened before when I zoned to inside Trials/dungeons before too.
Wow. I'll look into this, although I haven't come across it before I'll see if I can replicate it. Can you give me some idea of whether this was a one-off, happens intermittently or with regularity?

This would probably be an error in game API functions, since at no point do I add any CXP that the API hasn't already told me you've earned, but if I can replicate it, I can probably get teh devs to sit up and take notice.
Report comment to moderator  
Reply With Quote
Unread 05/01/15, 03:36 PM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
wrong value

Happened again as you can see:



I think I may have figured it out tho, not quite sure, I'll keep an eye for it. But I believe it's either one of two reasons: it's either going nuts during quests turn ins in Cyrodiil or it's going nuts when a skill/armor/weapon levels up since it went crazy after some quest turn ins in Cyrodiil which happened to raise the lvl of some skills. Not 100% sure on that as it's not the kind of thing I really pay too close attention to but I'll try to pay a closer attention at turn ins and when the skills are closer to lvl up.

Edit: never mind.. i did a /reloadui just a few minutes ago and was porting around and within 10 minutes now it shows I have "402,000 CXP" when it was at 0 CXP just 10 minutes ago when I did a /reloadui. I didn't really do anything in those 10 minutes other than buy some gear from the Elite vendor in Cyrodiil and posting them at the AH.
Last edited by Sinful Soul : 05/01/15 at 03:57 PM.
Report comment to moderator  
Reply With Quote
Unread 05/05/15, 03:04 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: wrong value

I have put in a catch that will cause the CXP window to not update if the CXP returned by the API is less than 1. This may under certain conditions cause the window to not update or display properly, but that should be exceedingly rare and will change as soon as you earn a CXP.

Those conditions are:
1. You must not have earned any CXP since logging in
2. You must have earned a CP (or gained the right to earn CXP) in the last session, but not earned any CXP since (so your CXP really is zero)

I hope this helps.
Report comment to moderator  
Reply With Quote
Unread 05/29/15, 12:50 PM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
Negative values (still)

Using the latest version, and I just logged in to turn in some quests I had finished earlier but was waiting to be enlightened before turning them in, and I got this error:



I did get a champion point during the turn ins and that's when it went negative.
Report comment to moderator  
Reply With Quote
Unread 06/06/15, 03:11 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Negative values (still)

Originally Posted by Sinful Soul
Using the latest version, and I just logged in to turn in some quests I had finished earlier but was waiting to be enlightened before turning them in, and I got this error:



I did get a champion point during the turn ins and that's when it went negative.
Ok, ty for that, I'll look at it again.
Report comment to moderator  
Reply With Quote
Unread 06/07/15, 06:50 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Re: Negative values (still)

I was looking in the wrong place in the code, and your snapshot pointed me in the right direction. I was applying fixes to the code that calculates the average per hour, and your snapshot showed only a few minutes (less than an hour), so the code that calculated average per hour wasn't even being called.

It looks like a bug in a wykkyd function LWF::comma_value() which may be fixed in the latest release. Regardless, I have set the code to skip this call if the value is less than 1k.

I also added Unspent CP to the display, which colour codes the values:
Steed
Atronach
Apprentice

Wykkyd updated his core libraries yesterday so I switched to those so the addon is now using them.

If this doesn't fix the negative value problem, let me know and I'll nuke the code.
Last edited by Zen : 06/07/15 at 06:51 AM.
Report comment to moderator  
Reply With Quote
Unread 06/07/15, 08:30 AM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
New error

Upon login, I get this error:



The add-on never even shows at all now. It's like it's not even installed.
Report comment to moderator  
Reply With Quote
Unread 06/07/15, 12:37 PM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: New error

Originally Posted by Sinful Soul
Upon login, I get this error:



The add-on never even shows at all now. It's like it's not even installed.
aaah cr*ap, there was another reference to the old wykkyd libs in there, and in my local copy of the addons folder I had both the new and old libs so didn't get the error myself. I've checked this now with a clean install, it should work properly.
Report comment to moderator  
Reply With Quote
Unread 06/07/15, 02:23 PM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
Not there yet

Getting this error with the new one:



I manually deleted the old folder, even deleted the .lua in the /savedvariables folder but still not working with the new version.
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 02:26 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Not there yet

Originally Posted by Sinful Soul
Getting this error with the new one:



I manually deleted the old folder, even deleted the .lua in the /savedvariables folder but still not working with the new version.
Very strange that I didn't get that error. Perhaps another addon had loaded the older version of the libs which made them available to this addon.

Regardless, I have fixed the code, I'll upload the new version just as soon as I have (re-)added the ability to move the window, yet still leave the window hiding when the UI is opened. Tricksy one that, but now the window has changed size, it is more important than ever to be able to move it.
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 03:50 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Re: Not there yet

I have fixed the error you reported, Sinful, and added a few things too:

1. /cxphelp slash command to display slash commands
2. /cxpmove slash command
3. help text in Settings/Addons menu
4. global configuration (share settings with all your characters) is now enabled

To move the window, type /cxpmove to force the window to stay visible. Now you *must* move the window in order to toggle the setting off (or you can /reloadui or relog your character). As soon as you drop the window in the new location, the toggle is turned off.
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 08:23 AM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
One more

Everything was going smooth with the new version, but exactly at the 1 hour mark of being in-game, I got this error:

user:/AddOns/ChampionXP/ChampionXP.lua:154: operator < is not supported for number < string
stack traceback:
user:/AddOns/ChampionXP/ChampionXP.lua:154: in function '(anonymous)'

And it just keeps spamming it over and over and over again.
Last edited by Sinful Soul : 06/08/15 at 08:25 AM.
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 11:20 PM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: One more

Originally Posted by Sinful Soul
Everything was going smooth with the new version, but exactly at the 1 hour mark of being in-game, I got this error:

user:/AddOns/ChampionXP/ChampionXP.lua:154: operator < is not supported for number < string
stack traceback:
user:/AddOns/ChampionXP/ChampionXP.lua:154: in function '(anonymous)'

And it just keeps spamming it over and over and over again.
Wow, that was a tough one to track down. I got a report from one other person who gave me the same error message but for line 137, neither of which had a > operator.

After a bit of investigation, I found that lua doesn't directly support a 'greater than' operator, it inverts the code:

if x > y then // original code

if y < x then // compiled code

That helped me to track down where the error was introduced.
Report comment to moderator  
Reply With Quote
Unread 06/09/15, 06:38 PM  
Sinful Soul

Forum posts: 1
File comments: 176
Uploads: 0
Negative values

Sorry to be the constant bearer of bad news, but the negative value thing still happening:



That photo above happened when I first got a CP after I turned in a bunch of quests at the same time while I still had Enlightment.

But then there's also this one:



I did a /reloadui to fix that bug and a couple of hours later I got another CP and this time I didn't have enlightenment and it didn't go into negative values? Could the negative values bug have anything to do with have enlightenment in the pool or not? Both screenshots from today, just a couple of hours apart.

EDIT: Today I got a CP, and I even had enlightment on (well, left over of the enlightenment from yesterday plus the new one from today) but I didn't bug out. However, it was past the 1 hour mark. I noticed all the times it bugs out it was under 1 hour (when I just turn in a lot of quests at once in a few minutes to get a "free" cp). Seems the problem is getting the CP under an hour for some reason?
Last edited by Sinful Soul : 06/11/15 at 01:33 PM.
Report comment to moderator  
Reply With Quote
Unread 06/13/15, 03:33 AM  
Zen
 
Zen's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 46
Uploads: 2
Re: Negative values

Thanks for the extra info, it is possible that there are more than one bug in the code, so I'll keep at it!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: