Download
(121Kb)
Download
Updated: 09-30-19 12:30 PM
Pictures
File Info
Compatibility:
BfA content patch (8.2.5)
Updated:09-30-19 12:30 PM
Created:unknown
Downloads:4,218
Favorites:33
MD5:

ManaPerc

Version: 80205-2
by: phyber [More]

This is a simple addon to display in the tooltip of spells the current
and/or total mana the spell will cost, in percentage.

Example tooltip:

Blizzard North
180 Mana (t:18.1%)(c:25.5%)
This will rain down lots of icy stuff on
thine enemies to smithe them, in thy glory

  • /manaperc ? : Displays extra information about mypercentage
  • /manaperc standby : Toggles the addon's standby mode. Standby makes the addon active or inactive, though it is still loaded.
  • /manaperc total : toggles displaying mana cost in % of total mana
  • /manaperc current : toggles displaying mana cost in % of current mana
  • /manaperc colour : toggles displaying colour OR t:/c:

The original author of the Ace1 version of this addon was Instant, it was under the name of MyACEPercentage.
I've taken the addon, converted it to Ace2, optimized the tooltip processing part (the main chunk of the addon) and given it a name change.

# 80200-4

- Fix some packaging issues

# 80200-2

- Add `CHANGELOG.md`
- Add Luacheck and fix related issues
- Add Classic addon release
Post A Reply Comment Options
Unread 04-29-11, 10:53 PM  
jmcgrath
A Deviate Faerie Dragon
 
jmcgrath's Avatar

Forum posts: 16
File comments: 185
Uploads: 0
I guess there is no hope for 4.1 either.. =(
Report comment to moderator  
Reply With Quote
Unread 10-11-10, 01:52 PM  
jmcgrath
A Deviate Faerie Dragon
 
jmcgrath's Avatar

Forum posts: 16
File comments: 185
Uploads: 0
Any plans for a patch 4.0.1 update?
Report comment to moderator  
Reply With Quote
Unread 06-28-07, 11:42 AM  
brykrys
A Deviate Faerie Dragon
 
brykrys's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 85
Uploads: 3
I received the following error message when mousing over a gem:
Code:
Message: ..\AddOns\ManaPerc\ManaPerc.lua line 77:
   bad argument #2 to 'format' (number expected, got nil)
Following other posts I disabled Stubby, and confirmed that the error still occurs.

I had a look at the code, and I think I've spotted the problem.
At line 57 you use the following code to check for the mana line in a spell:
Code:
if tipline2 and string.find(tipline2, MANA_COST) then
In the English client, MANA_COST is equal to "%d Mana". Therefore the above check will get a "false positive" if the relevant line of text is something like "+1 Mana every 5 seconds."

The error gets thrown when the next section of code can't handle this unexpected result.

Hope this helps.

(Also, your download is missing an Ace library, and another library is incorrectly named in your .toc file)
Report comment to moderator  
Reply With Quote
Unread 01-08-07, 03:22 PM  
Darthgnomer
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 13
Uploads: 1
Error

I have attempted to use your addon on more than one occasion and I always recieve this error:

Report comment to moderator  
Reply With Quote
Unread 11-22-06, 11:15 PM  
KALIROB2k5
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Originally posted by phyber
Find this line in ManaPerc.lua:
line2cost = tonumber(line2cost)

and add under that 'if not line2cost then return end'

That might help.

I have no idea why that error would happen, but from here it looks like Stubby is doing something stupid.
That seems to fix it (Not that easy to edit a lua file in Notepad heh), thanks a ton for the assistance Phyber . And I agree Stubby does tend to piss a few Ace addons off most the time. Thats why hopefully they get a new version out soon. (Not that I'm even all that sure what Stubby does for Auctioneer lol)
Report comment to moderator  
Reply With Quote
Unread 11-20-06, 07:32 AM  
phyber
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 72
Uploads: 17
Find this line in ManaPerc.lua:
line2cost = tonumber(line2cost)

and add under that 'if not line2cost then return end'

That might help.

I have no idea why that error would happen, but from here it looks like Stubby is doing something stupid.
Report comment to moderator  
Reply With Quote
Unread 11-18-06, 10:51 PM  
KALIROB2k5
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
First off, great mod very helpful . But I seem to be getting the following error on logon for ManaPerc:

[2006/11/18 20:46:59-93-x2]: ManaPerc\ManaPerc.lua:62: attempt to perform arithmetic on local `line2cost' (a nil value)
ManaPerc\ManaPerc.lua:62: in function <Interface\AddOns\ManaPerc\ManaPerc.lua:54>
<unknown>:
<in C code>: ?
<in C code>: in function `pcall'
Stubby\Stubby.lua:260: in function <Interface\AddOns\Stubby\Stubby.lua:242>
<unknown>:
Venantes\Venantes.lua:1105: in function `Venantes_BuildTooltip'
<string>:"VenantesPetButton:OnEnter":2: in main chunk

---

Any idea as to the possible cause? Thanks in advanced.
Report comment to moderator  
Reply With Quote
Unread 09-29-06, 05:08 PM  
phyber
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 72
Uploads: 17
Originally posted by Iceyshadows
Where can I get that oSkin that you used to skin the tooltips? I can't find it here or on curse-gaming
Sorry, didn't notice that question earlier when I was replying to stuff.
You can get the latest version from http://www.wowace.com/files/oSkin/
Report comment to moderator  
Reply With Quote
Unread 09-29-06, 02:33 PM  
svartalfimposter
A Wyrmkin Dreamwalker
 
svartalfimposter's Avatar

Forum posts: 49
File comments: 22
Uploads: 0
Originally posted by Iceyshadows
Where can I get that oSkin that you used to skin the tooltips? I can't find it here or on curse-gaming
I got it from this compilation:
http://www.wowinterface.com/download...fo.php?id=5380
Report comment to moderator  
Reply With Quote
Unread 09-29-06, 11:51 AM  
phyber
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 72
Uploads: 17
Instant, you still got credit.

It's in the above where it says you're the original author, you're also still listed in the ReadMe file. Infact, your original comment with the MyACEPercentage title is still in the ManaPerc.lua

Check out the processing part of the addon if you have time, it's quite optimized now. There is a version on SVN that I should upload, even more optimized.
Report comment to moderator  
Reply With Quote
Unread 09-28-06, 06:25 PM  
instant
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 11
Uploads: 2
Nice to see someone updated it to Ace2.. Would'nt mind some credits though, heh :-)
(I am using your version now)

If you get a chance to look at the if statements, there must be a way to optimize that part of the code... although I never figured out one.
Report comment to moderator  
Reply With Quote
Unread 09-27-06, 09:41 PM  
Iceyshadows
A Defias Bandit

Forum posts: 2
File comments: 21
Uploads: 0
Originally posted by phyber
The font mod is ClearFont with the Calibri_v1 font.
The tooltip is skinned with oSkin.

[edit]
Oh, and I'm using TinyTip too.
[/edit]
Where can I get that oSkin that you used to skin the tooltips? I can't find it here or on curse-gaming
Report comment to moderator  
Reply With Quote
Unread 09-26-06, 01:37 PM  
phyber
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 72
Uploads: 17
The font mod is ClearFont with the Calibri_v1 font.
The tooltip is skinned with oSkin.

[edit]
Oh, and I'm using TinyTip too.
[/edit]
Last edited by phyber : 09-26-06 at 01:41 PM.
Report comment to moderator  
Reply With Quote
Unread 09-26-06, 01:18 PM  
GrimStonemaul
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 16
Uploads: 2
Tooltip

What tooltip mod or font are you using? I like the way your spell tooltips look. Very clean.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: