Category: Plug-Ins & Patches
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)

This file is a Addon for LitePanels by Katae. You must have that installed before this Addon will work.

Author:
Version:
0.9.6c
Date:
11-12-2009 06:42 AM
Size:
25.75 Kb
Downloads:
1,250
Favorites:
43
MD5:
Pictures
LiteStats
Proof of concept plugin for LitePanels, which you will need installed.
The main configuration is in the Lua file (don't expect a GUI config).

Another stats mod? Why?
I needed rigorously test the capabilities of LitePanels during its development, and at the same time wanted to move away from sldt. So, naturally, I ended up writing an extensive stat text addon to serve that purpose. This now exists on WoWI for anyone who will find it useful, and in hopes to inspire others to create more plugins for LitePanels.

~ modules ~
#Memory: Right click collects Lua garbage. Max number of addons can be set.
#Durability: Armored man can be configured to be hidden or shown. Armor durability percentages scale from green (100%) to yellow (50%) to red (0%). Auto-repair may be toggled by right-clicking the text, guild funds can be configured in the addon file.
#Gold: Saves data on the amount of gold you have server-wide. Right-clicking the text toggles auto-vendoring trash loot. A junk exceptions list can be configured via the /junk command.
#Clock: Left-click toggles the game calendar, right-click toggles time manager. Time manager settings apply.
#Location/Coords: Player coords are displayed on the tooltip or as a separate module. Clicking toggles the world map. Shift-click inserts the coordinates into chat.
#Ping: Displays a class colored text with who pinged the minimap!
#DPS: May be configured to show/hide on inactivity.
#Guild/Friends: Online count text including members/friends online tooltip with right-click sorting (guild only).
#Talents
: Dual spec switcher and current talent spec display with a primary/secondary tooltip.
#Character Stats (new): User's choice of stats configured in a [tag] format. Dual spec support.

Also: Experience
(new), Latency, FPS, Tracking, Mail, and Bag space.

Any of these modules can be configured or disabled in config.lua
.


  Change Log - LiteStats
0.9.6c -- 2009.11.12
- Reverted last revision's "icon_size" setting changes back to "iconsize". This was causing a little confusion.
- Tracking icon bug fixed.
- Removed coord tracking inside instances. This was causing the world map to hide itself when opened.

0.9.6b -- 2009.11.11
- Added global tooltip icon setting (LTIPICONSIZE)
- Added icon tag to tracking module.

0.9.6a -- 2009.11.11
- Various bug fixes
- Class names can now be used in profiles.

0.9.6 -- 2009.11.11
- Added character stats module. Two strings available for dual specs, configurable by tags. Tag list is in config.
- Added experience module, tag configurable. Basic, much more functionality is planned in the future.
- Added coordinates module (off by default), location module tooltip retains coord functionality.
- Added an asterisk to friends and guild members that are in your group or raid.
- Added a default guild roster sorting setting.
- Tracked currencies added to the gold module. Left-click now opens currencies tab.
- Added the default UI mail tooltip to the mail module.

0.9.5a -- 2009.11.04
- Fixed a bug with class localizations in the friends module.

0.9.5 -- 2009.11.04
- Moved all of the configuration variables to config.lua. Included a string class coloring function.
- Guild list tooltip added to the guild module. Right-click cycles sorting name/level/class/zone, shift right-click reverses the current sort. Hold the Alt key to view or sort by notes and ranks.
- Friends list tooltip added to the friends module. Hold the Alt key to view notes.
- Reworked the clock module. The clock display now reflects the settings in the Time Manager (right-click).
- Memory module will now display in KB when below 1MB.
- Bugs in the talents module squashed.
- Made changes to string format configs dealing with numbers, allowing for more control over decimals.
- Stat building structure changed, see NewStat().

0.9.4 -- 2009.10.29
- Fixed a bug in the clock module.
- Added icon tag and chat filter to the talents module.

0.9.3 -- 2009.10.25
- Moved autosell/repair default savedvars to set themselves on login.
- 24-hour option added to the Clock module.
- Inventory repairs can now be ignored/unignored via the ignore_inventory option.
- Added guild and friends modules. Clicking will toggle either the guild or friends/ignore list.
- Added bag space module. Clicking opens/closes all bags.
- Added talents module. Clicking swaps spec if dual spec is learned, right-click opens the talent UI.
- Provided a commented stat template near the end of core.lua.

0.9.2 -- 2009.10.13
- Added a junk profit chat printout. Chat gold format changed.

0.9.1 -- 2009.10.13
- Removed some personal tweaks I forgot to remove in the release.
- Fixed a bug with profiles and moved them to a different file, profiles.lua
- Added variable for changing the number of letters the location text is truncated by, 0 disables this feature.
- Option for displaying local time added.
- Added chat syntax explanation for /junk.
- Tooltip click polishing.
- Default for DPS hide_inactive enabled.
- Added coords to the location tooltip, auto-updates. Shift-clicking location text will insert the player's zone and coords into the chat edit box.
- Memory tooltip now auto-updates while hovered.
- Included 04b03 font. http://www.dsg4.com/04/extra/bitmap/index.html

0.9 -- 2009.10.12
- Initial release.
  Archived Versions - LiteStats
File Name
Version
Size
Author
Date
0.9.4
18kB
Katae
10-30-2009 01:19 AM
0.9.3
18kB
Katae
10-26-2009 12:20 AM
0.9.2
16kB
Katae
10-14-2009 12:22 AM
0.9
7kB
Katae
10-12-2009 05:08 AM
  Comments - LiteStats
Post A Reply Comment Options
Old 11-17-2009, 05:26 PM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
If it's a problem, you can find strata and level values in the NewStat function in core.lua, and lower them.
Quote:
Originally posted by alimjocox
question about the frame 'level' of the stats. e.g. I'm opening my Character Pane, Quest Log, Mail etc.. and the stats are on top of it, nothing major just wondering
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-17-2009, 03:52 PM  
alimjocox
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
question about the frame 'level' of the stats. e.g. I'm opening my Character Pane, Quest Log, Mail etc.. and the stats are on top of it, nothing major just wondering
alimjocox is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-17-2009, 01:04 AM  
richerich
A Fallenroot Satyr
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 25
File comments: 388
Uploads: 5
Quote:
Originally posted by Katae
Well I tested on Lunar, which the player frame is "oUF_Lunar_Player", so apparently not always the same.

One way to be sure: /run print(GetMouseFocus():GetName())
Already did that and it says "oUF_Player" :S

EDIT: hmm strange... now it works o.O didnt work before...
__________________


Dajova UI

Dajova UI Mini

Last edited by richerich : 11-17-2009 at 01:41 AM.
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-14-2009, 08:48 PM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
Well I tested on Lunar, which the player frame is "oUF_Lunar_Player", so apparently not always the same.

One way to be sure: /run print(GetMouseFocus():GetName())

Quote:
Originally posted by richerich
Well, it should be the same for all layouts that uses oUF, right? then it should be right, unless i'm completely wrong >.<
If i am (and i assume u use oUF as well), might wanna give the right frame name of it, since "oUF_player" doesnt seems to work.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-14-2009, 08:17 PM  
richerich
A Fallenroot Satyr
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 25
File comments: 388
Uploads: 5
Quote:
Originally posted by Katae
I tested with a few unitframe addons and I can anchor things fine. Are you 100% sure about the frame names? PlayerFrame will always be the bliz default frame, it's only hidden.
Well, it should be the same for all layouts that uses oUF, right? then it should be right, unless i'm completely wrong >.<
If i am (and i assume u use oUF as well), might wanna give the right frame name of it, since "oUF_player" doesnt seems to work.
__________________


Dajova UI

Dajova UI Mini
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-14-2009, 07:59 PM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
Sorry I made an error with the code I gave, I corrected my previous post for you.
Quote:
Originally posted by Strongbow
I put this in the config.lua

but then i got this error
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-14-2009, 07:15 PM  
Strongbow
A Deviate Faerie Dragon
 
Strongbow's Avatar

Forum posts: 10
File comments: 98
Uploads: 0
I put this in the config.lua

Code:
LPSTAT_PROFILES = {
	["Name - Realm"] = {
		-- To change modules on a per-character basis, copy and paste any or all of
		-- the default module configs here and modify them at will.
		DPS = { enabled = false },
		Experience = { enabled = false },
		Stats = { spec1fmt = "[spellpower]SP ~ [manaregen]mp5" }
	},
    ["HUNTER"] = {
        spec1fmt = "RAP:[rangedap] :: Crit:[rangedcrit]% :: Hit:[rangedhit]% :: ArP:[armorpen]% :: Haste:[rangedhaste]%",
        spec2fmt = "RAP:[rangedap] :: Crit:[rangedcrit]% :: Hit:[rangedhit]% :: ArP:[armorpen]% :: Haste:[rangedhaste]%",
    },
    ["SHAMAN"] = {
        spec2fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
        spec1fmt = "Spellpower:[spellpower] :: MP5 I5SR:[manaregen] :: Healing:[healing] :: Haste:[spellhaste]%",     
    },
    ["MAGE"] = {
        spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
        spec2fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",     
    },
    ["PRIEST"] = {
        spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
        spec2fmt = "Spellpower:[spellpower] :: MP5 I5SR:[manaregen] :: Healing:[healing] :: Haste:[spellhaste]%",    
    },
    ["WARLOCK"] = {
        spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
        spec2fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
    },
}

but then i got this error

Date: 2009-11-15 01:14:47
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\LiteStats\core.lua line 32:
bad argument #1 to 'pairs' (table expected, got string)
Debug:
[C]: ?
[C]: pairs()
LiteStats\core.lua:32: in main chunk

-Strongbow-
Strongbow is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-14-2009, 12:18 AM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
Quote:
Originally posted by KleinerMink
How to add icons to mail and gold?
For gold, at the end of the OnEvent function, add what's in bold:
Code:
 self.text:SetText("|TInterface\\Minimap\\TRACKING\\Auctioneer:20|t"..formatgold(modules.Gold.style, LPSTAT[char].Gold))
For mail, just add the icon string in the newmail config. You can find all of the wow art here.
Quote:
Originally posted by richerich
One question... how do i hook a module to my unitframes? i tried this code:
EDIT2: Hmm, after further testing, "PlayerFrame" was working... but it was positioned where the default player frame is positioned, not my custom frame :S
I tested with a few unitframe addons and I can anchor things fine. Are you 100% sure about the frame names? PlayerFrame will always be the bliz default frame, it's only hidden.

Last edited by Katae : 11-14-2009 at 12:48 AM.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 11:00 PM  
richerich
A Fallenroot Satyr
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 25
File comments: 388
Uploads: 5
One question... how do i hook a module to my unitframes? i tried this code:

Code:
anchor_frame = "oUF_player", anchor_to = "bottom", anchor_from = "bottom",
		x_off = 0, y_off = -20,
... but it doesn't seems to work :S

EDIT: tried with
Code:
anchor_frame = "PlayerFrame"
as well, but nothing...

EDIT2: Hmm, after further testing, "PlayerFrame" was working... but it was positioned where the default player frame is positioned, not my custom frame :S
__________________


Dajova UI

Dajova UI Mini

Last edited by richerich : 11-13-2009 at 11:31 PM.
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 10:26 PM  
KleinerMink
A Deviate Faerie Dragon

Forum posts: 11
File comments: 70
Uploads: 0
Quote:
Originally posted by Katae
@KleinerMink, @alimjocox
Find this part of the code I gave:
Code:
local hex = format("|cff%02x%02x%02x",(r1+(r2-r1)*relperc or 0)*255,(g1+(g2-g1)*relperc or 0)*255,(b1+(b2-b1)*relperc or 0)*255)
Replace it with this:
Code:
local hex = format("|cff%02x%02x%02x",(r1+((r2 or 0)-r1)*relperc or 0)*255,(g1+((g2 or 0)-g1)*relperc or 0)*255,(b1+((b2 or 0)-b1)*relperc or 0)*255)
Thanks that fixed it!

Another question:

How to add icons to mail and gold?
KleinerMink is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 09:52 PM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
The haste value is a percentage (nearest tenth, but can be changed @ return format("%.1f", string)), like most of the combat stats. I didn't add weapon speed, that one slipped my mind.
Quote:
Originally posted by richerich
seems to be a bug in ranged haste string...
it displays as my oh speed, not my bow speed.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 09:43 PM  
richerich
A Fallenroot Satyr
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 25
File comments: 388
Uploads: 5
seems to be a bug in ranged haste string...

http://i38.tinypic.com/2m4x8qe.jpg

it displays as my oh speed, not my bow speed.

EDIT: nwm, after logging onto my mage, i realized that it was using the % of haste, not the actual haste change.
__________________


Dajova UI

Dajova UI Mini

Last edited by richerich : 11-13-2009 at 09:59 PM.
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 06:49 PM  
Katae
A Flamescale Wyrmkin
 
Katae's Avatar
Interface Author - Click to view interfaces

Forum posts: 118
File comments: 116
Uploads: 5
@KleinerMink, @alimjocox
Find this part of the code I gave:
Code:
local hex = format("|cff%02x%02x%02x",(r1+(r2-r1)*relperc or 0)*255,(g1+(g2-g1)*relperc or 0)*255,(b1+(b2-b1)*relperc or 0)*255)
Replace it with this:
Code:
local hex = format("|cff%02x%02x%02x",(r1+((r2 or 0)-r1)*relperc or 0)*255,(g1+((g2 or 0)-g1)*relperc or 0)*255,(b1+((b2 or 0)-b1)*relperc or 0)*255)
Quote:
Originally posted by Strongbow
I'm trying to get the stats to show regarding what specc i'm in but on classes instead, this is what i have tried so far.
This is done inside LPSTAT_PROFILES, you'll want to also add a string for spec2fmt for dual spec:
Code:
LPSTAT_PROFILES = {
    ["HUNTER"] = {
        Stats = {
            spec1fmt = "RAP:[rangedap] :: Crit:[rangedcrit]% :: Hit:[rangedhit]% :: ArP:[armorpen]% :: Haste:[rangedhaste]%",
        },
    },
    ["SHAMAN"] = {
        Stats = {
            spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%",
        },
    },
    ["MAGE"] = {
        Stats = {
            spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]%  ::  Crit:[spellcrit]% :: Haste:[spellhaste]%",
        },
    },
    ["PRIEST"] = {
        Stats = {
            spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]%  ::  Crit:[spellcrit]% :: Haste:[spellhaste]%",
        },
    },
    ["WARLOCK"] = {
        Stats = {
            spec1fmt = "Spellpower:[spellpower] :: Hit:[spellhit]%  ::  Crit:[spellcrit]% :: Haste:[spellhaste]%",
        },
    },
}

Last edited by Katae : 11-14-2009 at 07:57 PM.
Katae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 06:30 PM  
Strongbow
A Deviate Faerie Dragon
 
Strongbow's Avatar

Forum posts: 10
File comments: 98
Uploads: 0
Thanks for the fast reply earlier and now i have another question.

I'm trying to get the stats to show regarding what specc i'm in but on classes instead, this is what i have tried so far.

Code:
Stats = {
		enabled = true,
			-- Available stat tags...
			--   Attack Power [ap]				Ranged Attack Power [rangedap]	Armor Penetration% [armorpen]	Expertise% [expertise]
			--   Melee Hit% [meleehit]			Ranged Hit% [rangedhit]			Spell Hit% [spellhit]			Melee Haste [meleehaste]
			--   Ranged Haste% [rangedhaste]	Spell Haste% [spellhaste]		Melee Crit% [meleecrit]			Ranged Crit% [rangedcrit]
			--   Spell Crit% [spellcrit]		Spellpower [spellpower]			Healing [healing]				Spell Pen [spellpen]
			--   Dodge% [dodge]					Parry% [parry]					Block% [block]					Defense Rating [defense]
			--   Avoidance% [avoidance]			MP5 I5SR [manaregen]			Armor Value [armor]
		["HUNTER"] = { specfmt = "RAP:[rangedap] :: Crit:[rangedcrit]% :: Hit:[rangedhit]% :: ArP:[armorpen]% :: Haste:[rangedhaste]%", -- Spec #1 string
		["SHAMAN"], ["MAGE"], ["PRIEST"], ["WARLOCK"] = { specfmt = "Spellpower:[spellpower] :: Hit:[spellhit]% :: Crit:[spellcrit]% :: Haste:[spellhaste]%", -- Spec #2 string
		anchor_frame = "UIParent", anchor_to = "top", anchor_from = "top",
		x_off = 0, y_off = -40,
       }
   }
	},
I need help to make this work if you can help me here please ?

-Strongbow-
Strongbow is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-13-2009, 12:43 PM  
KleinerMink
A Deviate Faerie Dragon

Forum posts: 11
File comments: 70
Uploads: 0
Got this error today when i repaired equipment:

Message: Interface\AddOns\LiteStats\core.lua:194: attempt to perform arithmetic on local 'r2' (a nil value)
Time: Fri Nov 13 18:42:28 2009
Count: 17
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
Interface\AddOns\LiteStats\core.lua:194: in function <Interface\AddOns\LiteStats\core.lua:185>

Locals: self = LP_Durability {
strata = "HIGH"
0 = <userdata>
RegisterEvent = <function> defined =[C]:-1
anchor_frame = "LP_Bags"
slots = "1HEAD3SHOULDER5CHEST6WAIST7LEGS8FEET9WRIST10HANDS16MAINHAND17SECONDARYHAND18RANGED"
width = 0
height = 0
level = 99
bg = <unnamed> {
}
text = <unnamed> {
}
}
event = "UPDATE_INVENTORY_DURABILITY"
durability = 100
segment = 2
relperc = 0
r1 = 0
g1 = 1
b1 = 0
r2 = nil
g2 = nil
b2 = nil
(*temporary) = <function> defined =[C]:-1
(*temporary) = "|cff%02x%02x%02x"
(*temporary) = 0
(*temporary) = 1
(*temporary) = 0
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on local 'r2' (a nil value)"
modules = <table> {
Durability = <table> {
}
Talents = <table> {
}
Guild = <table> {
}
Coords = <table> {
}
Gold = <table> {
}
Clock = <table> {
}
Ping = <table> {
}
FPS = <table> {
}
Mail = <table> {
}
Stats = <table> {
}
Friends = <table> {
}
Memory = <table> {
}
Experience = <table> {
}
DPS = <table> {
}
Location = <table> {
}
Bags = <table> {
}
Tracking = <table> {
}
Latency = <table> {
}
}
char = "Amarant - Destromath"
formatgold = <function> defined @Interface\AddOns\LiteStats\core.lua:37
KleinerMink 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.