PDA

View Full Version : Addon: JDHP


Jerek
03-28-2005, 03:37 PM
Below is the text from the readme, modified to use BB Code and include a file link and preview.

JDHP Release 4.1
Jerek Dain's HP Display Mod
http://www.jerekdain.com/downloads/JDHP4.1.zip

Author: Jerek Dain
Email: [removed when posted publicly]
Website: http://www.jerekdain.com/

Introduction

*** If you don't use Khaos (part of Cosmos 2) type /jdhp in-game for a list of commands! ***

JDHP displays player health, mana/energy/rage, charges (when applicable), and exp info. Also colors player name when auto-attack is enabled, and colors health bar based on health percentage. Health and mana/energy/rage can be displayed as a percentile.

All options can be toggled via a keybinding or slash command. Type /jdhp for a list of commands. If you do not use Khaos then options changed with the key bindings and slash commands will save.

If you use Khaos then options changed with key bindings or slash commands will be temporary, make permanent option changes with the Khaos Control Panel. All options are listed under JDHP in the Frames category.

The original code for JDHP is based off of Gypsy_PlayerFrame with the author's permission, though now only about 10% of the original code remains, maybe less. Much thanks to Morquan and Yoyo for making a mod I could learn from and letting me base my mod on theirs.

Change Log

RELEASE 4.1 - Wednesday, September 21, 2005
The EXP/TNL display is now automatically moved to below the pet bar if you have a pet (and moved back if you don't), and automatically slides to the right along with your pet's buffs.
The /tnl command can now send to say, party, raid or guild chat. Type /tnl help for more info.
The /tnl command now displays what level you're working towards.
RELEASE 4 - Sunday, September 4, 2005
Updated to work with WoW patch 1.7.
Added support for Khaos, the control panel of Cosmos 2! If you use the Khaos control panel only options set through Khaos will save between sessions, and options changed with the key bindings or slash commands will be temporary. For people not using Khaos the key bindings and slash commands are still a permanent way to change your options.
Added option to display EXP and TNL in terms of bars instead of actual values. (/jdhpbarexp)
Added option to automatically hide EXP and TNL when on level 60 characters. (/jdhphideexp)
Added options to hide health, mana/energy/rage and charges text. (/jdhphealth, /jdhpmana and /jdhpcharges)
Added command to report EXP needed to level in party chat, as well as rested amount. Always reported in terms of bars. (/tnl)
Old coloration commands /jdhphealth and /jdhpmana renamed to /jdhpcolorhealth and /jdhpcolormana
Shapeshifting quirk fixed! (Through a cheap workaround, but whatever.) When returning to caster form your mana display will now properly update immediately.

*** Behind the scenes changes ***

Renamed almost all functions and many variables.
Major code streamlining, including fixing incompatibilities with Archeologist while giving JDHP much simpler code.
Dropped a couple old unused functions.
Moved more of the displayed text to the localization file. If anyone wants to translate JDHP to their language, please contact me at jerek@deciv.com.
RELEASE 3 - Wednesday, July 13, 2005
Updated to work with WoW patch 1.6.
Added "nopatch" file to make sure Cosmos doesn't delete JDHP.
Added Display Missing option for health and mana/energy/rage.
Fixed a rare but sometimes consistent bug involving a "find" error with the HP code. This fix was already in place with mana, it was just for some reason much rarer with HP, so it didn't get fixed there. Odd.
Greatly improved checks for whether the player was alive, dead or a ghost/whisp and improved handling of those times.
RELEASE 2 - Wednesday, April 20, 2005
Fixed charges display (whoops, didn't know it was broken in Release 1!), and improved it, and added the PLAYER_TARGET_CHANGED event for charge checking.
Fixed an issue where sometimes upon a character's death the health and mana/energy/rage values wouldn't update and still appear as if the character was alive.
Made JDHP usable without Cosmos.
Slash commands are back.
Removed the tooltip that popped up when mousing over the Rested EXP. It was only in the right spot under specific circumstances, and its usefulness was debatable anyway.
RELEASE 1 - Sunday, March 27, 2005
First release.
Planned Improvements
Remove option to move EXP/TNL to below pet bar, and make this movement automatic when the player summons/dismisses their pet. I've already started implimenting it, but its functionality will remain disabled until I can work out the kinks.
Option to move target portrait over to make room for JDHP with "Display maxes" on.
Option to display info next to party member portraits. Also on drag-off raid panels eventually.
Preview

Attached is a preview image of my level 27 Gnome Mage (in her pimpin' green pointy wizard hat, and with full rested experience) with the following options:

Display health: On
Display mana: On
Display maxes: Off
Display missing amounts: Off
Health as a percentile: Off
Mana as a percentile: Off
Display EXP: On (EXP in parenthesis is EXP to be gained from Rested state)
Display TNL: On (TNL is EXP To Next Level)
Display EXP/TNL in terms of bars: Off
Color player name when in combat: On (not in combat in preview)
Color health based on percentage: On
Color mana/energy/rage based on type: On
Color health bar based on percentage: On

http://www.jerekdain.com/images/jdhp.jpg

MorphiusFaydal
03-28-2005, 04:32 PM
Not bad lookin.

Can you move the XPbar as well, or will it just display text?

Jerek
03-28-2005, 04:44 PM
What do you mean move the XPbar? You mean the experience bar on the bottom of the screen that's part of the main bar? This mod only modifies the PlayerFrame.

If you're refering to the configurability of the EXP and TNL displays beneath the PlayerFrame, either of those can be disabled (when EXP is disabled and TNL still enabled TNL will take EXP's place, and rested exp will be displayed next to it as it was next to EXP) or move them both beneath where the pet bar is. There is a minor issue here where pet buffs will cover the EXP and TNL displays. Haven't come up with a satisfying way to deal with that yet.

MorphiusFaydal
03-28-2005, 04:53 PM
Yes, move the XP bar at the bottom of the screen, somewhat like PlayerXPBar does.. couple its functionality with yours, and that would be killer.

Jerek
03-28-2005, 05:11 PM
Well, JDHP only modifies the PlayerFrame... Where would you be moving the Experience Bar to?

Jerek
03-29-2005, 12:26 AM
Now I see. I looked at the mod you mentioned and see you mean you want me to hide the Blizzard XP Bar. That's a good idea, perhaps I'll have another release of JDHP that's Cosmos compatible after all.

Edit: Yeah, I definately want to do that. I'll get to work on it late tonight or tomorrow.

Also, I've been thinking about it, and I might be able to keep Cosmos compatibility when making JDHP work with my own mod suite. We'll see, my mod suite's core functionality still isn't in place.

Jerek
04-22-2005, 04:37 AM
Release 2 is out. You can download it from the download link in the first post.

RELEASE 2 - Wednesday, April 20, 2005 Fixed charges display (whoops, didn't know it was broken in Release 1!), and improved it, and added the PLAYER_TARGET_CHANGED event for charge checking.
Fixed an issue where sometimes upon a character's death the health and mana/energy/rage values wouldn't update and still appear as if the character was alive.
Made JDHP usable without Cosmos.
Slash commands are back.
Removed the tooltip that popped up when mousing over the Rested EXP. It was only in the right spot under specific circumstances, and its usefulness was debatable anyway.

Jerek
06-07-2005, 08:06 PM
New version uploaded to work with the 1.5 patch.

Jerek
07-13-2005, 08:37 PM
Release 3 is out and compatible with 1.6. Download here (http://www.jerekdain.com/downloads/JDHP3.zip).

RELEASE 3 - Wednesday, July 13, 2005 Updated to work with WoW patch 1.6.
Added "nopatch" file to make sure Cosmos doesn't delete JDHP.
Added Display Missing option for health and mana/energy/rage.
Fixed a rare but sometimes consistent bug involving a "find" error with the HP code. This fix was already in place with mana, it was just for some reason much rarer with HP, so it didn't get fixed there. Odd.
Greatly improved checks for whether the player was alive, dead or a ghost/whisp and improved handling of those times.

Paki
07-14-2005, 06:20 PM
Thanks a bunch for updating. I have come to love this mod. Tells me when I need to start running like hell.

Butze
07-15-2005, 02:45 PM
Hi!

Installed the mod yesterday for the first time. Previously I installed the newest Cosmos Alpha Version.

I use the german version of WoW and experienced following Cosmos error:

==============================================
Datei: Interface\AddOns\JDHP\JDHP.lua
Zeile: 415
Nummer: 2
Fehler: attempt to perform arithmetic on global `hcur' (a string value)
--------------------------------------------------
Datei: Interface\AddOns\JDHP\JDHP.lua
Zeile: 575
Nummer: 4
Fehler: attempt to perform arithmetic on global `mcur' (a string value)
==============================================

As a result, the Health and Mana/Rage etc... isn't shown correctly besides my >Charwindow< in the upper left corner.

Translation of german words in errormessage:
Datei = file
Zeile = line
Nummer = number
Fehler = error

Can u help me or won't JDHP work with the german version?

Thanks, Butze.

edit: a picture may help:

http://home.versanet.de/~moritz-reichert/image/JDHP_error.jpg

gastaldi
07-19-2005, 07:47 PM

gastaldi
07-19-2005, 08:15 PM
Hey


This is a good idea but eveytime i try to downloud it,it wont let me.How do u downloud it or where at maybe im going to the wrong place.

GreyWolfdog
08-08-2005, 12:37 AM
I have this mod installed, And have come up with a problem.

Before Kaos it worked fine I had /jdhptnl turned on and it was always there.

Since kaos started the mod still works but it does not remember settings, I have to turn /jdhptnl on every time i play. Is there a problem with Kaos & jdhp or am I doing something wrong with it. ?

Jerek
08-08-2005, 11:13 PM
Wow, lots of posts since I've updated. :)

Butze: I haven't had any errors like that, and don't know why it would be related to any language settings. My first guess would be that perhaps there's some other mod using the mcur or hcur variable names. I'll be sure to make variable names more JDHP-specific in my next update.

gastaldi: No idea, everything looks fine to me.

GreyWolfdog: Yeah, I haven't gotten it working with Kaos yet, I haven't found any info on getting Kaos support working. When Kaos came out I did a quick hack job and completely removed Cosmos/Kaos support, and am getting it set up to run completely indepentantly. Ideally I would really love Kaos support, but first I'll get it working on its own and make a release of that until I can get more info on Kaos. Unfortunately that means it will save settings per server per account, and not per character (personally, I like having exp display on for my non-60s and off for my 60s), but it's a small price to pay for a working version. :P

I'll try to release a version that works when Kaos is installed (though it won't show up in Kaos yet) soon, maybe tonight or tomorrow.

Jerek
08-08-2005, 11:59 PM
...or maybe shortly after making that post.

If you're using JDHP with Cosmos 2 (which uses the Kaos configuration panel) you will need this version to not get errors: http://www.jerekdain.com/downloads/JDHP3.1.zip

All Cosmos support has been removed until I can get info on getting it working with Kaos. So this is a fully independant release, but I will be adding Kaos support in the future.

Jerek
09-14-2005, 09:36 PM
New release 4!

RELEASE 4 - Wednesday, September 14, 2005 Updated to work with WoW patch 1.7.
Added support for Khaos, the control panel of Cosmos 2! If you use the Khaos control panel only options set through Khaos will save between sessions, and options changed with the key bindings or slash commands will be temporary. For people not using Khaos the key bindings and slash commands are still a permanent way to change your options.
Added option to display EXP and TNL in terms of bars instead of actual values. (/jdhpbarexp)
Added option to automatically hide EXP and TNL when on level 60 characters. (/jdhphideexp)
Added options to hide health, mana/energy/rage and charges text. (/jdhphealth, /jdhpmana and /jdhpcharges)
Added command to report EXP needed to level in party chat, as well as rested amount. Always reported in terms of bars. (/tnl)
Old coloration commands /jdhphealth and /jdhpmana renamed to /jdhpcolorhealth and /jdhpcolormana
Shapeshifting quirk fixed! (Through a cheap workaround, but whatever.) When returning to caster form your mana display will now properly update immediately.

*** Behind the scenes changes ***

Renamed almost all functions and many variables.
Major code streamlining, including fixing incompatibilities with Archeologist while giving JDHP much simpler code.
Dropped a couple old unused functions.
Moved more of the displayed text to the localization file. If anyone wants to translate JDHP to their language, please contact me at jerek@deciv.com.

Jerek
09-21-2005, 11:16 PM
New release 4.1!

Download Release 4.1 here (http://www.jerekdain.com/downloads/JDHP4.1.zip)

RELEASE 4.1 - Wednesday, September 21, 2005 The EXP/TNL display is now automatically moved to below the pet bar if you have a pet (and moved back if you don't), and automatically slides to the right along with your pet's buffs.
The /tnl command can now send to say, party, raid or guild chat. Type /tnl help for more info.
The /tnl command now displays what level you're working towards.

Jerek
10-03-2005, 11:42 PM
JDHP is now hosted at Curse Gaming (http://www.curse-gaming.com/mod.php?addid=2217)! Please go post comments and vote for it. :)