WEAKAURA

AP_ProBar (2.0.3)

Updated Sep 6th 2017 WoW 7.3 User Cyous Views 209,704 Comments 92 Stars 127 Collections 17 Link https://wago.io/4y7qKOBVW
Balance Druid



Description:
Please delete..or back-up then delete, any previous version of the AP Po Bar. Be sure you've updated your WeakAuras2 addon. Otherwise, you'll break the anchoring system. The names of the auras must be their original name (auras with "2" at the end are bad: "OKF 2").

Please check out my suite: Moonkin Essentials (collections). =)

I do not have an active subscription, but I can still update custom code.

Heavily Customized Class Module.
Version: 2.0.3 (Release)
Author: [email protected]


Animated / Shiny Bar not showing up?:
-- I removed it because of the "cinematic bug" couldn't be fixed after months of workarounds. I opted for reliability over aesthetics.
-- Copy a much older version of the bar, or other user-edited bars with the shiny bars, and reconfigure the aurabars on your updated AP Pro Bar. I no longer support the Shiny Bar functionality, but it's still relatively simple to emulate.

T20 2pc:
-- Bar will work with set bonus (130 AP cap).

Latest Micro-Updates:
○ TOTAL_DOTS_TRACKER text+icons can to be toggled to hide when out of combat. (Shown by default.)
○ Empowerments now properly respond to Border Glow settings made by the user. (Actions: OnInit: aura_env.glowy) (Enabled by default.)
○ TOTAL_DOTS_TRACKER has expanded to include Stellar Flare, but it will not be factored into anything where it does not belong (Such as Shooting Stars counter).
○ TOTAL_DOTS_TRACKER displays the active number of your Moonfire and Sunfire spells next to the T90 icon. (Enabled by default, go to TOTAL_DOTS_TRACKER, Display: Custom Text Editor, then set the variables to true to enable them as you please.)
○ TOTAL_DOTS_TRACKER expanded. Use %s on Display Text for :: MF_attn and SF_attn to display the number of DOTs active for each spell. (Not enabled by default.)
○ Empowerments now display stacks with %s in the text field. (Text shown with 1 or more stacks)
○ Celestial Alignment and Incarnation now displays the player's Casting Speed while active. This can be toggled true/false in Actions: OnInit, and is true by default.

This Weak Aura includes custom functions.


Preview

Comments
Posted by Cyous 20 days ago. Reply 2017-09-06 23:26
@Modinstaller Made the edit, using %d.
Posted by Cyous 25 days ago. Reply 2017-09-01 20:28
@dat311998 It's how the API handles Travel Form -- it uses mana. The only fix requires a re-work of the core code. That will be updated during 8.0 at the very earliest.
Posted by dat311998 a month ago. Reply 2017-08-22 16:28
Hi,first of all, thank you very much for the code ^^, most of the functions work very nicely, but the AP bar doesn't fill up correct in my travel form. In other forms (Cat, Bear, Boomkin,..) it works out, but once i change to travel form, the filled part shrinks ( the number still work correctly tho). Do u have any idea to fix it?
Posted by Modinstaller a month ago. Reply 2017-08-21 20:48
@Cyous I've been using it for a week, works like a charm. I understand though. If anyone wants the bug fixed, make the two edits in my post below, if you don't know how contact me on discord Modin#6298
Posted by Cyous a month ago. Reply 2017-08-19 00:44
Without a way to properly test and confirm everything works, I cannot make this edit. (It's the most important part of the module.) Also, this situation rarely comes up. With that said, I do think that's a good fix to the situation... just hard to act on it. =/
Posted by Modinstaller a month ago. Reply 2017-08-16 00:08
@Modinstaller Right, so two simple edits fixed this
The last return in AP_Number (custom text) returns a value that is rounded up (using %.0f).
return (string.format("%.0f",E_global))
As such, 39.5 is displayed as 40. To fix that, we can either math.floor(E_global) or use %d, and it's mostly fixed
return (string.format("%d",E_global))
The problem then is that while before 22 + 22.5 became 45, it's now 44. The real problem here is that 22 is supposed to be 22.5, but you're using UnitPower without "true" as 3rd argument. Typical case of a bug being fixed by another bug, anyway we can do just that :
local curASP = UnitPower('player', powerType, true) / 10
As far as I can see, that fixes everything. I only did basic tests, but that should be it.
Sorry for the spam by the way :<
Posted by Modinstaller a month ago. Reply 2017-08-15 21:15
@Modinstaller Found it. It didn't look at your code yet, but by testing : being at 17.5 and using Inc+BoE LS gives the correct answer, 40. But being at 17 and using Inc+BoE LS gives 40 instead of 39.5 (39). It should either be an issue of rounding or not using true UnitPower values (maybe you did a workaround with some guesswork ?).
Here is how I got to 17 : 4x3 (dots) + 3x15 (LS with BoE) - 40 (starsurge), then just activate Inca, use LS, prediction is 40 but you end up with 39.
Posted by Modinstaller a month ago. Reply 2017-08-15 20:56
Hi Cyous. Lovely collection of weakauras. I've been using it for a month and I have only noticed one problem with it : inca buffed lunar strikes with blessing of elune give 12*1.25*1.5 = 22.5 ap. In-game, as seen by players, even LS give 22 and odds give 23. Your ap prediction bar must not correctly work around that, as sometimes it tells me I'll be at 40 ap after my Inc+BoE LS, and I end up at 39. I believe you can get the real (not rounded) amount of ap by adding "true" as 3rd argument to UnitPower. Example : UnitPower("player",SPELL_POWER_LUNAR_POWER,true). If I recall correctly you'll end up with a value such as 175, instead of 17 (.5 being rounded down).
Posted by Cyous 2 months ago. Reply 2017-08-11 03:48
@Squitty Not directly supported -- but here's what you can try...
TOTAL_DOT_TRACKER -> DisplayText

Lines 84, 80, 96
... = " "

Change the " " to 0
Posted by Squitty 2 months ago. Reply 2017-08-09 00:38
Can I somehow make the TOTAL_DOTS_TRACKER always show even if I dont have any dots up? So it says MF=0 and SF=0 instead of it disappears.
Posted by Stealthwang 2 months ago. Reply 2017-07-25 15:34
Further to my previous comment, a bit more testing has revealed that a trinket was breaking the WA. Problem solved.
Posted by Stealthwang 2 months ago. Reply 2017-07-25 15:29
I've got an issue where if I change my gear, it breaks the WA. when I go from LatC/SotA to IFE/OI, in my IFE/OI set it won't show dots on the target or properly display astral power. I've deleted and re-imported several times and I can't seem to fix it. Any ideas?
Posted by Cyous 2 months ago. Reply 2017-07-15 20:22
@Catana Legendary tracking is a separate module. Trinkets are a separate module. Check my profile or collections for "Moonkin Essentials"
Posted by Cyous 2 months ago. Reply 2017-07-15 20:20
@Cheewy Another addon is controlled that. Likely Masque or another addon that does similar things.
Posted by Catana 2 months ago. Reply 2017-07-15 20:03
Hello can someone help me pls? I've deleted many times and tried to get this to work but i only see this https://gyazo.com/31c2498b3de3347d44752334cab43fde and no legendarys or whisper etc...
Posted by Cheewy 2 months ago. Reply 2017-07-15 10:10
Mine looks super dark https://imgur.com/a/Ja36q is that how its suppose to look like?
Posted by Avernakis 3 months ago. Reply 2017-07-08 21:10
@Cyous Thanks for the update. :)
Posted by Cyous 3 months ago. Reply 2017-07-08 19:02
@Avernakis I wasn't receiving updates to new comments...weird.

I pushed a small change (nil check) to cover that reported error.
Posted by Kaoru 3 months ago. Reply 2017-07-06 00:15
@Alabert Hey dude, I had the same problem. Have you found a way to fix it?
Posted by Avernakis 3 months ago. Reply 2017-06-30 03:32
Swatter is throwing up an error whenever I change my T90 talent from AC or BotA to ShS. Changing from ShS to either of the two doesn't throw the error, changing from AC to BotA doesn't throw it.

Date: 2017-06-29 23:29:50
ID: 1
Error occured in: Global
Count: 1
Message: [string "--[[ Error in ' T90' ]]return function()..."] line 7:
attempt to compare number with nil
Debug:
[string "--[[ Error in ' T90' ]]return function()..."]:7:
[string "--[[ Error in ' T90' ]]return function()..."]:1
WeakAuras\RegionTypes\Icon.lua:378: UpdateCustomText()
WeakAuras\WeakAuras.lua:3335:
WeakAuras\WeakAuras.lua:3331
Locals:
FoN = true
_ = true
FID = 202342
(*temporary) = nil
(*temporary) = 631519
(*temporary) = true
(*temporary) = true
(*temporary) = 202342
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
Posted by Qata 3 months ago. Reply 2017-06-26 21:32
how can i scale it bigger in 7.2.5? wasnt there an option before :o im lost
Posted by Qata 3 months ago. Reply 2017-06-26 21:32
how can i scale it bigger in 7.2.5? wasnt there an option before :o im lost
Posted by Cyous 3 months ago. Reply 2017-06-24 02:30
@Alabert Reimport. It's not something with the bar.
Posted by Alabert 3 months ago. Reply 2017-06-22 17:10
@Cyous Hey dude, when I try importing the aura only the blue bar shows and everything else is transparent?

http://i.imgur.com/B3RYwe4.jpg
Posted by Cyous 3 months ago. Reply 2017-06-20 10:24
@Moonelune Shiny Bar was removed a while go because it was unable to be fixed during the "Cinematic" bug. Removed it because I want it to work reliably.

If you'd like it back, copy an older version of the bar and manually change the Display settings on every aurabar. It's a bit of work, but I'm not supporting the Shiny Bars anymore. :(
Posted by Moonelune 3 months ago. Reply 2017-06-19 23:42
Thank you for this amazing wa ! I have a problem, I don't know since when but my Astral Bar isnt sparkling anymore, it is just a plane blue bar. How do I fix this ?
Posted by Cyous 4 months ago. Reply 2017-06-03 03:26
@laame Make a bar that has background and the bar set to invisible.
Custom Trigger: `` function() return true end ``
Custom Duration: `` function() return 40, 100,0,0 ``
Posted by laame 4 months ago. Reply 2017-05-31 12:00
Hi, love the auras. But I would like to add AP_Costs sparks to see how much AP I need for Solar Wrath and Starfall, but can't seem to figure it out myself.
Posted by Wurmkur 5 months ago. Reply 2017-05-05 17:26
@Cyous Thanks for you reply. No, I don't use Deja Character Stats
Posted by EpicHairDew 5 months ago. Reply 2017-05-03 21:43
@Cyous its working perfectly now! thanks!
Posted by Cyous 5 months ago. Reply 2017-05-03 20:40
@EpicHairDew I think I found the cause of the issue with the Bar not displaying. Turns out my copy/paste wasn't complete.
Posted by EpicHairDew 5 months ago. Reply 2017-05-03 20:04
Ive been using this weakaura for 2-3 weeks now and suddenly overnight, the blue bar is gone that shows me how much AP i have! i can still see basically how much i have, but i do like the blue bar. is there a fix for this?

for reference: http://imgur.com/a/Tqtln
Posted by Poffertje 5 months ago. Reply 2017-05-03 19:23
@Cyous For me, the blue part of the resource bar was hidden. A fix for me was to change the opacity (in 'Bar Color') of "Ap_PredictBarSpark" to 0.

Just posting this, may anyone else have a problem with it.
Posted by Cyous 5 months ago. Reply 2017-05-03 19:09
@Wurmkur By any chance, do you have the addon: "deja character stats"? Or something similar?
Posted by Cyous 5 months ago. Reply 2017-05-03 18:58
@Wurmkur Sounds like something is colliding with the region info. Duplicate the AP Bar (the literal bar) and make sure it's actually being displayed.
Posted by Wurmkur 5 months ago. Reply 2017-05-03 14:28
Edit: On your screenshot it looks like there already is a border, however, I don't have one when importing the string. It just looks a bit weird because the "AP_PredictBarSpark" shows 2 thin black lines inside my AP Bar on the top and the bottom. @Cyous
Posted by Wurmkur 5 months ago. Reply 2017-05-03 14:24
Hey dude, very nice work. May i give a request? Would you make the AP bar a bit more "fancy"? I mean add a nice background or something? I saw that on your derpy hunter bar. @Cyous
Posted by User-59065196db3e30837ced659d 5 months ago. Reply 2017-04-30 21:07
The AP_number is always showing on top of any window. Found the fix for it, just change Frame Strata from High to Medium
Posted by Sewpra 5 months ago. Reply 2017-04-18 02:16
The newest version does not display the blue astral power bar for some reason. The number for my AP goes up, but no blue bar is visible. https://puu.sh/vnLVO/25bd146de0.jpg
Posted by Cyous 5 months ago. Reply 2017-04-18 00:45
@Tharix
negative, you must manually change it. it was possible in the past, but it was clunky to use so i removed it.
Posted by Cyous 5 months ago. Reply 2017-04-18 00:44
@PaulDupont Remove the "Always Active" trigger.
Posted by Tharix 5 months ago. Reply 2017-04-17 10:33
Hi, is it possible to scale the complete group? (...sorry for noobish question..)
Posted by PaulDupont 5 months ago. Reply 2017-04-16 13:16
@Cyous
Is there any way to hide an icon instead of having it desaturated ? For instance for the Owlkin Frenzy proc, i'd like to have it displayed only when I have the buff, and hide it if not.
Thanks !
Posted by Cyous 5 months ago. Reply 2017-04-14 18:14
@KnightDemons There isn't any room. I'll make a utility bar now that we have more spells worth tracking, but you should add it yourself for now. =)
Posted by KnightDemons 5 months ago. Reply 2017-04-14 08:22
Thanks for the great work you put into all of these, I wanted to know if you could please add icons to display the Wax and Wane, Circadian Invocation stacks? Thanks again :)
Posted by Rhaeyn 6 months ago. Reply 2017-04-05 20:15
fair enough thanks for the reply
Posted by Cyous 6 months ago. Reply 2017-04-02 19:01
@Haippari Worst case scenario, have a friend import it, then have them send it to you in-game.
Posted by Cyous 6 months ago. Reply 2017-04-02 19:00
@Rhaeyn Impossible for me to help with FPS issues. My bar simply doesn't command that many resources.
Posted by Cyous 6 months ago. Reply 2017-04-02 18:56
@WeeLilSeal It's more likely you have another WA that has errors and is causing custom coded WAs to fail.
Posted by Rhaeyn 6 months ago. Reply 2017-04-01 15:11
Hey Cyous, your AP Pro Bar is great and i want to keep using it, however something in its coding chunks my FPS by around 40 :/ Ive tested it across all my characters (who all use WA ui setups) and just my Druid using AP Pro Bar barely climbs above 50 fps even idle. All characters are using exactly the same addons. IF i disable WA on my Druid, boom i get 100 fps like the rest. Any ideas?
Posted by WeeLilSeal 6 months ago. Reply 2017-03-31 01:15
so half of this weak aura group stopped working with the patch. I have removed all old versions and updated WA.
Posted by Haippari 6 months ago. Reply 2017-03-30 07:05
I got the same problem with smurf.. The string gets cut for some reason with the newest version of the weakauras. The 70k just dont fit.
Posted by Malb 6 months ago. Reply 2017-03-24 20:28
@Cyous I finally found the culprit WA, it's just one that lists consumables in bag. I still don't understand why it is causing this issue, but when I delete it the AP Bar works perfectly. So I guess I'm getting rid of this other one. Thanks for your help and sorry for the trouble! Here is the consumables WA, if you're curious: http://pastebin.com/vzqjcgWC
Posted by Cyous 6 months ago. Reply 2017-03-23 23:10
@Malb Something is interfering with the variable. We're looking into it. It's likely another WA causing it.
Posted by Malb 6 months ago. Reply 2017-03-23 19:40
This is what I'm experiencing with the latest version of your string (2.0.1) and the latest version of WeakAuras (2.3.6). If I downgrade to WAs 2.3.0.0 it works. I also opened a ticket on WA WoWAce and they told me to update. Here's a screenshot: http://imgur.com/a/TUFwP Any ideas? Thanks!
Posted by Malb 6 months ago. Reply 2017-03-22 19:34
Hi! First of all, thanks for this WA. I've been using it for a long time. I just got the updated version, but I don't know why the progress bar is always empty and never fills. I tried disabling all my other addons and yes, I deleted all the previous AP_ProBar WAs, including icons. Haver you ever seen this or have any idea how I can fix it? Thanks!
Posted by smurf 6 months ago. Reply 2017-03-21 13:22
@Cyous Yea all up to date. Even just did it again. No idea what the problem is, oh well thanks.
Posted by Cyous 6 months ago. Reply 2017-03-21 01:20
@smurf Have you updated your WAs recently? The limit is much higher.
Posted by smurf 6 months ago. Reply 2017-03-20 21:46
@Cyous Yea, I mean I did copy and paste it... but the string is too long (72017 characters) and gets cut off importing into WA.
Posted by Cyous 6 months ago. Reply 2017-03-20 21:28
@smurf Ctrl+A, Ctrl+C
String is actually smaller than previous versions.
Posted by smurf 6 months ago. Reply 2017-03-20 15:26
Love this WA, but can't figure out how to import it because the string is so large. Any ideas?
Posted by Conchobhar 6 months ago. Reply 2017-03-17 20:37
thanks for your work :)
Posted by Ypi 7 months ago. Reply 2017-03-02 13:54
AP_ProBar fix - http://pastebin.com/WdWgTjGU
AP_ProBar_Icons fix - http://pastebin.com/2BhHs4Eq
Aura normally loaded and scaled.
After downloading make relog!
Thank Alea!!!
Posted by Skarz 7 months ago. Reply 2017-02-11 19:46
@Cyous?
Posted by Cyous 8 months ago. Reply 2017-02-11 01:40
@Lasonic Do this for each of the auras with CA/INC and MoonMoon.
1.) Actions: OnInit
2.) Locate the code:
WeakAuras.regions[aura_env.id].region:SetPoint(a,b,c, -1 * ((AP_CONFIG_BAR_W/2)),e)
3.) CA/INC doesn't have a "-1" .. so give it that. (Follow the coding, or just copy/paste/)
4.) For MoonMoon, change "-1" to "1"

Basically, you're just turning that specific value positive or negative.
Posted by Ixi 8 months ago. Reply 2017-02-05 22:40
@Ixi / @ Cyous never mind I fixed it just needed to re-import all the WA string and reload. Not sure if that was the best solution but it worked.
Posted by Ixi 8 months ago. Reply 2017-02-05 22:37
@Cyous My starfall bar use to be above the AP bar but now since I added legenderpy the starfall bar is in/behind the AP bar, any idea on how I can fix this?
Posted by Lasonic 8 months ago. Reply 2017-02-05 17:28
How do I go about swapping the positions of the new moon and Ca icons next to each end of the bar?
Posted by Skarz 8 months ago. Reply 2017-02-04 16:05
Can someone please help me figure this out, I love this wa but it seems like many things are not working properly for me. Is there any way to have the icons and bars look the same as yours without ElvUI? My icon placement is messed up as well.
Any help would be greatly appreciated! Here's what mine looks like http://i.imgur.com/OfWmkYH.png
Posted by Cyous 8 months ago. Reply 2017-02-04 05:49
@Kontah It's only the skins you need to disable. I use "Clean Icons" -- take a peak.
Posted by Kontah 8 months ago. Reply 2017-02-03 19:49
When i have to disable ElvUI and Masque, how do i make the WA look like yours? mine looks like normal Blizz Buttons etc :s
Posted by Cyous 8 months ago. Reply 2017-02-03 16:57
@Iame Mkay, the Starfall bar is the very narrow bar on top of the Astral Bar bars, jsyk.
Posted by Iame 8 months ago. Reply 2017-02-03 12:40
@Cyous yes with eveything it looks like this http://imgur.com/a/6NBHd , love the predict bar btw :)
Posted by Cyous 8 months ago. Reply 2017-02-03 00:43
@Iame Did you import both groups?
Posted by Iame 8 months ago. Reply 2017-02-02 18:58
Hi my starfall bar is behind the ap bar, any way i can move it? http://imgur.com/a/znDjX)
Posted by Cyous 8 months ago. Reply 2017-02-02 15:46
@User-5890fc27867dce6b05f76c99 If you have Starlord, then your empowerments are buffed by Starlord. Not sure what a glowy border would do for it... (Yes, it's possible, just confused on the reasoning)
Posted by User-5890fc27867dce6b05f76c99 8 months ago. Reply 2017-01-31 21:09
Its possible to make the icons actived by the empowerment from Star Lord to glow when they are active, like the icon from moon fire and sun fire that glow when they are about to expire?
Posted by Cyous 8 months ago. Reply 2017-01-29 17:28
@Skyzor Did you import both groups?
Posted by Skyzor 8 months ago. Reply 2017-01-29 01:35
I only have only a non working bar, and after reload nothing, 10+ reloads
Posted by turbothots 9 months ago. Reply 2016-12-19 07:02
Hey, having an issue with the MoonMoon icon and Celestial Alignment icon overlapping the castbar, any way to fix this? I've tried changing the width of the bar but it doesn't seem to do anything.
Posted by KnightDemons 10 months ago. Reply 2016-11-30 14:26
Could you add the Empowerment Mastery Snapshot % to the stack icons? I use http://pastebin.com/7vX1xgzc but would rather see the damage % of the empowerment on the icon its self.
Posted by User-581faf004a042eae53208498 a year ago. Reply 2016-11-06 22:33
If ElvUI/AddOnSkins is messing up the coloring of the AuraBar, you can Disable/Uncheck "WeakAura AuraBar" under ElvUI Settings -> AddOnSkins -> Miscellaneous

This setting is no longer enabled by default with the latest version of AddOnSkins, but you may have enabled it.
Posted by Cyous a year ago. Reply 2016-11-06 03:43
Be absolutely sure to grab both groups for this WA.
Posted by Acurze a year ago. Reply 2016-11-05 19:27
Whenever I load this addon in 1.2.2, it only shows 2 0s with a moon. 1.0.1 is fine
Posted by jesselulz a year ago. Reply 2016-11-02 01:39
How do I disable it showing my talents along the bottom?
Posted by kevdotcom a year ago. Reply 2016-10-21 02:20
It somehow stops working for me when I get in combat... the bar is stuck at 0.
Posted by KnackyBear a year ago. Reply 2016-10-19 17:45
Hi Cyous ! Thx for your share !
I like your wa, but the render of my icons is not like yours. Which graphical module are you using to set your icon like that ? (mine are like blizzard's ones).
Thx !
Posted by fenix a year ago. Reply 2016-10-16 15:50
Hi. This WA looks great. But half of the stuff doesn't work on non-english client. I didn't succeded in fixing it. Could you replace the spell names with spell IDs? Thanks!
Posted by Cyous a year ago. Reply 2016-10-16 06:03
@RonZ
You need to have all the text auras enabled. Most of the calcs are placed in there.
Posted by RonZ a year ago. Reply 2016-10-10 16:47
is it possible to use only the bar you made ? I want to disable all others but i dont know why, if i dont load them it's all buged :(
Posted by Cyous a year ago. Reply 2016-09-09 09:54
No idea, sorry :(
Posted by Drakkainen a year ago. Reply 2016-09-07 09:07
Is it possible to disable ElvUI Skin for a specific WeakAura (Group)?