Download
(376Kb)
Download
Updated: 12-04-10 09:11 AM
Pictures
File Info
Updated:12-04-10 09:11 AM
Created:unknown
Downloads:10,637
Favorites:58
MD5:

PetXPBar (Fan Update)  Popular! (More than 5000 hits)

Version: v4.0
by: Sithehenn [More]

I am not the original author.


This mod was originally created by Mark Murray and updated by Johnny Elliott. I have made it independent of the PetFrame, and tweaked it to work since Patch 2.4, and have now updated it to work with Cataclysm.


From the Readme.txt:

Installation:
When first installed, the frame will be in the center of the screen (see Picture #1), and can then be moved anywhere on the screen by left-click and dragging on the border. I usually place it under my pet's focus bar, leaving room for the buffs/debuffs to show.

Usage:
/pxb raw - Toggles between showing raw XP and XP percentage on the XP Bar.
/pxb tooltip - Toggles between highly detailed and simple tooltip viewing modes.
/pxb fade - Toggles XP Bar text in and out of fade mode. When on, text only shows on mouseover.
/pxb level - Toggles the level icon on or off.
/pxb bar - Toggles the XP Bar on or off.
/pxb rollover - Toggles the rollover tooltip on or off.
/pxb toolfade - Toggles whether or not to try and fade out tooltip.
/pxb tooltipcolor - Toggles showing the tooltip the same color as the XP Bar.
/pxb icon - Toggles Pet Family icon next to the XP Bar on or off.
/pxb debug - Prints debug information about all your settings in the chat frame.
/pxb update - Forces PXB to update all data.

--Style Settings--
/pxb style <value> - Set the style of the XP Bar border. Use values 0-3. 0 is default.
/pxb font <value> - Sets the font style. Use values 0-5. 0 is default.
/pxb texture <value> - Sets the XP Bar texture. Use values 0-3. 0 is default.

--Size Settings--
/pxb medium - Sets the bar in medium mode (Default)
/pxb large - Sets the bar in a larger mode.

--Color Settings--
/pxb red <value> - Sets the Red RGB Channel to <value>. 0-100, higher is darker.
/pxb green <value> - Sets the Green RGB Channel to <value>. 0-100, higher is darker.
/pxb blue <value> - Sets the Blue RGB Channel to <value>. 0-100, higher is darker.
/pxb alpha <value> - Sets the Alpha Channel to <value>. 0-100, higher is less transparent.
/pxb resetcolor - Resets the addon to the original color values.

--Movement--
/pxb dock - Toggles docking the bar to the PetFrame, or the UIParent.
/pxb lock - Toggles the ability to move the XP Bar.
/pxb reset - Resets the XP Bar position to the default.


All settings are on a per-character basis now, you might have to delete the following file if you encounter problems:
World of Warcraft\WTF\Account\<AccountName>\<Server>\<CharacterName>\SavedVariables\PetXPBar.lua

4.0:
-- Fixed the issue where the bar wouldn't initially show
-- Changed the stable tooltips to reflect the changes made by Blizzard
-- Changed the stats in the complex tooltip to account for Blizzard changes

3.3:
-- toc bump
accounted for unused talent points

3.1.2:
-- I believe this should fix the issue of the bar either not appearing, or being out of position.

3.1:
-- Fixed issues with Stable Info not reporting properly
-- Fixed issue with Pet name showing as "Unknown"

3.0:
-- Updated for WotLK
-- Made dockable to PetFrame
Optional Files (0)


Post A Reply Comment Options
Unread 08-02-11, 01:23 PM  
gothnate
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by sykopat
Mousing over after 4.1.0


Date: 2011-04-27 18:23:33
ID: 8
Error occured in: Global
Count: 2
Message: ..\AddOns\PetXPBar\PetXPBar.lua line 358:
attempt to call global 'GetPetHappiness' (a nil value)
Debug:
[C]: GetPetHappiness()
PetXPBar\PetXPBar.lua:358: PetXPBar_LongUpdate()
PetXPBar\PetXPBar.lua:268: PetXPBar_ShowToolTip()
PetXPBar\PetXPBar.lua:101: PetXPBar_OnEnter_Exp()
[string "*:OnEnter"]:1:
[string "*:OnEnter"]:1
There's a reason you're getting so many errors now. Pet happiness and pet XP have been removed from the game.
Report comment to moderator  
Reply With Quote
Unread 04-27-11, 10:24 AM  
sykopat
A Kobold Labourer

Forum posts: 1
File comments: 28
Uploads: 0
Mousing over after 4.1.0


Date: 2011-04-27 18:23:33
ID: 8
Error occured in: Global
Count: 2
Message: ..\AddOns\PetXPBar\PetXPBar.lua line 358:
attempt to call global 'GetPetHappiness' (a nil value)
Debug:
[C]: GetPetHappiness()
PetXPBar\PetXPBar.lua:358: PetXPBar_LongUpdate()
PetXPBar\PetXPBar.lua:268: PetXPBar_ShowToolTip()
PetXPBar\PetXPBar.lua:101: PetXPBar_OnEnter_Exp()
[string "*:OnEnter"]:1:
[string "*:OnEnter"]:1
Report comment to moderator  
Reply With Quote
Unread 04-22-11, 05:27 AM  
sykopat
A Kobold Labourer

Forum posts: 1
File comments: 28
Uploads: 0
Bug report:

* Displays stuff even on non-hunters, disable add-on on all but hunter to solve for now.

* Spent and available pet talent points show 0 regardless of actual number.

Works fine otherwise.

-------------------

With Blizzards plans to bring tamed pets up to the level of the hunter in a future patch, does this mean that pets will level like the Warlock's demon's and pet leveling will be a thing of the past? Even if this makes the main feature of the add-on, the xp bar, useless, I still like the other features.
Report comment to moderator  
Reply With Quote
Unread 12-22-10, 06:49 PM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
open PetXPBar.lua goto line 293, put -- like so
Code:
--PetXPBar_Tooltip:AddLine( PXB_STR_TIPLVL .. PetXPBar_LevelCurrent .. " " .. PetXPBar_CreatureFam);
then goto line 335, put -- like so
Code:
--PetXPBar_Tooltip:AddLine( PXB_STR_TIPLVL .. PetXPBar_LevelCurrent .. " " .. PetXPBar_CreatureFam);
all this means is when you are in a vehicle when you hover your
mouse over and used to get the error. now it will be fine. it will
stll show stats. but all with no info. but error gone.

but still works fine for pets.
__________________
wMmap :: Is a lightweight Minimap, with a sleek look & custom imagery.
wIn1 :: In one addon. and is very lightweight & simple to use.
wChat :: Is a lightweight chat mod.
wBroker :: Is A simple broker add-on.
wPetXPBar :: Is A simple lightweight Pet XP Bar.
wBuffs :: Is A simple Buffs Bar.
Last edited by weasoug : 01-14-11 at 11:03 AM.
Report comment to moderator  
Reply With Quote
Unread 12-16-10, 12:42 PM  
Chiyusha
A Kobold Labourer

Forum posts: 1
File comments: 25
Uploads: 0
This is a nice mod. one issue I am having is I cant get it to move from the center of the screen. I tried the dock command and the lock command still wont move. What am I missing?
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 04:30 PM  
Zasurus
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 42
File comments: 30
Uploads: 1
If you are mounted the xp bar still apears to fix this line 703 of petxpbar.lua need changing to:

Code:
if ((PetXPBar_Config.Bar == true or PetXPBar_Config.Bar == nil) and PetFrame:IsShown()) then
This is to make sure it's only loaded if the pet is out

Zas
Last edited by Zasurus : 12-10-10 at 04:55 AM.
Report comment to moderator  
Reply With Quote
Unread 12-05-10, 05:10 AM  
RHuebner
A Kobold Labourer

Forum posts: 1
File comments: 17
Uploads: 0
Thanks for your recent fixes. I had one more problem that I fixed myself and that you might want to add in. PetXPBar was showing up for every one of my characters, not just the hunters, and of course got a LUA error if the mouse touched the xp bar on a non-hunter. Rather than have to make custom addon lists for every single character to enable PetXPBar only for my hunters, I fixed the addon to only load if the character is a hunter.

It's an easy fix, just wrap the entire contents of PetXPBar_OnLoad with the following:

local _,class = UnitClass("player");
if (class == "HUNTER") then
...
end

e.g.:

Code:
 function PetXPBar_OnLoad() 
    local _,class = UnitClass("player");
    if (class == "HUNTER") then
       PetXPBar_Exp:RegisterEvent( "PLAYER_REGEN_ENABLED" );
       ...
       ...
       PetXPBar_Exp:Show();
    end
end
And I've also been seeing the opposite of a problem reported by others, they say it's always hidden on login and they have to reset and/or dock to make it visible, but for me it's always showing up in the middle of the screen on login, no matter what position or state I left it in when logging out. I tried hiding it for my non-hunter chars by doing /pxb bar, but it always showed up again next time, and I always had to reset it to move it out of the center and back to the default location. At least now it only shows on my hunters, so I don't have to do that for every single character login.
Report comment to moderator  
Reply With Quote
Unread 12-02-10, 08:35 AM  
Minifig
A Kobold Labourer
 
Minifig's Avatar

Forum posts: 0
File comments: 12
Uploads: 0
Just.. doesn't work anymore.

I can't even get it to show up..
Report comment to moderator  
Reply With Quote
Unread 07-23-10, 03:18 PM  
CloudsBreak
A Kobold Labourer

Forum posts: 0
File comments: 59
Uploads: 0
Originally posted by Sithehenn
I not sure why that happens for some people. The only time it happens for me is when I delete the saved variables. Then I do a /pxb reset and /pxb dock, and drag it where I want it. It stays put for me after that.

That seems to be the one thing I can't nail down the cause of.
I'll download the lastest release and see if it helps, but I do enjoy this mod it's just that one bug that irks me.

Hopefully if you havent by now you are able to find out what the deal is and patch it because all my other mods save variables just fine except for this one.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 06:06 PM  
Sithehenn
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 25
Uploads: 5
Originally posted by CloudsBreak
For some reason the bar always seems hidden on login and I need to use /pxb dock just to get it to show.
I not sure why that happens for some people. The only time it happens for me is when I delete the saved variables. Then I do a /pxb reset and /pxb dock, and drag it where I want it. It stays put for me after that.

That seems to be the one thing I can't nail down the cause of.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 12:47 PM  
CloudsBreak
A Kobold Labourer

Forum posts: 0
File comments: 59
Uploads: 0
For some reason the bar always seems hidden on login and I need to use /pxb dock just to get it to show.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 11:41 AM  
CloudsBreak
A Kobold Labourer

Forum posts: 0
File comments: 59
Uploads: 0
Ty for the recent update, I dont play my hunter much but I love this addon ;-)
Report comment to moderator  
Reply With Quote
Unread 01-09-10, 07:59 AM  
ZliS
A Kobold Labourer

Forum posts: 1
File comments: 6
Uploads: 0
I can't see the bar too, it sometimes shown, sometimes not. Can you integrate it with MathBar? It should be very useful and beatiful)))
Report comment to moderator  
Reply With Quote
Unread 11-08-09, 11:02 AM  
Alexli14
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
no mater what i tryed the xp bar would not show
Report comment to moderator  
Reply With Quote
Unread 08-15-09, 07:52 PM  
Spiritfire
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 16
Uploads: 2
Simple fix for mouseover error and info

Find line 294: PetXPBar_TP = GetPetTalentPoints();

Replace it with this: PetXPBar_TP = GetUnspentTalentPoints(0,1,_);
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: