WEAKAURA

Insanity Bar (7.2.5 Ready / 2017/06/20)

Updated Jun 21st 2017 WoW 7.2 User Twintop Views 242,533 Comments 40 Stars 100 Collections 26 Link https://wago.io/4yfC0kJVW
Shadow PriestDamage DealingPvE Utility



Description:
Tracks your current Insanity level, time remaining in Voidform, and expected stacks at the end.

When updating to a new version, COMPLETELY REMOVE the old version first, "/console reloadui", install the new version, and "/console reloadui" again!

Notes:
-Right Side Text:
--Shows current Insanity %.
--Shows incoming Insanity gains from either hardcasting or Shadowy Apparitions (if Auspicious Spirits is talented).
-Left Side Text:
--Shows current Haste%.
--Outside Voidform, shows how many Lingering Insanity stacks you have (if you have any).
---Inside Voidform, shows how many stacks of Voidform you currently have as well as how many more stacks you will be able to gain before exiting Voidform.
-Center Text:
--Shows how long you have until you will exit Voidform, and, what the current Insanity drain per second is (not including Void Torrent or Dispersion reducing it to 0).
-Line denotes your threshold for being able to toggle Voidform on, depending on your talent choices (Legacy of the Void).
-Bar flashes white and changes color when you are able to enter Voidform.
-Colors progress to darker shades of purple as you move from: unable to toggle Voidform, can toggle Voidform, and finally to in Voidform.
-At the end of Voidform, the bar color changes from purple to yellow when you have between 1 - 2 GCDs until you will exit, red when you have under 1 GCD until you will exit.
-If you are hardcasting a spell that generates insanity, the position of the bar after you complete casting is denoted by the White bar. Likewise, the white text "xx + " in front of the current Insanity text is the raw amount of Insanity you will gain at the end of your cast.
-If you have the Auspicious Spirits Tracker Weak Aura enabled (just the trigger, the icon/GUI is optional!), then the lighter purple bar denotes the position of the Insanity bar once all active Shadowy Apparitions strike their targets. Likewise, the lighter purple text "xx +" in front of the current Insanity (or hardcast Insanity) text is the raw amount of Insanity you will gain when all current SAs strike their targets.
-Tracks when channelling Void Torrent or Dispersion and adjusts the time remaining accordingly.
-Accounts for current latency in the time remaining.
-Choose whether or not to print out a summary to chat after each Surrender to Madness (or Voidform).
-To edit the colors of the bar and text, resize the bar, change the font size, or (NEW) change what text is displayed in the left/middle/right of the bar, see the "Options and Trigger" aura, Actions Tab, Init section.


This is a collection of 12 auras:

Insanity Bar - Options and Trigger (text)
Insanity Bar - Text - Left (text)
Insanity Bar - Text - Middle (text)
Insanity Bar - Text - Right (text)
Insanity Bar - Border - Insanity Ready (aurabar)
Insanity Bar - Main Bar (aurabar)
Insanity Bar - Casting Bar (aurabar)
Insanity Bar - Auspicious Spirits Bar (aurabar)
Insanity Bar - LotV Marker 1 (texture)
Insanity Bar - LotV Marker 2 (texture)
Insanity Bar - Non-LotV Marker 1 (texture)
Insanity Bar - Non-LotV Marker 2 (texture)

This Weak Aura includes custom functions.


Preview

Comments
Posted by Burzum 3 hours ago. Reply 2017-07-20 13:07
@Jarohv
Try looking up under "Animations" --> Color --> Custom Function" for

  • Insanity Bar - Border - Insanity Bar

  • Insanity Bar - Main Bar

  • Insanity Bar - Casting Bar



There are some characters missing from the begging of the custom code. I think it was something like "-- Insa" or so.
Posted by DAGAN 13 days ago. Reply 2017-07-07 09:11
@twintop
I tried to make the bar shorter in the options aura, but it won't change size. wont become bigger either
Posted by Jarohv 17 days ago. Reply 2017-07-03 20:27
I really enjoy this insanity bar! However, it spams the following in my chat (only I can see it):

[string "-- Insanity Bar -- By Twintop - US Illidan - 2017/06/20.."]:4: '<name>' expected near '('

Anyway to fix this / turn it off? I've tried a number of things but nothing seems to work. Thanks!
Posted by Vikirnoff a month ago. Reply 2017-06-15 21:04
Thanks for making this but when I import this wa, I get an error. :(
360x [string "--[[ Error in ' Insanity Bar - Main Bar' ]]..."]:54: attempt to call global 'getRGBAFromString' (a nil value)
[string "--[[ Error in ' Insanity Bar - Main Bar' ]]..."]:54: in function `colorFunc'
WeakAuras\WeakAuras-2.4.3.lua:2681: in function <WeakAuras\WeakAuras.lua:2607>

Locals:
progress = 0.065333333332092
r1 = 0.38039215686275
g1 = 0
b1 = 0.75686274509804
a1 = 1
r2 = 1
g2 = 1
b2 = 1
a2 = 1
specGroup = 1
isLotVSelected = true
a = 1
r = 0
g = 0
b = 0
(*temporary) = nil
(*temporary) = "FF763BAF"
(*temporary) = "attempt to call global 'getRGBAFromString' (a nil value)"
Posted by Twintop a month ago. Reply 2017-06-06 05:29
@MrCrownRoyal Try the latest version (updated today), it should *fingers crossed* resolve the issue and make it so you don't have to mess with any code.
Posted by MrCrownRoyal a month ago. Reply 2017-06-06 01:19
@ummon yea i tried doing what u asked but i feel like a monkey doing a math problem when it comes to code lol.
Posted by Twintop a month ago. Reply 2017-06-06 00:48
@ummon @MrCrownRoyal I'm not sure if it is WAGO or WA itself that is garbling the import string with the '--DEBUG' line starts. I'm going to modify the WA tonight and post a new version without these lines and see if that fixes the issues people have been having.
Posted by ummon 2 months ago. Reply 2017-06-02 22:10
@MrCrownRoyal I had the same issue as you, it appears the import string messes up some of the comment lines in the custom functions. I had to go into the following weakauras custom function in the animation tab, and add two dashes in the beginning of the first line:

  • Insanity bar - Border - Insanity Ready

  • Insanity Bar - Main Bar

  • Insanity Bar - Casting Bar

  • Insanity Bar - Auspicious Spirits bar


It looks like somehow the part that normally says --DEBUG: instead turns into G:
Posted by MrCrownRoyal 2 months ago. Reply 2017-06-02 13:03
Hey guys my chat box is getting spammed with these errors from your bar and i love the bar and would like to keep using it but i cant if it keeps doing this any ideas on how to fix.

[string "--[[ Error in ' Insanity Bar - Main Bar' ]]-- DEBUG: Insanity B..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Casting Bar' ]]-- DEBUG: Insanit..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Main Bar' ]]-- DEBUG: Insanity B..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Casting Bar' ]]-- DEBUG: Insanit..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Main Bar' ]]-- DEBUG: Insanity B..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Casting Bar' ]]-- DEBUG: Insanit..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Main Bar' ]]-- DEBUG: Insanity B..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Casting Bar' ]]-- DEBUG: Insanit..."]:5: '<name>' expected near '('
[string "--[[ Error in ' Insanity Bar - Main Bar' ]]-- DEBUG: Insanity B..."]:5: '<name>' expected near '('
Posted by Twintop 2 months ago. Reply 2017-06-02 04:29
@potato Thanks for the confirmation on where this was happening. I haven't been able to reproduce the issue but I just updated the code to have a nil check on T20_2P_Stacks. Please let me know if this resolves the issue!
Posted by potato 2 months ago. Reply 2017-06-01 18:18
if tonumber(version) > 720 then local T20_2P = GetSpellInfo(247226); T20_2P_Stacks = select(4, UnitBuff("player", select(1, T20_2P))); end this line needs a nil check, it throws errors
Posted by kissssss 2 months ago. Reply 2017-05-23 15:49
@Twintop Still thanks for incredible WA~~!
Posted by kissssss 2 months ago. Reply 2017-05-23 15:48
@Twintop Oh~Tnanks for reminding me of the red words!After changing the Options and Trigger WA,everything is ok.Now I know the way of changing size and number on those buttons is invalid.Still thanks for incredible~!
Posted by b89522 2 months ago. Reply 2017-05-15 16:26
Hello Twintop, for some reason my insanity casting bar became darkened without any changes to the settings. It's as shown in the screenshot here, https://ibb.co/jTPX35.
Posted by Twintop 2 months ago. Reply 2017-05-15 03:45
@Nawith There's your problem -- there is no "Options and Triggers 2". If you have that WA then you have not completely removed an old version of the Insanity Bar. Triple check to ensure all of the old WAs are gone.
Posted by Nawith 2 months ago. Reply 2017-05-14 23:24
I've tried everything to try to resize the bar, no matter what I do, everytime I load it I get LUA errors. Also if I change the width or height from the "Options and Trigger 2" it doesn't do anything at all.
Posted by Twintop 2 months ago. Reply 2017-05-11 18:23
@kissssss Where are you changing sizes of bars and text? Are you changing it in the Options and Trigger WA or on the actual individual auras themselves?
Posted by kissssss 2 months ago. Reply 2017-05-07 10:46
@Twintop Hi,thanks for your string of Insanity Bar,but I still have some bugs for the latest version.After I follow the steps to import the string,I resize the bar and change the size of the numbers.But the changes can't be saved.Whenever I enter the game,the changes return to the original style.What’s wrong with the string?By the way,I’m running the latest version of WeakAuras(2.4.1).
Posted by OneHundred 3 months ago. Reply 2017-04-08 22:39
@Twintop it was another weakaura making it bug for some reason. it was a powerbar weakaura. I removed that and it's working perfectly now. Thank you for your time and help.
Posted by Twintop 3 months ago. Reply 2017-04-08 17:45
@OneHundred Can you try the following steps?
1) Completely remove the Insanity Bar (triple check to make sure all of the auras are gone).
2) Reload UI
3) Import the new WA string. You *will* get a LUA error at this point, ignore it.
4) Reload UI
5) Check if it works.

If this doesn't work, what version of WeakAuras (the addon) do you have running?
Posted by OneHundred 3 months ago. Reply 2017-04-07 08:18
Hello Twintop. Thank you for this amazing weakaura. I'm facing some bugs with it though. I followed your steps and I'm still getting the same problem. I use swatter, and it showed the following: https://i.gyazo.com/thumb/1200/_792cb5a89fb0f40787492c2cbc32f4ab-png.jpg
Posted by Twintop 7 months ago. Reply 2016-12-17 23:36
@sablemm See the Options and Settings WA. That's the Wilhelm Scream.
Posted by sablemm 7 months ago. Reply 2016-12-17 23:04
hi there,first thank u for this amazing code,and i have a question that,every time die from s2m,there will be a sound "ah~", can u tell me how could i delete it? thanks alot..
Posted by Phaton 7 months ago. Reply 2016-12-17 01:44
@Twintop Sorry! after reloading the UI it worked. Thanks so much for this amazing aura! Twintop MVP!
Posted by Phaton 7 months ago. Reply 2016-12-17 01:37
@Twintop Same error. Thanks for the efforts. Let me know what can I do to help.
Posted by Twintop 7 months ago. Reply 2016-12-17 01:13
That may be part of it, @Jordy. I thought I had updated the instructions to include that but, if I made any changes to any functions used (or added new ones) then a /reloadui after importing is needed. Have it updated now, though!
Posted by Jordy 7 months ago. Reply 2016-12-16 22:07
@Jordy Not sure if I can edit my previous comment but it looks like this fixes itself if you reloadui AGAIN after importing the new aura. I know in the summary you state to reloadui after removing the previous version but before importing, but it looks like you also need to reloadui after importing the new version. This might fix the issue for others if they are experiencing the same problem.
Posted by Jordy 7 months ago. Reply 2016-12-16 22:01
@Twintop I am also having this issue (I also use ElvUI). The latest update doesn't seem to fix it. The errors appear to be stemming from a couple of things:

1. WA_Insanity_Bar_Color_Text_Middle is nil in the Insanity Bar - Text - Middle aura
2. tonumber(WA_Insanity_Bar_v_major), tonumber(WA_Insanity_Bar_v_minor), and tonumber(WA_Insanity_Bar_v_bf) are all nil in the Insanity Bar - Text - Right aura

When I replace those variables with regular values then the errors go away. I'm not exactly sure how you'd fix these issues exactly but I thought this might help.
Posted by Twintop 7 months ago. Reply 2016-12-15 02:57
@Splast @Xarf @Phaton Try this new version. I think it addresses the issue but still can't reproduce it locally. Thanks!
Posted by Splast 7 months ago. Reply 2016-12-13 23:32
I am having the same issue. I went back to version 7 and not receiving errors. They only happen with the latest version.
Posted by Xarf 7 months ago. Reply 2016-12-13 17:30
I found a little workaround:

if you are suing ElvUI you can simply type: /luaerror off and then the Lua Error Window will disappear.

Its not the best workaround but now insanitybar works for me...
Posted by Xarf 7 months ago. Reply 2016-12-13 10:46
I'm getting the same errors like Phaton:
Message: [string "return -- Insanity Bar -- By Twintop - Illi..."]:7: bad argument #2 to 'format' (string expected, got nil)
Time: 12/13/16 11:43:12
Count: 601
Stack: [C]: ?
[C]: in function `format'
[string "return -- Insanity Bar -- By Twintop - Illi..."]:7: in function <[string "return -- Insanity Bar -- By Twintop - Illi..."]:2>
Interface\AddOns\WeakAuras\RegionTypes\text.lua:117: in function `UpdateCustomText'
Interface\AddOns\WeakAuras\WeakAuras.lua:2965: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:2961>

- newest Version of WA
- English Client
- same Talents like @Phaton
Posted by Twintop 7 months ago. Reply 2016-12-11 22:20
@Phaton What version of WAs do you have installed? Are you positive there are no old versions of the Insanity Bar WAs left? I'm not able to reproduce this issue, unfortunately. :\
Posted by Gandalfthefabule 7 months ago. Reply 2016-12-11 18:50
How do i download form this site im realy confused
Posted by Phaton 7 months ago. Reply 2016-12-09 10:10
@Twintop http://www.wowdb.com/talent-calculator#CpUX . I'm 110. My client is in english. I' ve not changed a thing from of your auras.
Posted by Twintop 7 months ago. Reply 2016-12-09 01:54
@Phaton Also, what talents were you using, what level are you, and what is the language for your client?
Posted by Twintop 7 months ago. Reply 2016-12-09 01:53
@Phaton Did you do any customizations or changes to the LUA for the bar in any way, including editing the variables in the Options and Triggers WA?
Posted by Phaton 7 months ago. Reply 2016-12-08 13:13
Well, then started again when the bar tryed to reference them.
Posted by Phaton 7 months ago. Reply 2016-12-08 13:12
I've tried deleting all of the "Text" auras and the errors stoped.
Posted by Phaton 7 months ago. Reply 2016-12-08 12:49
I'm getting the same error here :(
Message: [string "return -- Insanity Bar -- By Twintop - Illi..."]:7: bad argument #2 to 'format' (string expected, got nil)
Time: 12/08/16 13:48:54
Count: 1053
Stack: [C]: ?
[C]: in function `format'
[string "return -- Insanity Bar -- By Twintop - Illi..."]:7: in function <[string "return -- Insanity Bar -- By Twintop - Illi..."]:2>
Interface\AddOns\WeakAuras\RegionTypes\text.lua:117: in function `UpdateCustomText'
Interface\AddOns\WeakAuras\WeakAuras.lua:2965: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:2961>