Download
(23 Kb)
Download
Updated: 02-07-11 11:40 PM
Pictures
File Info
Updated:02-07-11 11:40 PM
Created:01-30-11 12:14 AM
Downloads:3,764
Favorites:12
MD5:
oUF BossBars
Version: 1.02
by: kameelyan [More]
This addon is just something I wanted to share.

It simply replaces Blizzard's Boss Frames (boss1-boss4) with some oUF frames.

It includes Boss HP as a %, Boss Mana/Power bar, Boss's Target, and Boss's PowerBarAlt value as a % (for Onyxia, etc.). Additionally, it'll also show a Boss Cast Bar over the Boss HP whenever a cast begins.

This addon is compatible with oUF 1.5.8 and above.

Changes in 1.02:
I removed the oUF core from the addon, as the latest release by Haste has everything this addon needs. Secondly, I created a media folder to store the textures in instead of relying on the sharedmedia addon.
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
1.01
2MB
kameelyan
02-05-11 03:18 AM
1.01
3kB
kameelyan
02-04-11 03:25 PM
1.01
3kB
kameelyan
02-04-11 08:21 AM
1.0
2MB
kameelyan
01-30-11 12:14 AM


Post A Reply Comment Options
Old 10-08-12, 07:11 AM  
zartok
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Thanks for the fix LokeTNV and thanks for the great addon kameelyan!
zartok is offline Report comment to moderator  
Reply With Quote
Old 09-27-12, 10:53 AM  
LokeTNV
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Fix for bug

i haven't done extensive tests on this yet though looking at one of the newer oUF layouts on here i determined that the tag syntax changed:

This is the old code (line 14 to line 33):
Code:
oUF.TagEvents['BossBars:altpower'] = 'UNIT_POWER'
oUF.Tags['BossBars:altpower'] = function(unit)
	local cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
	local max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
	if(max > 0 and not UnitIsDeadOrGhost(unit)) then
		return ("%s%%"):format(math.floor(cur/max*100+.5))
	else
		return ''
	end
end

oUF.TagEvents['BossBars:health'] = 'UNIT_HEALTH'
oUF.Tags['BossBars:health'] = function(unit)
		local m = UnitHealthMax(unit)
		if(m == 0) then
			return 0
		else
			return math.floor(UnitHealth(unit)/m*100+.5)
		end
end
What i changed it to:
Code:
oUF.Tags.Events['BossBars:altpower'] = 'UNIT_POWER'
oUF.Tags.Methods['BossBars:altpower'] = function(unit)
	local cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
	local max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
	if(max > 0 and not UnitIsDeadOrGhost(unit)) then
		return ("%s%%"):format(math.floor(cur/max*100+.5))
	else
		return ''
	end
end

oUF.Tags.Events['BossBars:health'] = 'UNIT_HEALTH'
oUF.Tags.Methods['BossBars:health'] = function(unit)
		local m = UnitHealthMax(unit)
		if(m == 0) then
			return 0
		else
			return math.floor(UnitHealth(unit)/m*100+.5)
		end
end
this removed the error on startup atleast
LokeTNV is offline Report comment to moderator  
Reply With Quote
Old 09-27-12, 07:44 AM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally Posted by And
With oUF 1.6.0 I get the following error, copied and paster grom BugGrabber:

["message"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: attempt to index field \"TagEvents\" (a nil value)",
["time"] = "2012/09/25 12:05:33",
["locals"] = "",
["stack"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: in main chunk"

I still have to enter an instance, so I'm not sure if the addon is still working.
Thank you!
Sorry gents, I quit WoW over a year ago and have no plans on updating this addon myself. However, if someone can post the fix to the code, I'll update a new version of it for use.

Sorry for the inconvenience, and thanks for using the addon while I was playing.
kameelyan is offline Report comment to moderator  
Reply With Quote
Old 09-26-12, 12:54 AM  
And
A Kobold Labourer

Forum posts: 0
File comments: 52
Uploads: 0
With oUF 1.6.0 I get the following error, copied and paster grom BugGrabber:

["message"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: attempt to index field \"TagEvents\" (a nil value)",
["time"] = "2012/09/25 12:05:33",
["locals"] = "",
["stack"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: in main chunk"

I still have to enter an instance, so I'm not sure if the addon is still working.
Thank you!
And is offline Report comment to moderator  
Reply With Quote
Old 08-31-12, 10:43 PM  
zartok
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Error from 5.0.4 update

Get this error on login from oUF_BossBars. It still seems to work, but any help with this error would be greatly apreciated.

Date: 2012-08-31 23:40:16
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\oUF_BossBars\oUF_BossBars.lua line 14:
attempt to index field 'TagEvents' (a nil value)
Debug:
(tail call): ?
[C]: ?
oUF_BossBars\oUF_BossBars.lua:14: in main chunk
Locals:
None
AddOns:
Swatter, v4.0.1 (<%codename%>)
NPCScan, v5.0.0.1
NPCScanOverlay, v5.0.0.1
NPCScanOverlayBroker, v1.2.0
AckisRecipeList, v2.4
ACP, v3.4
Align, v
Archy, v1.8.26_beta
AtlasLootLoader, vv7.00.01
AucAdvanced, v5.14.5335 (KowariOnCrutches)
AucFilterBasic, v5.14.5335 (KowariOnCrutches)
AucFilterOutlier, v5.14.5335.5335(5.14/embedded)
AucMatchUndercut, v5.14.5335.5225(5.14/embedded)
AucStatHistogram, v5.14.5335 (KowariOnCrutches)
AucStatiLevel, v5.14.5335 (KowariOnCrutches)
AucStatPurchased, v5.14.5335 (KowariOnCrutches)
AucStatSales, v5.14.5335.5335(5.14/embedded)
AucStatSimple, v5.14.5335 (KowariOnCrutches)
AucStatStdDev, v5.14.5335 (KowariOnCrutches)
AucStatWOWEcon, v5.14.5335.5335(5.14/embedded)
AucUtilAHWindowControl, v5.14.5335.5133(5.14/embedded)
AucUtilAppraiser, v5.14.5335.5335(5.14/embedded)
AucUtilAskPrice, v5.14.5335.5160(5.14/embedded)
AucUtilAutoMagic, v5.14.5335.5335(5.14/embedded)
AucUtilCompactUI, v5.14.5335.5335(5.14/embedded)
AucUtilEasyBuyout, v5.14.5335.5238(5.14/embedded)
AucUtilFixAH, v5.14.5335 (KowariOnCrutches)
AucUtilItemSuggest, v5.14.5335.5335(5.14/embedded)
AucUtilPriceLevel, v5.14.5335.5237(5.14/embedded)
AucUtilScanButton, v5.14.5335.5335(5.14/embedded)
AucUtilScanFinish, v5.14.5335.5153(5.14/embedded)
AucUtilScanProgress, v5.14.5335.4979(5.14/embedded)
AucUtilScanStart, v5.14.5335.5153(5.14/embedded)
AucUtilSearchUI, v5.14.5335.5335(5.14/embedded)
AucUtilSimpleAuction, v5.14.5335.5208(5.14/embedded)
AucUtilVendMarkup, v5.14.5335.4828(5.14/embedded)
Babylonian, v5.1.DEV.312(/embedded)
BagBrother, v
Bagnon, v5.0.3
Bazooka, vv2.1.5
BeanCounter, v5.14.5335 (KowariOnCrutches)
Coconuts, v3.0.257
ColorPickerPlus, v
CombustionHelper, v3.2
Configator, v5.1.DEV.330(/embedded)
DBMArchaeology, v
DBMCore, v
DebugLib, v5.1.DEV.312(/embedded)
Decursive, v2.7.1
Dominos, v5.0.9
DominosRoll, v
Enchantrix, v5.14.5335 (KowariOnCrutches)
EnchantrixBarker, v5.14.5335 (KowariOnCrutches)
FactionAddict, v1.06
FishingBuddy, v1.0.9a
Gatherer, v4.0.1
Gnosis, vv3.12
KuiNameplates, v
LibExtraTip, v5.12.DEV.324(/embedded)
MikScrollingBattleText, v5.7.119
MiniPet, v5.1.258
Omen, v3.1.7
OmniCC, v5.0.1
oUF, v1.6.0
oUFBossBars, v1.02
Outfitter, v5.5.2
Overachiever, v0.66
PocketPlot, v2.14.2
Poisonous, v5.0.1
Postal, v3.5.0
Prat30, v3.5
Prat30HighCPUUsageModules, v
Prat30Libraries, v
Rarity, v1.0
RarityOptions, v
Recount, v
SilverDragon, vv2.6.3
SocialState, v5.0-Release1
SpellStealer, v1.79
Stubby, v5.14.5335 (KowariOnCrutches)
TipHelper, v5.12.DEV.315(/embedded)
TipTop, v2.11.1
WhoFramedWatcherWabbit, v1.7.4
WoWDBProfiler, v
XPBarNone, vv1.5.9
BlizRuntimeLib_enUS v5.0.4.50001 <us>
(ck=aee)
zartok is offline Report comment to moderator  
Reply With Quote
Old 04-16-11, 01:52 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Originally posted by KiLLMasTer
ok im trying to move this with oUF_MovableFrames and i cant find it in the list?
type /omf and see if it shows up, if it doesn't it's not supported
10leej is offline Report comment to moderator  
Reply With Quote
Old 03-24-11, 10:43 AM  
KiLLMasTer
A Murloc Raider
 
KiLLMasTer's Avatar

Forum posts: 8
File comments: 48
Uploads: 0
ok im trying to move this with oUF_MovableFrames and i cant find it in the list?
__________________
My Toons
KiLLMasTer is offline Report comment to moderator  
Reply With Quote
Old 03-07-11, 10:56 PM  
strifebloom
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Originally posted by kameelyan
They way oUF works is that it hides any bars that are Blizzard bars as long as there is a "spawned" bar in some addon. It's possible that something in the oUF core is causing this to happen, but no where in this addon is it specifically referencing the player's power bar alt frame/bar.
if you take a look at altpowerbar.lua in the oUF core, it does seem to hide the frame if there is an 'altpowerbar' spawned in the layout. the workaround for this is to have either a separate addon for a custom alternate power bar (as the CustomPlayerPowerBarAlt addon) or to have a separate ouf layout that spawns the altpowerbar for the player unit.

Code:
local Enable = function(self, unit)
	local altpowerbar = self.AltPowerBar
	if(altpowerbar) then
		altpowerbar.__owner = self
		altpowerbar.ForceUpdate = ForceUpdate

		self:RegisterEvent('UNIT_POWER_BAR_SHOW', Toggler)
		self:RegisterEvent('UNIT_POWER_BAR_HIDE', Toggler)

		altpowerbar:Hide()

		PlayerPowerBarAlt:UnregisterEvent'UNIT_POWER_BAR_SHOW'
		PlayerPowerBarAlt:UnregisterEvent'UNIT_POWER_BAR_HIDE'
		PlayerPowerBarAlt:UnregisterEvent'PLAYER_ENTERING_WORLD'

		return true
	end
end

local Disable = function(self, unit)
	local altpowerbar = self.AltPowerBar
	if(altpowerbar) then
		self:UnregisterEvent('UNIT_POWER_BAR_SHOW', Toggler)
		self:UnregisterEvent('UNIT_POWER_BAR_HIDE', Toggler)

		PlayerPowerBarAlt:RegisterEvent'UNIT_POWER_BAR_SHOW'
		PlayerPowerBarAlt:RegisterEvent'UNIT_POWER_BAR_HIDE'
		PlayerPowerBarAlt:RegisterEvent'PLAYER_ENTERING_WORLD'
	end
end
strifebloom is offline Report comment to moderator  
Reply With Quote
Old 02-20-11, 11:01 PM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally posted by kirafishy
I move the bossbars by oUF_MovableFrames and don't edit oUF_BossBars.lua.
when I disabled oUF_BossBars or deleted "alt power bar part" in the lua file, my own PowerBarAlt appeared again.
the addon "CustomPlayerPowerBarAlt" creates an own PlayerPowerBarAlt frame instead of the original one and i can see it. Maybe the original frame is hidden by some code.
I tested it at The Maw of Madness in Twilight Highland
They way oUF works is that it hides any bars that are Blizzard bars as long as there is a "spawned" bar in some addon. It's possible that something in the oUF core is causing this to happen, but no where in this addon is it specifically referencing the player's power bar alt frame/bar.
kameelyan is offline Report comment to moderator  
Reply With Quote
Old 02-18-11, 02:22 PM  
kirafishy
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
Originally posted by kameelyan
I'm not having any issue with this. Are you sure you didn't leave one instance of the bossbars referencing "player" as you were moving it around? That would cause what you're describing.
I move the bossbars by oUF_MovableFrames and don't edit oUF_BossBars.lua.
when I disabled oUF_BossBars or deleted "alt power bar part" in the lua file, my own PowerBarAlt appeared again.
the addon "CustomPlayerPowerBarAlt" creates an own PlayerPowerBarAlt frame instead of the original one and i can see it. Maybe the original frame is hidden by some code.
I tested it at The Maw of Madness in Twilight Highland
kirafishy is offline Report comment to moderator  
Reply With Quote
Old 02-17-11, 09:12 AM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally posted by kirafishy
i can't see my own PowerBarAlt after using oUF_BossBars
I'm not having any issue with this. Are you sure you didn't leave one instance of the bossbars referencing "player" as you were moving it around? That would cause what you're describing.
kameelyan is offline Report comment to moderator  
Reply With Quote
Old 02-17-11, 01:46 AM  
kirafishy
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
i can't see my own PowerBarAlt after using oUF_BossBars
kirafishy is offline Report comment to moderator  
Reply With Quote
Old 02-07-11, 09:41 AM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally posted by kirafishy
hp percent text don't refresh until you target them
Thanks, I'm aware of this. I'm still not sure if it's a product of this addon, or the latest version of oUF. I'll be looking into this sometime this week, as long as work let's me off my chains at some point.

Latest version of oUF fixes this issue.
Last edited by kameelyan : 02-08-11 at 12:11 AM.
kameelyan is offline Report comment to moderator  
Reply With Quote
Old 02-07-11, 06:14 AM  
kirafishy
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
hp percent text don't refresh until you target them
Last edited by kirafishy : 02-07-11 at 06:15 AM.
kirafishy is offline Report comment to moderator  
Reply With Quote
Old 02-05-11, 03:19 AM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally posted by Ellute
Thanks for the reply. The new file you uploaded only has the .lua and .toc file, was this intended?
Ah crap, sorry about that. They're there now. There is a newer version of oUF Core, I just haven't gotten around to downloading it yet. It should be compatible with these boss frames though.
kameelyan is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: