Download
(1MB)
Download
Updated: 08-23-16 08:56 AM
Pictures
File Info
Compatibility:
Legion (7.0.3)
Minor patch (6.2.4)
Minor patch (6.2.3)
Fury of Hellfire (6.2)
The Adventure Continues (6.1)
Warlords of Draenor (6.0.3)
Warlords of Draenor Pre-Patch (6.0.2)
Updated:08-23-16 08:56 AM
Created:06-06-11 11:10 AM
Downloads:20,860
Favorites:33
MD5:

oUF Fail  Popular! (More than 5000 hits)

Version: 1.6.9
by: Sauerkraut, MiRai

I am not playing as much as I used to. Too much real life getting in the way. I will try to keep things up to date but I can't promise much at this time. No new features will be added in the foreseeable future.

IMPORTANT: Use the included version of oUF until further notice.

Simple, Minimalistic oUF frames.

This is a fork of my oUF_Karma (http://www.wowinterface.com/downloads/info18617-oUF_Karma.html) addon. It changes the orientation of the power bar to the top of the frame. I have also added a small indicator arrow that moves along the bar in relation to the power. This layout is focused more on PvP and lacks some of the PvE features that were included in oUF_Karma.


A short video can been seen at http://youtu.be/Iq7Fy0Jr-g8

I've been working closely with MiRai on a new version of oUF_Fail that adds the power indicator arrows to several other frames. With the help of Phanx and Caleb we have been able to create something that works just the way we like. Huge credit goes to MiRai for coming up with the idea, and the solution. Now included in version 1.4.* and up!!!



Special thanks to Zork and Rainrider for helping me to get the arrow to update when the power type changes. Another thanks to Freebaser for coming up with the code to make the arrow possible.

Supports the following frames:

  • Player
  • Player Pet *NEW*
  • Target
  • Target of Target
  • Focus
  • Focus Target
  • Party
  • Party Pets
  • Raid
  • Boss
Raid frames will adjust size depending on how large of a raid you are in. As the number of raid members increases the size of the frame decreases.

Addon support:
- oUF_RaidDebuffs (embedded)
- oUF_DebuffHighlight (embedded)
- oUF_AuraWatch (embedded)
- oUF_Smooth (modified and embedded) - !!!DO NOT USE AN EXTERNAL VERSION IT WILL BREAK THE ADDON!!!
- oUF_Combat Feedback or oUF_FloatingCombatFeedback
- oUF_WeaponEnchant
- oUF_Experience
- oUF_Reputation


All frames can be moved from within the cfg.lua file (or with oUF_Movableframes)as well as many other settings. Including the healthbar font size (Lily.Petal and webmasta ).


Credits:
Special thanks to myno for oUF_Drk. I re-used a lot of that code to make things work. Zork for oUF_Simple that I used as a framework for my layout and for helping me not be such a noob at lua.
Freebaser, Drakull, Neverg, and Monolit. - Most of the code and inspiration came from their layouts.

Notes:
This is my personal layout and it's *not* finished so expect bugs. I will not add features that I will not use. If you aren't ready to edit code then please don't bother asking. Some features may not be fully functional or working at all. This add on eats baby seals and can be hazardous to your health. There is no in game configuration all changes must be done with a text editor. Personally I use Notepad++.

Questions or comments please feel free to leave a message I check back frequently.

1.6.8 -
Fixed Paladin and Monk class power

1.6.7b -
Fixed castbar issue (Thanks MiRai)
Fixed warlock shard bar.
Known issue - Paladin holy power wrong color.

1.6.7a -
Updated for Legion
Known issue - Player cast bar is messed up (background issue)

1.6.6 -
Minor changes and some frame locations adjusted
TOC bumped for 6.2

1.6.4 -
Added party pet frame support.
Removed support for oUF_SVengeance since vengeance no longer exists.
Removed mage arcane charges bars. I don't feel they are really needed.
Fixed right click menu for party frames.

1.6.3 -
Hopefully fixed shadow priest orbs

1.6.2 -
Fixed drain soul spell ID (thanks Tehtsuo)
bumped TOC

1.6.1 -
Minor correction

1.6.0 -
Changed height of player and target bars
removed size change for raid based on raid size (was causing too much taint)

1.5.7 -
Minor fixes mainly maintenance

1.5.4 -
Smooth power values re-introduced (with mana fix)
Boss frames working

1.5.3a -
typo

1.5.3 -
Minor fixes
Boss frames are working

1.5.2 -
Dunno it disappeared

1.5.1 -
A perfect example of why not to try and fix things when you are over tired.
Raid frames fixed, they were just off the screen *duh

1.5.0 -
Added warlock spec specific power tracking.
Added mage arcane blast charge power tracking.
Shaman totem support is still broken, I'm looking in to it.
There is a bug with combat feedback, a reloadui clears it but I'm trying to find the root.
Raid frames are still acting up. I'm lost on this one.

1.4.7 -
TOC Update
Fixed Combat Feedback error
Hopefully fixed Raid frames

1.4.4 -
Fixed over lapping runes & exp/rep bar - Thanks MiRai!

1.4.3 -
Moved combo points back to their proper spot.

1.4.2 -
Added arrows for target, party, focus and focus target. Can be disabled in the cfg.lua file.
Experience and Reputation text now shows only on mouse over.
Fixed vengeance text display. Minor texture changes.

1.3.4 -
Fixed a tag error. Added support for oUF_Reputation.

1.3.3 -
Fix desaturating of debuffs

1.3.2 -
Fixed a tag error

1.3.1 -
Fixed overlapping items (again).

1.3.0 -
Updated Class power to work with oUF_1.6.* Added support for oUF_Experience

1.2.0 -
Went back to the original 1.0 format because I liked it better. Fixes overlapping cast bars and a few
other small things. Still a bit buggy, Paladin holy power is messed up. I think it works (more or less).

1.1.0b -
Been a while, lazy coding breeds extra updates

1.1.0a -
Fixed some secondary power issues

1.1.0 -
Updated for MoP

1.0.3 -
Bumped TOC for 4.3

1.0.2 -
Bumped TOC for 4.2
Minor Improvements

1.0.1 -
Initial Release
Post A Reply Comment Options
Unread 01-12-13, 09:00 AM  
Zellglas
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 4
Uploads: 3
Realy n1 but i got this:

Message: Interface\AddOns\oUF_Fail\tags.lua:95: attempt to call field 'failDG' (a nil value)
Time: 01/12/13 15:17:36
Count: 27
Stack: Interface\AddOns\oUF_Fail\tags.lua:95: in function `?'
Interface\AddOns\oUF\elements\tags.lua:604: in function `UpdateTag'
Interface\AddOns\oUF\elements\tags.lua:415: in function <Interface\AddOns\oUF\elements\tags.lua:410>

Locals: u = "raid14"
(*temporary) = nil
(*temporary) = "raid14"
(*temporary) = "attempt to call field 'failDG' (a nil value)"
Report comment to moderator  
Reply With Quote
Unread 01-08-13, 03:24 AM  
MiRai
A Warpwood Thunder Caller

Forum posts: 96
File comments: 104
Uploads: 0
Originally Posted by Sauerkraut
MiRai I uploaded my edited version. It is called oUF_Fail extra arrow version. Clever I know. It should be listed soon in the beta addons section.
Awesome, thanks! I'll direct my arrow comments over there for the time being.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 08:01 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
MiRai I uploaded my edited version. It is called oUF_Fail extra arrow version. Clever I know. It should be listed soon in the beta addons section.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 07:47 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Okay so I spent a little while and I figured it out. At least for the target frame. The rest is up to you. I created a new lib for the new arrow.

Code:
lib.setTargetArrowColor = function(self)
	local _, cType = UnitClass("target")
	local ccolor = oUF.colors.class[cType] or {.3,.45,.65}
	self.Power.arrow:SetVertexColor(unpack(ccolor))
end
Just put it below the original arrow code. Add the frames you want this arrow to be on to the following

Code:
	--arrow
	if f.mystyle == "player" or f.mystyle == "target" then
You've already done this so no biggie.

In the core.lua

Code:
		self.Power.arrow.colorClass = true
		self.Power.arrow.PostUpdate = lib.setTargetArrowColor

		self:RegisterEvent("UNIT_TARGET", lib.setTargetArrowColor)
		self:RegisterEvent("PLAYER_TARGET_CHANGED", lib.setTargetArrowColor)
I don't know if you need that first line I don't think it does anything. There is a bit of a bug the first target you take the arrow stays white. I must be missing an event but I can't figure out what it would be.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 07:11 PM  
MiRai
A Warpwood Thunder Caller

Forum posts: 96
File comments: 104
Uploads: 0
Originally Posted by Sauerkraut
Damn you now you have me curious :P. I know getting the arrow to match the power color was a huge pain in the ass in the first place. It will probably need an if loop so that it selects power color for "player" (you) and class type for everyone else to match the power bar. It wasn't meant for other frames just for mine to help me keep track of rage.
Haha nice! Just to be clear, I was looking to keep the arrow class-colored on the target/focus frames and then power-colored on the focus target frame (to match the power bars for each frame). At least I think that would look best.

Originally Posted by Sauerkraut
I think I had focus cast bars setup at some point when I was doing a lot of arena. I'll have to look at it.
Sounds good. That's exactly the reason I asked.

Originally Posted by Sauerkraut
Wow I just looked through Nib's oUF_RealUI That is some one who really knows how to code. I understand a bit of how he/she makes the updates smooth, but I don't know if I could figure out how to implement it. It is pretty intense.
Yeah, having seen the UI in YouTube videos I figured as much.


One more thing that I forgot to ask about before was flag carrier frames (possibly arena frames?). I'm not sure if this was actually implemented in Cataclysm (because I missed a lot of Cataclysm) or MoP, but it seems that both the enemy and friendly flag carriers use arena frames that anchor below the minimap:




This is kind of a bad screenshot now that I look back at it, but my mouse cursor is hovering over the friendly flag carrier frame below the minimap and my tooltip is covering the enemy frame; and /fstack is showing it's an arena frame (even though I was in WSG (non-RBG)). Those default frames look pretty ugly up there next to the rest of oUF_Fail's layout, and I was curious how difficult it would be to get this layout to takeover those frames?

Now with everything being said, I want you to know that I'm not trying to bombard you with all of these suggestions/changes when you're trying to actually enjoy the game itself, and as I already mentioned, I'm just excited that this layout is actually updated and working for MoP. These suggestions/changes are just a list of things that have been in my head since I began using this layout of yours months and months ago, and now that you've returned, I figured that I would just lay them all out and see what you thought. I do appreciate any time and effort you put into implementing any of my wild ides and I gladly volunteer to be a guinea pig for any future alpha versions.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 05:08 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Wow I just looked through Nib's oUF_RealUI That is some one who really knows how to code. I understand a bit of how he/she makes the updates smooth, but I don't know if I could figure out how to implement it. It is pretty intense.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 05:01 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Originally Posted by MiRai
Originally Posted by Sauerkraut
I'll look at my rage bar see if I can duplicate that.
Thanks a lot. I believe RealUI's oUF layout utilizes a nice smooth change in power values, but I could be wrong since I've not personally used his layout. I'm only mentioning this in case you wanted to look at some other code to see how someone else accomplishes this (if I'm even right about the way his layout works to begin with).

Originally Posted by Sauerkraut
Adding more arrows should be fairly easy the code is already in place you just need to copy it to the bar section that you want it in.
You're right, I was overlooking that section of the code yesterday. Just as a test I threw an arrow on every frame except for the TargetOfTarget using this code:

Lua Code:
  1. if f.mystyle ~= "tot" then
  2.     s.arrow = s:CreateTexture(nil, "OVERLAY")
  3.     s.arrow:SetTexture([[Interface\Addons\oUF_Fail\media\textureArrow]])
  4.     s.arrow:SetSize(16,16)
  5.     s.arrow:SetPoint("BOTTOM", s:GetStatusBarTexture(), "RIGHT", 1, 8)
  6.     fixTex(s.arrow)
  7.        
  8.     local powa = lib.gen_fontstring(f.Health, cfg.font, 18, "OUTLINE")
  9.     powa:SetPoint("RIGHT", s.arrow, "LEFT", 6, -8)
  10.     powa:SetJustifyH("RIGHT")
  11.     f:Tag(powa, "[fail:pp]")
  12. end

And here was my quick and dirty result (I pulled the target's power values):





I think I'm going to like the look of more arrows, but I would like the arrows of the other frames to inherit the color of that frame's power bar. How would I go about making that happen?

As another quick test I tried adding the following to the Focus Target section of the core.lua file:

Lua Code:
  1. self.Power.arrow.colorPower = true
  2. self.Power.arrow.PostUpdate = lib.setArrowColor
  3. self:RegisterEvent("PLAYER_LOGIN", lib.setArrowColor)
  4. self:RegisterEvent("PLAYER_ENTERING_WORLD", lib.setArrowColor)
  5. self:RegisterEvent("UNIT_DISPLAYPOWER", lib.setArrowColor)


That didn't actually change anything and, as you can see, my Lua knowledge pretty much extends as far as copying & pasting or just straight up breaking things until I figure out what certain values do. Next, I'll assume that something needs to be added or changed around line 118 of lib.lua, but I'm not entirely sure.

Lua Code:
  1. -- Power Bar Arrow function
  2.  
  3. local arrow = {[[Interface\Addons\oUF_Fail\media\textureArrow]]}
  4.  
  5. --set color -- Huge thanks to Zork and Rainrider for helping me figure this out.
  6. lib.setArrowColor = function(self)
  7.     local _, pType = UnitPowerType("player")
  8.     local pcolor = oUF.colors.power[pType] or {.3,.45,.65}
  9.     self.Power.arrow:SetVertexColor(unpack(pcolor))
  10. end


Originally Posted by Sauerkraut
I don't use the focus cast bar atm but I'll look into it.
Thanks for this, as well. I would like to keep it enabled in the event that my focus's target is casting a spell that I may need to help interrupt or reflect.
Damn you now you have me curious :P. I know getting the arrow to match the power color was a huge pain in the ass in the first place. It will probably need an if loop so that it selects power color for "player" (you) and class type for everyone else to match the power bar. It wasn't meant for other frames just for mine to help me keep track of rage.

I think I had focus cast bars setup at some point when I was doing a lot of arena. I'll have to look at it.

Everything I've learned about Lua was from copy and paste testing. I've ventured out on my own a few times (Sandman for instance) but it never really went well.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 03:23 PM  
MiRai
A Warpwood Thunder Caller

Forum posts: 96
File comments: 104
Uploads: 0
Originally Posted by Sauerkraut
I'll look at my rage bar see if I can duplicate that.
Thanks a lot. I believe RealUI's oUF layout utilizes a nice smooth change in power values, but I could be wrong since I've not personally used his layout. I'm only mentioning this in case you wanted to look at some other code to see how someone else accomplishes this (if I'm even right about the way his layout works to begin with).

Originally Posted by Sauerkraut
Adding more arrows should be fairly easy the code is already in place you just need to copy it to the bar section that you want it in.
You're right, I was overlooking that section of the code yesterday. Just as a test I threw an arrow on every frame except for the TargetOfTarget using this code:

Lua Code:
  1. if f.mystyle ~= "tot" then
  2.     s.arrow = s:CreateTexture(nil, "OVERLAY")
  3.     s.arrow:SetTexture([[Interface\Addons\oUF_Fail\media\textureArrow]])
  4.     s.arrow:SetSize(16,16)
  5.     s.arrow:SetPoint("BOTTOM", s:GetStatusBarTexture(), "RIGHT", 1, 8)
  6.     fixTex(s.arrow)
  7.        
  8.     local powa = lib.gen_fontstring(f.Health, cfg.font, 18, "OUTLINE")
  9.     powa:SetPoint("RIGHT", s.arrow, "LEFT", 6, -8)
  10.     powa:SetJustifyH("RIGHT")
  11.     f:Tag(powa, "[fail:pp]")
  12. end

And here was my quick and dirty result (I pulled the target's power values):





I think I'm going to like the look of more arrows, but I would like the arrows of the other frames to inherit the color of that frame's power bar. How would I go about making that happen?

As another quick test I tried adding the following to the Focus Target section of the core.lua file:

Lua Code:
  1. self.Power.arrow.colorPower = true
  2. self.Power.arrow.PostUpdate = lib.setArrowColor
  3. self:RegisterEvent("PLAYER_LOGIN", lib.setArrowColor)
  4. self:RegisterEvent("PLAYER_ENTERING_WORLD", lib.setArrowColor)
  5. self:RegisterEvent("UNIT_DISPLAYPOWER", lib.setArrowColor)


That didn't actually change anything and, as you can see, my Lua knowledge pretty much extends as far as copying & pasting or just straight up breaking things until I figure out what certain values do. Next, I'll assume that something needs to be added or changed around line 118 of lib.lua, but I'm not entirely sure.

Lua Code:
  1. -- Power Bar Arrow function
  2.  
  3. local arrow = {[[Interface\Addons\oUF_Fail\media\textureArrow]]}
  4.  
  5. --set color -- Huge thanks to Zork and Rainrider for helping me figure this out.
  6. lib.setArrowColor = function(self)
  7.     local _, pType = UnitPowerType("player")
  8.     local pcolor = oUF.colors.power[pType] or {.3,.45,.65}
  9.     self.Power.arrow:SetVertexColor(unpack(pcolor))
  10. end


Originally Posted by Sauerkraut
I don't use the focus cast bar atm but I'll look into it.
Thanks for this, as well. I would like to keep it enabled in the event that my focus's target is casting a spell that I may need to help interrupt or reflect.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 12:03 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Originally Posted by MiRai
Sauerkraut, in addition to the celebration of your return and the update to this layout, I do have a few questions/suggestions.

Power Bar Arrow Value:
As the behavior of the arrow stands right now it has a smooth motion when the player's power changes, but the actual power values jump from one to the next (e.g. 36 Rage jumps straight to 66 Rage). Is it possible to make the change in power values feel more fluid like the arrow itself?


Power Bar Arrow:
Would you perhaps entertain the idea of adding more power bar arrows to some of the other frames? If this isn't something you want to do with your layout, how would someone go about doing so? I see where you generate the power bar arrow in lib.lua, but I have no idea how it actually works. I would really like to see how the arrow looks on other frames in addition to just the player frame.


Focus Target Castbar:
After enabling the focus target castbar I noticed that it actually shows up a little after the cast begins. This was when I was just testing it out on myself while mounting. Is this typical focus target castbar behavior?

The other thing is that it when the cast is complete, the bar itself does not fade out nicely like the player/target/focus castbars do. I will continue looking through the code to see if I can see why this is, but figured I would ask here as well.


Thanks.

EDIT: Figured out one of my questions and removed it.
EDIT2: Added another question.
I'll look at my rage bar see if I can duplicate that. Adding more arrows should be fairly easy the code is already in place you just need to copy it to the bar section that you want it in. I don't use the focus cast bar atm but I'll look into it.
Report comment to moderator  
Reply With Quote
Unread 01-07-13, 12:00 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Originally Posted by lynce
how do i desaturate debuffs on target that are not my own? Also, how can i make it to show just two rows of debuffs?
I fixed the debuff coloring in this latest push. You can change the number of debuffs in the lib.lua file line 747.
Report comment to moderator  
Reply With Quote
Unread 01-06-13, 11:08 AM  
MiRai
A Warpwood Thunder Caller

Forum posts: 96
File comments: 104
Uploads: 0
Sauerkraut, in addition to the celebration of your return and the update to this layout, I do have a few questions/suggestions.

Power Bar Arrow Value:
As the behavior of the arrow stands right now it has a smooth motion when the player's power changes, but the actual power values jump from one to the next (e.g. 36 Rage jumps straight to 66 Rage). Is it possible to make the change in power values feel more fluid like the arrow itself?


Power Bar Arrow:
Would you perhaps entertain the idea of adding more power bar arrows to some of the other frames? If this isn't something you want to do with your layout, how would someone go about doing so? I see where you generate the power bar arrow in lib.lua, but I have no idea how it actually works. I would really like to see how the arrow looks on other frames in addition to just the player frame.


Focus Target Castbar:
After enabling the focus target castbar I noticed that it actually shows up a little after the cast begins. This was when I was just testing it out on myself while mounting. Is this typical focus target castbar behavior?

The other thing is that it when the cast is complete, the bar itself does not fade out nicely like the player/target/focus castbars do. I will continue looking through the code to see if I can see why this is, but figured I would ask here as well.


Thanks.

EDIT: Figured out one of my questions and removed it.
EDIT2: Added another question.
Last edited by MiRai : 01-06-13 at 01:09 PM.
Report comment to moderator  
Reply With Quote
Unread 01-05-13, 07:11 PM  
MiRai
A Warpwood Thunder Caller

Forum posts: 96
File comments: 104
Uploads: 0
Sauerkraut, you sexy son of a b...

Thank you for updating this layout. I had managed to put enough band-aids on it for MoP to keep it working on my Warrior, but was worried that w/o any real Lua knowledge my other characters were going to need a new set of unit frames.

Disaster averted.
Report comment to moderator  
Reply With Quote
Unread 01-02-13, 04:17 AM  
lynce
A Cyclonian
 
lynce's Avatar

Forum posts: 48
File comments: 92
Uploads: 0
how do i desaturate debuffs on target that are not my own? Also, how can i make it to show just two rows of debuffs?
Last edited by lynce : 01-02-13 at 07:40 AM.
Report comment to moderator  
Reply With Quote
Unread 12-26-12, 08:24 AM  
Blazingstorm
A Deviate Faerie Dragon
 
Blazingstorm's Avatar

Forum posts: 16
File comments: 23
Uploads: 0
Castbar Issue

I am getting the following error message when gathering the crops at the private farm. This is the same error I am getting with ouF_Karma. Unsure way, because I'm not having any other casting issues. If anyone has a quick fix for this, it would greatly be appreciated. Thanks

Code:
Message: Interface\AddOns\oUF_Fail\castbar.lua:70: attempt to perform arithmetic on field 'timeDiff' (a nil value)
Time: 12/26/12 09:13:47
Count: 1674
Stack: [C]: ?
Interface\AddOns\oUF_Fail\castbar.lua:70: in function <Interface\AddOns\oUF_Fail\castbar.lua:55>

Locals:
Report comment to moderator  
Reply With Quote
Unread 12-23-12, 09:35 AM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Originally Posted by Zellglas
Pls make a Masque Layout that match witch your buff Layout
Try Masque: Clean Icons Square
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: