Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
3.2.2_8r
Date:
10-15-2009 08:47 PM
Size:
50.94 Kb
Downloads:
2,509
Favorites:
26
MD5:
Pictures
The average output window.
Click to enlarge
All the displays, using Titan for the LDB.
Click to enlarge
The Configuration window.
Click to enlarge
The messages shown in the default chat window and the floating error frame.
XToLevel
A very simple addon that calculates the kills, quests and battles required to reach your next level.

Features
  • After each kill, quest or battleground, the exact amount required of that particular mob, quest or battleground is displayed in the floating error-message window, and optionally in the default chat window.
  • A small window displaying the average amount of kills, quests and battlegrounds required, based on your previous data.
  • A highly configurable LDB data-source, providing data to LDB front-end addons, such as TitanPanel and Fortress.
  • Hunters can see the amount of kills required for their pets to gain a level.
  • Optionally, the amount of battleground objectives needed can be displayed.

All of these display features can be configured via the configuration window, which is
accessible by either right-clicking the average window or typing the commands: /xtl or /xtolevel

Language support
The addon supports English, French, German and Spanish.

Note that the translations for Spanish and French may not be entirely correct.
I speak neither of them, so I just used the Google translator to translate the phrases.
You can edit the translations by editing a locale's respective file under the "locale" directory.

Thanks to Marcel and Axel for their help with the German translation!

Custom LDB Text Patterns
With version 3.2.0_5r you can now create custom patterns for the LDB text output.

This is done by opening the config window, selecting the LDB tab and choosing "Custom" from the Pattern drop-down. Then the text-box will be enabled for you to enter you pattern.

In short, you can use HTML-like tags to represent the available data:
- kills, quests, bgs (battles), bgo (bg objectives), xp, pet, petxp

For example, you could do:

- K: <kills> Q: <quests> XP: <xp>

= K: 100 Q: 10 XP: 90%

For full details on how to construct a custom pattern, see the "customPatterns.txt" file that comes with the addon.
  Change Log - XToLevel
Version 3.2.2_8r
  • The configuration window has been re-designed from scratch in order to retire the old Waterfall GUI, which accounted for roughly 2/3 of the memory being used by the addon.
    As a result, the addon now uses up to 3 times less memory than the previous versions, depending on the situation.
  • You can now clear kill, quest and battle records, used by the average calculations, via the "Data" tab of the configuration window.
  • Several code optimizations have been implemented to fix a "resource-leak" in the LDB data-source.

Version 3.2.2_7r
  • You can now choose how many kills, quests and battles the Average Window uses for it's calculations.
  • Added the ability to toggle on an off the debug information that was showing. (See the General tab of the config window.)
    I had this hard-coded in, either on or off, but I kept forgetting to turn it off before uploading new versions xD

Version 3.2.2_6r
  • The color of the floating and chat messages can now be changed via the configuration window.
  • Hunters will now see the data for their last active pet while their pet is inactive.
    This allows the hunter to mount and dismiss the pet, as well as other things of that nature, without the pet data disappearing.
  • Fixed a bug that caused the average window to show empty battleground lines for max level hunters with lower level pets active.
  • Fixed a bug that caused the battleground objective messages to be shown regardless of whether they had been disabled.
  • Fixed a bug that caused the tooltip to show an empty list of required battlegrounds for max level players.
    The list is still shown for max level players if there is anything to be shown.
    (This can be disabled in the Tooltip tab of the config window.)

Version 3.2.0_5r
  • Battleground support
    • The addon now records experience gained in battlegrounds.
      It counts the number of battlegrounds needed, as well as individual battleground objectives needed.
    • Both the Average Window and LDB text now show those details.
    • The tooltip has been altered to display more detailed information on battleground experience.
    • This includes a separate counter for each battleground instance, as well as details on the current or last battle.
  • Custom LDB patterns
    • The LDT output now supports custom text patterns.
    • A detailed explanation of how to construct a pattern can be found in the "curstomPatterns.txt" file.
  • Other
    • The German locale has been corrected. Thanks to Marcel and Axel for their help with that!
    • The Average Window will now also show the Tooltip when the mouse is over it.
    • You can now clear the stored kill, quest and battleground data.
      This is done by using the command /xtl clear [kills | quests | bgs]
      NOTE! This will permanently delete the data. Use with caution!
    • Fixed a bug that sometimes caused a LUA error when level 70+ players entered certain vehicles.

Version 3.2.0_4r
  • Added several new ways to display the LDB text. The default layout has also been improved.
  • The previously lime-green text in the LDB text now changes colors according to your (or you pet's) progress through
    your (or you pet's) current level. This can be disabled in the Config window.
  • You can now choose which of the available locale translations you want to use via the General
    tab in the Configuration window. It will still default to your client's locale if nothing is selected.
  • Minor changes (hopefully improvements) have been made to the non-English translations, and previously untranslated parts
    of the Configuration Window have now been translated.
  • The translations, previously contained in the Locale.lua file, have been moved into separate files in the locale directory.
  • The debug text that showed up in the chat window when a hunter with a pet killed a mob has been removed. (Sorry about that xD)
  • Fixed a bug where a low-level pet's kill estimate would show 1 after being retrieved in exchange for a level-capped pet.

Version 3.2.0_3r
  • Fixed a bug in the LDB data-source which caused the label to be invisible in TitanPanel. (/facepalm)

Version 3.2.0_2r
  • Added LDB support.
    This means that LDB front-end addons, such as TitanPanel and Fortress, can now be used to
    display the data in an more detailed and customized way.

Version 3.2.0_1r
  • The addon will now also show kills required for hunter pets.
  • You can now choose to hide the "XToLevel" header in the Average display window.
  • Fixed a bug that sometimes caused kill estimates to be to high for high-level players in low-level zones.
  • The Average window's default position has been moved from below the minimap to below the player frame.
    It's old position sometimes caused other addons to mistake it for a minimap button.

Version 3.1.3_1r
  • Updated the interface version to support the 3.1.x patches.

Version 3.0.3_2r
  • Added language support
    • Added support for the French, German and Spanish clients.
    • Users of the above clients can choose to have the addon use English rather then their default language.
    • Note that the translations for all the new languages may not be entirely correct.
      I speak none of the new languages, so I just used the Google translator to translate the phrases.
      You can edit the translations by editing the Locale.lua file.
      If you do, please share it
  • Average display changes
    • A frame has been added to the Average Display window. (It can be disabled from the configuration window.)
    • The Average Display window can now be locked into place.
    • You can now right-click the Average Display window to bring up the Configuration window. (This can be disabled.)
    • Shadows have been added to the text in the Average Display window. This helps keep it visible on bright backgrounds.
    • The Average Display window will now properly resize to fit it's data.
  • Bug fixes
    • Fixed a bug that caused the configuration window to ignore all changes made to it.
    • Fixed a bug that sometimes caused an error when creating caracters in certain zones.
    • Fixed a bug that caused the mob kill estimates to be to low in certain zones.

Version 3.0.3_2b1
  • Added experimental support for the French client. (Thanks to trucdudur for the help with that!)
    Note that the addon will still use English for messages and other text.
  • Fixed a bug in the "Average display" configuration window. It will now properly disable/enable all options.

Version 3.0.3 (WotLK)
  • The addon now loads correctly for levels 70-79.

Version 2.4
  • The mob and quest estimate is now calculated based on the last 10 kills / quests, rather than the enitre session.
  • You can now chose to hide the mob and / or quest estimates from the config window.
  • Fixed a bug that sometimes caused the average display to freeze or show negative values after gaining a level.

Version 2.1
  • Fixed a minor display error that sometimes occurred when gaining a level.

Version 2.0
  • Added support for the 2.4 patch
  • A small movable window added that shows the estimated mobs / quests needed to level.
  • All /xtl and /xtolevel command options removed. It will now always just bring up the config window.

Version 1.1
  • GUI Config window added.
  • Code re-written to incorporate a few basic Ace2 libraries and the Waterfall GUI.

Version 1.0
  • Original release.
  Optional Files - XToLevel
Sorry, there are currently no optional files available.
  Archived Versions - XToLevel
File Name
Version
Size
Author
Date
3.2.2_7r
99kB
AtliThor
10-07-2009 09:27 PM
3.2.2_6r
97kB
AtliThor
10-02-2009 05:07 PM
3.2.0_5r
95kB
AtliThor
09-15-2009 03:12 AM
3.2.0_4r
89kB
AtliThor
08-16-2009 12:10 AM
3.2.0_3r
85kB
AtliThor
08-13-2009 02:31 AM
3.2.0_2r
85kB
AtliThor
08-13-2009 01:42 AM
3.2.0_1r
74kB
AtliThor
08-09-2009 11:43 PM
  Comments - XToLevel
Post A Reply Comment Options
Old 10-09-2009, 06:23 PM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
I've located the memory-leak, and have already fix it on my end.
Needs a bit of testing before I release it tho.

It's generating about 2.5KBs of garbage per second, which get's cleaned every few seconds by the automatic garbage cleaning cycle.
As a side-effect of that, it is using a little extra CPU time (like 2-20 MS), but that barely even registers. (Literally. I had a hard time even measuring it )

It's also worth mentioning... The addon, as it is now, takes around 600-700KBs memory at any given moment, which is surprisingly much for such a small addon.
I've determined that about 400-500KBs of that is used by the Config window, or more precisely, the underlying Ace2 libraries it is built on.

I'm currently aiming to replace that with a new Config window, which I plan to build from scratch. So that should also help keep the addon as light-weight as possible.
(That will probably take me a while. It's a lot of code to re-write.)
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-08-2009, 02:56 PM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Hey Zidomo.
Thanks. I'll try to implement some changes to the implementation

I did notice the memory leak yesterday as well. It is almost definitely some problem with the LDB code, as that is the only part of the code that is being executed continuously. (Rest of the code gets triggered only on special occasions, like kills.)

Fixing that is my top priority now, although I probably won't be able to do much until Sunday. (RL is so time consuming!)

Anyhow, thanks for the input. It's always helpful.
And I'm always open for suggestions, if you have some tips on the implementation
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-08-2009, 10:06 AM  
Zidomo
An Aku'mai Servant
 
Zidomo's Avatar

Forum posts: 37
File comments: 601
Uploads: 0
Nice variation on an XP mod. Implementation could use some work, though .

Tested with Option House & Addon Profiler. Uses about 0.21 CPU/second continually. Would be better if it used 0.

More seriously, it appears to have a fairly sizable memory/garbage leak. 2.2 KB/second in memory used continually until the next game garbage collection. As well--in a 60 second profile through Addon Profiler--it generates about 125KB in garbage, which is really quite high.

Be nice to see the resources this consumes be reduced. Otherwise, it looks good.
Zidomo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-31-2009, 03:14 PM  
Banur
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 104
Uploads: 2
Quote:
Originally posted by AtliThor
The link you posted, Banur, doesn't seem to be working. (Thanks tho!)
Yeah seems there went something wrong with the expiry.
Banur is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-30-2009, 08:29 PM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Hi.
Thanks for that.

I've tried several ways to detect when a player is in a battleground and found that using the PLAYER_ENTERING_* events are most effective.

A battlegrounds-remaining counter is already ready on my end, and will be released shortly. I just need to do a bit of QA to make sure it will work under all circumstances.

I've also got a proper German translation now, thanks to contributions made by Marcel and Axel over at Curse.com
The link you posted, Banur, doesn't seem to be working. (Thanks tho!)

That, and some updates to the Average Window, will be released shortly.
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-26-2009, 03:02 PM  
Banur
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 104
Uploads: 2
Quote:
Originally posted by AtliThor
As it turns out, XP gained in battlegrounds is reported exactly as quest XP, so the addon just counts BG objectives as quests.

I'm working on improving this. My current goal is to separate BG XP from the normal quest/kill system and add a counter for number of BG's needed, and a counter for BG objectives needed.
Maybe you can use this
Code:
Ripped from YouArentInAPartyFix :p
local t = {["pvp"] = true, ["arena"] = true, ["raid"] = true, ["party"] = true}
to determine if you're in a BG or maybe it's better to use zones.

#edit: pastebin German translation

Last edited by Banur : 08-27-2009 at 07:57 AM.
Banur is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-26-2009, 11:33 AM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Quote:
Originally posted by Banur
I haven't checked yet but does it notice battle ground xp? An option or parameter for that could be nice too.
As it turns out, XP gained in battlegrounds is reported exactly as quest XP, so the addon just counts BG objectives as quests.

I'm working on improving this. My current goal is to separate BG XP from the normal quest/kill system and add a counter for number of BG's needed, and a counter for BG objectives needed.

Last edited by AtliThor : 08-26-2009 at 11:34 AM.
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-18-2009, 02:40 AM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Quote:
Originally posted by Banur
Well for the displaying I thought of some kind of customize field, like the one AggroNotifier and others use: top left pic.
I haven't checked yet but does it notice battle ground xp? An option or parameter for that could be nice too.
I did consider adding a customize field for the text, and I even designed the code to support custom patterns, but there were other things that took priority in the last release.
This is on the top of my todo list now tho, right next to adding a "verbose" setting for the Average Window

I haven't checked the battleground XP either (didn't even think of it until now), but if it follows the same pattern normal kills and quests do, it should be counted as well.
I will check into that asap.

Thanks!
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-17-2009, 03:13 PM  
Banur
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 104
Uploads: 2
Well for the displaying I thought of some kind of customize field, like the one AggroNotifier and others use: top left pic.
I haven't checked yet but does it notice battle ground xp? An option or parameter for that could be nice too.
Banur is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-16-2009, 12:33 AM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Quote:
Originally posted by ricks322
Thanks for the update fixing the debug info, hey stuff happens......
Yea, sorry about that. I didn't notice it until you mentioned it.
Thanks for the heads up!

I'm getting to used to my chat being spammed with debug info I think
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-16-2009, 12:23 AM  
ricks322
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 21
File comments: 54
Uploads: 1
Thanks for the update fixing the debug info, hey stuff happens......
ricks322 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-15-2009, 04:13 PM  
ricks322
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 21
File comments: 54
Uploads: 1
Debug Info

Is there a way to turn off the Debug info that outputs to the Chat Frame?
ricks322 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-13-2009, 05:56 PM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Thanks for the feedback, Banur.

I completely agree with you about the coloring, and I will definitely be adding some more options as to how the data is displayed in the LDB feed.
There will most likely be a number of options you can choose from in the next release, both for how the text if formatted and for how it is colored.

I like the "K: x Q: y [xp%] P: z [pxp%]" layout personally, with all the values colored according to progress (red->yellow->green), so I'll probably make that the default setup.
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-13-2009, 11:47 AM  
Banur
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 104
Uploads: 2
Hmm coloring is just that lime green? I thoungh it would be red/orange/yellow/green according to level progress and it hard to see on the LDB.
Changing the displayed text to "K: x / Q: y" or even "x / y" would also be useful.
Banur is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-11-2009, 03:02 PM  
AtliThor
A Kobold Labourer
 
AtliThor's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 8
Uploads: 1
Quote:
Originally posted by xtoq
Great work! Possibility to get LDB support?
Thank you.
I've been fiddling with LDB today, testing it using TitanPanel, and it's looking pretty good.
I'll have to do a bit of debugging and then I'll upload it. Probably no later then sometime tomorrow.
AtliThor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.