Download
(6Kb)
Download
Updated: 01-15-11 10:46 AM
Pictures
File Info
Updated:01-15-11 10:46 AM
Created:12-27-10 04:19 AM
Downloads:4,610
Favorites:33
MD5:

MicroExperience

Version: 40000.6
by: saulhudson [More]

MicroExperience

A simple, clean and lite experience bar. Now with rep tracking!

Tracks rep if you have a "Watched Faction" selected or are at max level. Unselecting the watched faction will return to tracking experience.

Features

  • Tracks experience and reputation
  • Displays current, max and percentage exp / rep
  • Displays last gained exp
  • Tooltip offer more detailed exp information on rested and session gained exp
  • Tooltip displays total completed quest experience and adjusted remaining experience
  • Tooltip displays session gained reputation
  • Tooltip doesn't display in combat
  • Exp bar is class coloured to fit in with many minimalist UI designs
  • Rep bar colours based on your standing with that faction
  • Rested exp bar also class coloured with a low alpha
  • Small lua configuration
  • Only uses under 15 Kb of memory

To Do
  • Track guild rep
  • Open to suggestions ...

40000.06
  • Added tracking of reputation via the tooltip when there is a watched faction
  • Added tracking of completed quest experience displayed on the tooltip
  • Cleaned the logic that switched exp / rep tracking
  • Added a small amount of configuration at the top of lua file
  • Adjusted the truncate() function to only truncate values above 9999
  • Re-order much of the file to make is more readable
  • Added comments

40000.05
  • Fixed issue with session gained xp being calculated incorrectly when levelling up
  • Cleaned code with value() function

40000.04
  • Fixed logic issue with rep / exp tracking at max level

40000.03
  • Minor bug fix regarding setting variables at run time

40000.02
  • Added reputation tracking
  • Several minor bugs fixed
  • Slight size adjustments

40000.01
  • Initial release
Post A Reply Comment Options
Unread 01-03-11, 08:19 PM  
Charrfireloc
A Kobold Labourer
 
Charrfireloc's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Originally posted by Daninkai
I'm having issues with the bar not appearing after any loading screen (other than a reload UI) when tracking repuation. Don't know if anyone else is having similar issues.
Having the same problem here, it spits out this LUA error when I log into a character that's tracking rep. Works fine on <85 characters tracking experience, and also works fine after a /reloadui


Code:
Message: Interface\AddOns\MicroExperience\MicroExperience.lua:294: attempt to index field '?' (a nil value)
Time: 01/03/11 18:17:14
Count: 1
Stack: Interface\AddOns\MicroExperience\MicroExperience.lua:294: in function `?'
Interface\AddOns\MicroExperience\MicroExperience.lua:306: in function <Interface\AddOns\MicroExperience\MicroExperience.lua:306>

Locals: self = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
(*temporary) = nil
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = "attempt to index field '?' (a nil value)"
name = nil
standing = 0
minrep = 0
maxrep = 0
value = 0
xpbarp = <unnamed> {
 oborder = <unnamed> {
 }
 shadow = <unnamed> {
 }
 iborder = <unnamed> {
 }
 0 = <userdata>
}
xpbar = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
tracking = nil
reaction = <table> {
 6 = <table> {
 }
 2 = <table> {
 }
 8 = <table> {
 }
 3 = <table> {
 }
 1 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 7 = <table> {
 }
}
rested = <unnamed> {
 0 = <userdata>
}
text = <unnamed> {
 0 = <userdata>
}
Last edited by Charrfireloc : 01-03-11 at 08:20 PM.
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 12:17 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Osamar
Is there any way to move/resize the bar without changing Lua code?
No not as yet but I may look at adding some simple configuration if nothing else. Don't hold you're breathe though. Just get into the code honesty it's pretty simple and just get playing.
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 12:18 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Charrfireloc
Having the same problem here, it spits out this LUA error when I log into a character that's tracking rep. Works fine on <85 characters tracking experience, and also works fine after a /reloadui
Thanks that;s great I'll take a look tonight and hopefully have a fix for you soon.

... also I'm such a levelling slacker I don't have a character at level cap yet so the chance to test this hasn't arisen!
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 01:22 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Ok fixed or more accuratly code cleaned and removed.

i ahd some logic in that basically hide the bar if the player was at max level and not tracking and faction. however now I've just removed this odd logic so it will display the exp bar regardless of level if the player isn't watching a faction.

This is a bit of a copout but for now solves the problem. I'll think about this some more and maybe come up with a fix although I'm not 100% sure it is needed.

Let me know if this works for you.
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 02:01 AM  
llargo
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 3
File comments: 15
Uploads: 1
Works fine for me !
Report comment to moderator  
Reply With Quote
Unread 01-07-11, 10:58 PM  
Daynjer
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Exactly how do I go about changing the bar's position? Is there a way to add a frame name to use with moveanything?
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 03:31 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Daynjer
Exactly how do I go about changing the bar's position? Is there a way to add a frame name to use with moveanything?
I am planning to do some small and simple config for MicroExperience so stay posted for a future update.
Thanks
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 10:16 PM  
Shadowlycaon
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 36
Uploads: 4
Just played around a bit, this works fine but you'll need an overall parent frame to move it all at once I believe, although I'm still somewhat of an amateur...if nothing else this is a collection of everything you'll need to get the job done via slash command.

You'll need "MEpoints.point, MEpoints.relTo, MEpoints.relPoint, MEpoints.xOfs, MEpoints.yOfs = xpbar:GetPoint()" to grab the location of the frame once it's set and be able to put it there again on reload ect. Hope this helps.

Code:
function MouseUp()
	meparent:StopMovingOrSizing()
	MEpoints.point, MEpoints.relTo, MEpoints.relPoint, MEpoints.xOfs, MEpoints.yOfs = xpbar:GetPoint()
end

function MouseDown()
	meparent:StartMoving()
end

function ME_ToggleLock()
	if MElocked == false then
		MElocked = true
		print("|cff436EEEMicro Experience:|r Frame Locked -- Cannot be moved");
		xpbar:EnableMouse(false)
		xpbarp:EnableMouse(false)
		xpbar:SetScript("OnEvent", function(self, event, ...)
		self[event](self, ...)
		end)
	else
		MElocked = false
		print("|cff436EEEMicro Experience:|r Frame Movable -- Drag to move");
		meparent:SetMovable();
		meparent:SetScript("OnMouseDown", MouseDown)
		meparent:SetScript("OnMouseUp", MouseUp)
	end
end

	
function ME_ToggleShow()
	if xpbar:IsShown() then
		xpbar:Hide()
		print("|cff436EEEMicro Experience:|r Frame Hidden -- '/me show' to show");
	else
		xpbar:Show()
		print("|cff436EEEMicro Experience:|r Frame Shown -- '/me show' to hide");
	end
end

function MEhandler(msg)
	if (msg) then
		if (msg == "lock") then
			ME_ToggleLock()
		elseif (msg == "show") then
			ME_ToggleShow()
		elseif msg == "" then
			print("|cff436EEEMicro Experience:|r Created By: BLAH")
			print("|cff436EEEMicro Experience:|r /me lock - toggles ability to move bar")
			print("|cff436EEEMicro Experience:|r /me show - toggles show/hide")
		end
	end
end

SLASH_ME1 = "/microexperience";
SLASH_ME2 = "/micro";
SlashCmdList["ME"] = MEhandler;
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 10:41 PM  
Shadowlycaon
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 36
Uploads: 4
pre-update if you want to change the location of the bar you can in the lua file.

do this:
1. open MicroExperience.lua in notepad (or notepad 2 with lua if you have it)
2. ctrl+f -> xpbar:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 7)
3. the "0" relates to the x-position of the frame and the "7" relates to the y-position of the frame
4. change the values with the game open. Saving each time you change a value and doing a "/console reloadui" command till you find the right spot.
5. Just above the line you found you will see "CreatePanel(xpbarp, 436, 15, "Bottom", 0, 5)"
6. Change the "5" into your y-value from before minus 2

Example(what mine is):
Code:
local xpbarp = CreateFrame("Frame", nil, UIParent)
CreatePanel(xpbarp, 436, 15, "Bottom", 0, 173)
CreateShadow(xpbarp)

local xpbar = CreateFrame("statusbar", nil, UIParent)
xpbar:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 175)
Nifty addon though. Keep it up.
Report comment to moderator  
Reply With Quote
Unread 01-15-11, 10:51 AM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Quite a big update for 40000.7 including rep and completed quest experience tracking along some basic configuration. Thanks to Shadowlycaon for his code I'll take a better look now I've finished this update as it is a good idea. For now I've added some basic configuration at the top of the lua and it is really quite simple to adjust.

Thanks
saul
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-15-11, 11:46 AM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Guild experience

I like to suggest Guild Experience Tracking for my character. I been looking for this feature and made a request in the forums but no takers.
Last edited by Xylan Trueheart : 01-15-11 at 11:47 AM.
Report comment to moderator  
Reply With Quote
Unread 01-15-11, 12:46 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Re: Guild experience

Originally posted by Xylan Trueheart
I like to suggest Guild Experience Tracking for my character. I been looking for this feature and made a request in the forums but no takers.
Agreed good idea! It might take me a few days but I'll give it a go.
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 02-09-11, 02:37 AM  
ylarion
A Defias Bandit

Forum posts: 3
File comments: 25
Uploads: 0
I found a small Bug yesterday: If i hide the UI for screenschots the Exp-Bar without the border is still shown. Maybe your using a wrong strata there?

Anyway, this is a nice little mod.
Report comment to moderator  
Reply With Quote
Unread 02-16-11, 05:22 PM  
crack-monkey
A Defias Bandit

Forum posts: 2
File comments: 3
Uploads: 0
LUA error

First, thx for this great bar

I use it with the LUI v3 UI and i get a LUA error msg.

Here it is:

Code:
Message: Interface\AddOns\MicroExperience\MicroExperience.lua:293: attempt to compare nil with number
Time: 02/17/11 00:19:39
Count: 2
Stack: Interface\AddOns\MicroExperience\MicroExperience.lua:293: in function `PLAYER_XP_UPDATE'
Interface\AddOns\MicroExperience\MicroExperience.lua:354: in function `?'
Interface\AddOns\MicroExperience\MicroExperience.lua:371: in function <Interface\AddOns\MicroExperience\MicroExperience.lua:371>

Locals: self = <unnamed> {
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:283
 0 = <userdata>
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:290
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:333
}
(*temporary) = 353701
(*temporary) = nil
(*temporary) = 353701
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare nil with number"
min = nil
gained = nil
max = nil
sessionxp = nil
name = nil
standing = 0
minrep = 0
maxrep = 0
value = 0
xpbar = <unnamed> {
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:283
 0 = <userdata>
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:290
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:333
}
r = 0.58
g = 0.51
b = 0.79
text = <unnamed> {
 0 = <userdata>
}
truncate = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:75
rested = <unnamed> {
 0 = <userdata>
}
Can somebody help me with this error?

Reinstalling changed nothing :/


The bar seems to work, but im not shur from what this error come.

sry for bad english ^^


greetings

monkey
Report comment to moderator  
Reply With Quote
Unread 02-17-11, 07:53 AM  
KiLLMasTer
A Deviate Faerie Dragon
 
KiLLMasTer's Avatar

Forum posts: 12
File comments: 74
Uploads: 0
plz update it stopped work as of the 15th.....
__________________
My Toons: LVL 70 MW Monk Name Brewballs on Ysera
US. LVL 70 Restoration Druid Name Goodfel on Ysera US
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: