BodyguardHealth
An AddOn that displays your bodyguard's current health in a frame on the screen.
Usage
Go grab your bodyguard and the healthframe will pop up! The frame can be unlocked and moved from the options.
Configuring
Run the /bgh options
command in-game to bring up the options window.
New in v2.0.0
Version 2.0.0 enables targeting of the bodyguard by clicking on the frame!
Bug reports and suggestions
It would be greatly appreciated if bug reports and feature suggestions were made on the GitHub project page rather than WowAce, as it gives a better overview for me when managing issues.
You can also fork the project and submit a pull request via GitHub (I probably won't accept code patch files submitted via WowAce, due to the extra overhead in implementing them compared to a PR on GitHub).
License
Copyright (c) 2014 by Adam Hellberg.
BodyguardHealth is licensed under the MIT License, see the LICENSE file for more information.
I just ran a few tests with only BodyguardHealth enabled, since the display is also hidden for me every time I log into a character.
• If I open the options panel and click Show Frame, it returns with all proper settings (I didn't use the % display, so didn't notice that).
• Lock Frame is checked on every log-in, whether I previously set it that way or not.
• If I un-check Lock Frame, the frame reappears. If I check Lock Frame, the frame disappears.
Fwiw, the first time I ran the addon, I saw no display at all, so I started "fresh" by hitting Reset Frame before doing anything else.
This is a great idea for an addon, btw, . It's something that Blizzard should have included themselves, but didn't... for some reason only they know. I hope these glitches are easy to fix!
Unsure what this could be. I'm assuming you logged out with the bodyguard out and the frame showing? What does the status say when you log out with the bodyguard out?
I haven't experienced the frame not re-showing after logging back in with a bodyguard out, but sometimes it can have issues re-appearing. For it to re-appear properly, the addon needs to be enabled when logging out (in order for it to save the state to SavedVariables) and it needs to have detected the bodyguard as being currently active (since it will save that current state to be read on the next login).
I had logged out with the frame showing in every case, since that was the goal.
HOWEVER... After a few more logouts and a game quit and restart, the frame displays fine. I'm a coder and tech myself, so I know not to install addons while WoW is running, and always quit the game properly (so info files write properly) . No crashes here for months. I honestly have no idea why it's working today and didn't 4 days ago. But it does. Even de-selecting Lock Frame and re-selecting it doesn't kill the frame as it did when first installed. Weird.
Hi there, please may I ask whether or not this got resolved in the end? I ask as I'm now getting the exact same problems (my frame settings resetting themselves, frame disappearing when I lock it, lock frame being automatically checked every time I log in). I have already uninstalled and reinstalled, it's still happening. Would also like to thank the author of this addon, I really can't understand why Blizzard didn't give us a bodyguard health bar. So thanks to the author for this great and really useful addon. Thank you.
I'd love to see a way to optionally show the current rep with the active bodyguard, under the health bar. I know it's easy enough to just open the reputation pane and look but I'm sure there are plenty of people out there who like actively watching the bar creep along (without just tracking it via WoW's interface).
No longer works for me either - tried reloading ui and get error message that scale must be >0. Had vanished from interface addons and /bgh does nothing
Is there any more detail from the scale error? Part of it could be the library needs refreshing, I'll push out an update to renew the version of the library packaged with the addon.
Version 2.3.0 should have an updated LibBodyguard-1.0 packaged, as well as updating the options to not allow the scale to be set to 0, let me know if this fixes the issues.
Still getting lua error when logging into a character:
Date: 2015-07-04 14:57:24
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\BodyguardHealth\frame.lua line 110:
BodyguardHealthFrame:SetScale(): Scale must be > 0
Debug:
[C]: SetScale()
BodyguardHealth\frame.lua:110: UpdateSettings()
BodyguardHealth\frame.lua:81:
BodyguardHealth\frame.lua:34
BodyguardHealth\frame.lua:285: SetMenu()
BodyguardHealth\main.lua:188: ?()
BodyguardHealth\main.lua:284:
BodyguardHealth\main.lua:282
Locals:
(*temporary) = BodyguardHealthFrame {
0 = <userdata>
statusLabel = <unnamed> {
}
healthBar = <unnamed> {
}
nameLabel = <unnamed> {
}
healthLabel = <unnamed> {
}
}
(*temporary) = 0
AddOns:
BodyguardHealth, vv2.3.0
Configator, v5.1.DEV.376(/embedded)
DataStore, vr54
DataStoreCharacters, vr33
DebugLib, v5.1.DEV.337(/embedded)
LibExtraTip, v5.12.DEV.363(/embedded)
Stubby, v5.21c.5521 (SanctimoniousSwamprat)
TipHelper, v5.12.DEV.351(/embedded)
BlizRuntimeLib_enUS v6.2.0.60200 <none>
(ck=7e6)
I pushed v2.3.1 which should fix this issue. Apparently the scale setting defaults to 0 even though it has a configured default value, and the API no longer accepts a value of 0 (I guess it would just treat it as 1 earlier).
This addon no longer works for me, even after re-installing.
Not even bringing up the bgh options.
Any errors? Make sure you have Lua errors enabled in the game options. It's also beneficial to install BugSack or a similar addon to make sure you catch errors that occur during game load.
It seems to be interferring with my ability to get the followers to join me and to dismiss them after the latest patch. The chat window won't open unless I disable the add on first.
Do you have the option enabled to suppress the bodyguard gossip unless a modifier is being pressed? If so, you need to hold that modifier key down while interacting with a bodyguard to make the gossip appear.
Ah ok, thank you. I didn't know what that option meant.
Is it possible to make the unit frame support mouseover macros? Would be nice to be able to heal my bodyguard without having to actually target her. That and the display of debuffs would be amazing to make it easier for cleansing.
I second this. Or be able to cast a spell on right click (kind of like like Healbot). That way we could heal them easily.
Not sure how flexible the macro system is with the target property. If you run:
/cast [@<name>] <spell>
Does that properly cast a spell on the bodyguard? (Replace <name> with bodyguard name and <spell> with a healing spell.
+1 for mouseover macro support.
Most of my healing spells are cast via macros of the form: /cast [@mouseover,help][] Heal
If this worked out of the box for BGH, it would be perfect for my needs.
Again, as I currently can't test things, I need to know whether the command /cast [@<bodyguard name>] <some spell> is able to cast a spell on the bodyguard, as this is the only way to achieve that.
It's not only crashing Titan Panle, it's crashing A LOT of other addons such as AskMrRobot, Prat, NeedToKnow, and many others.