Quantcast
Download
(16 Kb)
Download
Updated: 10/02/19 04:10 PM
Pictures
File Info
Compatibility:
Dragonhold (5.2.5)
Updated:10/02/19 04:10 PM
Created:12/31/17 09:00 AM
Monthly downloads:684
Total downloads:24,947
Favorites:64
MD5:
Categories:Unit Mods, Casting Bars, Cooldowns, Sorcerer, Graphic UI Mods, Info, Plug-in Bars, Utility Mods
5.2.5
Pet Health  Popular! (More than 5000 hits)
Version: 1.07
by: goobsnake [More]



This is a continuation of Scootworks Pet Health add-on, with his permission and transfer of author status to me.

Current Release - 1.07 Changes:
  • Implemented: The pet health window is now able to be locked or unlocked in place
  • Minor Change: Removed LibStub from being an optional dependency, this lib should be bundled in the LibSlashCommander or LibAddonMenu library files


Previous Release - 1.06 Changes:
  • Implemented: Bumped API version to 100028 & 100029
  • Bug Fix: Believe I've fixed the Lua error occurring when a pet has leveled up.


OPTIONS

**** LibSlashCommander library required for slash commands and LibAddonMenu is required for UI options ****
  • /pethealthcombat - enables/disables visibility of the health bar only during combat (default off = show in & out of combat)
  • /pethealthlabels - enables/disables pet names on health bar (default on)
  • /pethealthvalues - enables/disables numbers on health bar (default on)
  • /pethealthbackground - enables/disables background (default on)
  • /pethealthunsummonedalerts- Displays on-screen alerts when a pet has died or been unsummoned (default off)
  • /pethealthwarnhealth - Must enter a number (0 thru 99) after the slash command - Displays an onscreen warning once the pet's health is below the chosen number. (default 0)
  • /pethealthwarnshield - Must enter a number (0 thru 99) after the slash command - Displays an onscreen warning once the pet's shield is below the chosen number. (default 0)
  • /pethealthcombathealth - Must enter a number (0 thru 99) after the slash command and the /pethealthcombat setting must be enabled - Has the pet health bar's only display when the only in combat setting is enabled and the pet's health has reached the chosen number. (default 0)
  • /pethealthsettings - Displays the addon settings UI screen

I've been playing ESO since beta and I can be reached in-game via @snakebitten on the NA megaserver. Feel free to message me or add to friends. I'll also take donations via in-game if you feel the work was worth it, otherwise I'm updating this add-on for my own use as well. This page's paypal donations will continue to go to Scootworks.

My github page for this add-on:

https://github.com/goobsnake/Pet-Health


Donations:


Current Release - 1.07 Changes:
  • Implemented: The pet health window is now able to be locked or unlocked in place
  • Minor Change: Removed LibStub from being an optional dependency, this lib should be bundled in the LibSlashCommander or LibAddonMenu library files


1.06 Changes:
  • Implemented: Bumped API version to 100028 & 100029
  • Bug Fix: Believe I've fixed the Lua error occurring when a pet has leveled up.


1.05 Changes:
  • Implemented: Bumped API version to 100026
  • Bug Fix: Fixed a crash when "allow out of date addon's" is not checked and certain library's are out of date.

1.04 Changes:
  • Implemented: Account wide settings are now available via the addon menu
  • Implemented: New option to toggle Pet health bars to look like ZOS's standard Player health bars. Low health values will visually pulse the Pet health bar. - Thanks chaoticvoid!

    *New feature only available in the addon menu, no slash command. There may be a few visual oddities with low Pet health & full shields that still need to be refined.
  • Implemented: Russia locale/translation is now available - Thanks SheogorathGR!

1.03 Changes:
  • Implemented: Onscreen pet unsummoned or killed alerts via on/off toggle
  • Implemented: Pet health percentage for the only in combat setting (Configurable)

1.02 Changes:
  • Removed: Libs are now optional and a separate download for you to maintain, they are no longer included with this addon. The addon will continue to work with default settings if no libs are found, see read first section for details
  • Implemented: Addon menu settings UI is now functional thanks to Baertram - Can be accessed via the addon settings area or /pethealthsettings
  • Implemented: Numerous locale additions, changes and general code cleanup thanks to Baertram
  • Implemented: Onscreen low health alert for pets (Configurable)
  • Implemented: Onscreen low shield alert for pets (Configurable)
  • Fixed an issue: Random error caused by "updatepetstats attempt to index a nil value" should be fixed

1.01 Changes:
  • Fixed an issue: Disabled excessive chat messages until I've had more time to sort them out

1.00 Changes:
  • Updated API level to 100025 / Murkmire
  • Changed: This add-on is now simply called "Pet Health" so the saved variables file will be recreated. The in-game client will see this add-on as a new/fresh add-on, so any prior Scootworks Pet Health add-ons will need to be removed/uninstalled. All prior settings and window frame placement will get reverted to default for the first install then be saved & remembered afterwards
  • Changed: Numerous slash command chat messages were altered slightly
  • Changed: /pethealthdebug slash command is no longer available by default
  • Removed: Dependency on LibScootworksFunctions
Archived Files (8)
File Name
Version
Size
Uploader
Date
1.06
16kB
goobsnake
09/25/19 05:01 PM
1.05
16kB
goobsnake
02/25/19 10:44 AM
1.04
16kB
goobsnake
11/29/18 04:57 PM
1.03
12kB
goobsnake
11/06/18 08:43 PM
1.02
11kB
goobsnake
11/05/18 07:50 PM
1.01
63kB
goobsnake
11/01/18 08:59 PM
1.00
63kB
goobsnake
10/31/18 12:49 PM
15
66kB
Scootworks
08/14/18 10:16 AM


Post A Reply Comment Options
Unread Yesterday, 09:43 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2586
File comments: 2993
Uploads: 57
Okay, I miss-read the OptionalDependsOn, my fault. I thought the 2 libs were DependsOn.

Another thing I noticed, just a visual bug:
If I logout the pet warning tells me the health is low as they get dismissed manually.
Same happens if I dismiss them manually by right clicking the buff on my character or using keybindings to do so.

Maybe one could suppress the warnings there?
Report comment to moderator  
Reply With Quote
Unread 10/02/19, 09:02 PM  
goobsnake
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 66
Uploads: 1
Originally Posted by Baertram
Well thanks, but you only read the half as it seems

You forgot to change the load of the libraries from currently using LibStub to not using / only using it additionally if no global variable exists in the library, I had described in my post at


-> See file PetHealth.lua, lines 1007 ff.
The global variables and code you provided only worked if LAM2 and LSC were both installed. If either lib was missing, I would get lua errors. LAM2 or LSC should be completely optional for increased functionality. If neither are installed the addon should still work in a limited function.

I omitted your code change for now since if I was getting Lua errors in certain use cases, other users would definitely get them too. I appreciate the assistance, just didn't want to make those changes until I had more time to see why I was getting Lua errors.
Report comment to moderator  
Reply With Quote
Unread 10/02/19, 04:18 PM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2586
File comments: 2993
Uploads: 57
Well thanks, but you only read the half as it seems

You forgot to change the load of the libraries from currently using LibStub to not using / only using it additionally if no global variable exists in the library, I had described in my post at
And it could be made easier and use the global variables LibStub, LibAddonMenu2 and LibSlashCommander instead so LibStub is not used if not needed or not loaded:
-> See file PetHealth.lua, lines 1007 ff.


Originally Posted by goobsnake
Originally Posted by Baertram
Hey goobsnake,

thanks for maiontaning this addon.
Please read this and possibly change your addon accordingly /the global library and LibStub removal part especially):
https://www.esoui.com/forums/showthread.php?t=8765

In your txt file please remove LibStub from the optional depends on tag as LibStub should ONLY be added to libraries as DependsOn or OptionalDependsOn, but not in the addons itsself!
Code:
## OptionalDependsOn: LibSlashCommander LibAddonMenu-2.0
No problem and I'll be implementing your suggestions in the next update I'll post soon, along with a few other enhancements.
Last edited by Baertram : 10/02/19 at 04:19 PM.
Report comment to moderator  
Reply With Quote
Unread 10/02/19, 11:32 AM  
goobsnake
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 66
Uploads: 1
Originally Posted by Baertram
Hey goobsnake,

thanks for maiontaning this addon.
Please read this and possibly change your addon accordingly /the global library and LibStub removal part especially):
https://www.esoui.com/forums/showthread.php?t=8765

In your txt file please remove LibStub from the optional depends on tag as LibStub should ONLY be added to libraries as DependsOn or OptionalDependsOn, but not in the addons itsself!
Code:
## OptionalDependsOn: LibSlashCommander LibAddonMenu-2.0
No problem and I'll be implementing your suggestions in the next update I'll post soon, along with a few other enhancements.
Report comment to moderator  
Reply With Quote
Unread 09/27/19, 08:04 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2586
File comments: 2993
Uploads: 57
Hey goobsnake,

thanks for maiontaning this addon.
Please read this and possibly change your addon accordingly /the global library and LibStub removal part especially):
https://www.esoui.com/forums/showthread.php?t=8765

In your txt file please remove LibStub from the optional depends on tag as LibStub should ONLY be added to libraries as DependsOn or OptionalDependsOn, but not in the addons itsself!
Code:
## OptionalDependsOn: LibSlashCommander LibAddonMenu-2.0

In the code of the settingsmenu this is the old code:
Lua Code:
  1. local isStubActive = CheckAddon('LibStub')
  2.     if isStubActive then
  3.         local isLAMActive = CheckAddon('LibAddonMenu-2.0')
  4.         local isLSCActive = CheckAddon('LibSlashCommander')
  5.         if isLAMActive then
  6.         --Build the LAM addon menu if the library LibAddonMenu-2.0 was found loaded properly
  7.             PetHealth.LAM = LibStub("LibAddonMenu-2.0")
  8.             PetHealth.buildLAMAddonMenu()
  9.         end
  10.         if isLSCActive then
  11.         --Build the slash commands if the library LibSlashCommander was found loaded properly
  12.             LSC = LibStub("LibSlashCommander")
  13.             SlashCommands()
  14.         end
  15.     end

And it could be made easier and use the global variables LibStub, LibAddonMenu2 and LibSlashCommander instead so LibStub is not used if not needed or not loaded:
Lua Code:
  1. if LibAddonMenu2 then
  2.     --Build the LAM addon menu if the library LibAddonMenu-2.0 was found loaded properly
  3.         PetHealth.LAM = LibAddonMenu2
  4.     end
  5.     if PetHealth.LAM == nil and LibStub then
  6.         PetHealth.LAM = LibStub("LibAddonMenu-2.0")
  7.     end
  8.     if PetHealth.LAM ~= nil then
  9.         PetHealth.buildLAMAddonMenu()
  10.     end
  11.     --Build the slash commands if the library LibSlashCommander was found loaded properly
  12.     if LibSlashCommander then
  13.         LSC = LibSlashCommander
  14.     end
  15.     if LSC == nil and LibStub then
  16.         LSC = LibStub("LibSlashCommander")
  17.     end
  18.     if LSC ~= nil then
  19.         SlashCommands()
  20.     end
Last edited by Baertram : 09/27/19 at 08:06 AM.
Report comment to moderator  
Reply With Quote
Unread 09/15/19, 05:04 PM  
goobsnake
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 66
Uploads: 1
Re: Re: Re: UI Error...

Originally Posted by dorrson
Originally Posted by dorrson
Originally Posted by dorrson
I've been receiving the following error recently...

user:/AddOns/PetHealth/PetHealth.lua:394: attempt to index a nil value
stack traceback:
user:/AddOns/PetHealth/PetHealth.lua:394: in function 'UpdatePetStats'
user:/AddOns/PetHealth/PetHealth.lua:415: in function 'func'
EsoUI/Libraries/Globals/globalapi.lua:207: in function '(anonymous)'

I noticed a couple other people posting about it, seems that it occurred this time when my Volatile Familiar appeared to go to 0 health, but is in fact still alive.
It appears to occur when one of the pets achieves a new level.
Just confirmed, my Twilight Matriarch reached level 3 and I received the error when I had both the Volatile Familiar and Twilight Matriarch summoned.

I'll take a look at this and a few other bugs when the PTS update drops on the server tomorrow. If no significant updates are needed for the upcoming ESO release, I'll release a patch for this soon. Otherwise if there are significant changes needed, there may not be an update for this add-on until the next big ESO release is out (~6 weeks or so).
Report comment to moderator  
Reply With Quote
Unread 09/15/19, 03:33 PM  
dorrson

Forum posts: 0
File comments: 19
Uploads: 0
Re: Re: UI Error...

Originally Posted by dorrson
Originally Posted by dorrson
I've been receiving the following error recently...

user:/AddOns/PetHealth/PetHealth.lua:394: attempt to index a nil value
stack traceback:
user:/AddOns/PetHealth/PetHealth.lua:394: in function 'UpdatePetStats'
user:/AddOns/PetHealth/PetHealth.lua:415: in function 'func'
EsoUI/Libraries/Globals/globalapi.lua:207: in function '(anonymous)'

I noticed a couple other people posting about it, seems that it occurred this time when my Volatile Familiar appeared to go to 0 health, but is in fact still alive.
It appears to occur when one of the pets achieves a new level.
Just confirmed, my Twilight Matriarch reached level 3 and I received the error when I had both the Volatile Familiar and Twilight Matriarch summoned.
Report comment to moderator  
Reply With Quote
Unread 09/15/19, 09:18 AM  
dorrson

Forum posts: 0
File comments: 19
Uploads: 0
Re: UI Error...

Originally Posted by dorrson
I've been receiving the following error recently...

user:/AddOns/PetHealth/PetHealth.lua:394: attempt to index a nil value
stack traceback:
user:/AddOns/PetHealth/PetHealth.lua:394: in function 'UpdatePetStats'
user:/AddOns/PetHealth/PetHealth.lua:415: in function 'func'
EsoUI/Libraries/Globals/globalapi.lua:207: in function '(anonymous)'

I noticed a couple other people posting about it, seems that it occurred this time when my Volatile Familiar appeared to go to 0 health, but is in fact still alive.
It appears to occur when one of the pets achieves a new level.
Report comment to moderator  
Reply With Quote
Unread 09/15/19, 09:13 AM  
dorrson

Forum posts: 0
File comments: 19
Uploads: 0
UI Error...

I've been receiving the following error recently...

user:/AddOns/PetHealth/PetHealth.lua:394: attempt to index a nil value
stack traceback:
user:/AddOns/PetHealth/PetHealth.lua:394: in function 'UpdatePetStats'
user:/AddOns/PetHealth/PetHealth.lua:415: in function 'func'
EsoUI/Libraries/Globals/globalapi.lua:207: in function '(anonymous)'

I noticed a couple other people posting about it, seems that it occurred this time when my Volatile Familiar appeared to go to 0 health, but is in fact still alive.
Report comment to moderator  
Reply With Quote
Unread 08/22/19, 04:42 AM  
Noxifer

Forum posts: 1
File comments: 43
Uploads: 0
Don't know how I'd manage without this AddOn xD

One issue, though... Lately (only noticed it today, but then I haven't really been out much in combat since Scalebreaker due to temporarily limited playtime) when one of my pets "fakes" 0 HP (as in I get the low-health warning and the HP bar shows up as empty, even if the pet in question is very much alive and kicking) I also get up the script error window, which is somewhat annoying mid-combat ^^;

Error message:


I guess it's the same error that most AddOns ran into with the Scalebreaker update. Or at least the same source ^^;

Edit: Hmm... Haven't run into the script error message lately. So I suppose it could have been caused by a conflicting AddOn that since then has been updated. Or it was a glitch in the main ESO system that's been fixed by one of their updates. I've also run into a lot less "fake 0 HP" instances (so actual low health messages are starting to outnumber them), and even when I get a fake low health warning the HP bar only turns empty half the time, usually in combination with my other pet (2-pet sorc) dying, and when I resummon that other pet the "fake empty" bar returns to normal.
Last edited by Noxifer : 08/27/19 at 08:43 AM.
Report comment to moderator  
Reply With Quote
Unread 06/18/19, 05:41 PM  
goobsnake
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 66
Uploads: 1
Originally Posted by Bonnybones
I love this addon, thx a lot.
Since the Release of Elsweyr, there is a bug: I'm playing a PetSorc, and when a pet has a level-up, I get an error-message and the pet healthbar is "empty", like the pet is dead.
Can you fix this, or will you update this addon to 5.05?

My English is bad, but I hope, you can understand what I mean.
I understand and I'll look into this for the next update, just no ETA.
Report comment to moderator  
Reply With Quote
Unread 06/18/19, 05:41 PM  
goobsnake
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 66
Uploads: 1
Originally Posted by babylon
I have it installed (can see it in addons list as well in Minion and in addons folder), but none of the slash commands work, says they're invalid, and so can't set it up. Any ideas?
Not sure when it got removed but I've updated the addon page with the required lib files that you need to download separately for the slash commands or ingame UI options to function.
Report comment to moderator  
Reply With Quote
Unread 06/09/19, 07:16 AM  
babylon

Forum posts: 7
File comments: 366
Uploads: 0
I have it installed (can see it in addons list as well in Minion and in addons folder), but none of the slash commands work, says they're invalid, and so can't set it up. Any ideas?
Report comment to moderator  
Reply With Quote
Unread 06/05/19, 10:59 PM  
Bonnybones
 
Bonnybones's Avatar

Forum posts: 0
File comments: 2
Uploads: 0
I love this addon, thx a lot.
Since the Release of Elsweyr, there is a bug: I'm playing a PetSorc, and when a pet has a level-up, I get an error-message and the pet healthbar is "empty", like the pet is dead.
Can you fix this, or will you update this addon to 5.05?

My English is bad, but I hope, you can understand what I mean.
Report comment to moderator  
Reply With Quote
Unread 03/10/19, 09:50 AM  
boxanata

Forum posts: 0
File comments: 15
Uploads: 0
Nice addon! It would be extra nice if we could have the option to disable health bars & just have unsummoned alerts active for when we're not doing hard content. Anyway, thanks for this addon!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.