Download
(376 Kb)
Download
Updated: 12-04-10 08:11 AM
Pictures
File Info
Updated:12-04-10 08:11 AM
Created:unknown
Downloads:9,374
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)


Archived Files (4)
File Name
Version
Size
Author
Date
v3.3
375kB
Sithehenn
07-16-10 06:31 AM
v3.1.2
375kB
Sithehenn
06-16-09 05:46 PM
v3.1
375kB
Sithehenn
01-24-09 07:23 AM
v3.0
375kB
Sithehenn
12-19-08 01:00 PM


Post A Reply Comment Options
Old 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.
gothnate is offline Report comment to moderator  
Reply With Quote
Old 04-27-11, 10:24 AM  
sykopat
A Kobold Labourer

Forum posts: 1
File comments: 18
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
sykopat is offline Report comment to moderator  
Reply With Quote
Old 04-22-11, 05:27 AM  
sykopat
A Kobold Labourer

Forum posts: 1
File comments: 18
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.
sykopat is offline Report comment to moderator  
Reply With Quote
Old 12-22-10, 05:49 PM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 122
File comments: 318
Uploads: 15
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.
wPetXPBar :: Is A simple lightweight Pet XP Bar.
Last edited by weasoug : 01-14-11 at 10:03 AM.
weasoug is offline Report comment to moderator  
Reply With Quote
Old 12-16-10, 11:42 AM  
Chiyusha
A Kobold Labourer

Forum posts: 1
File comments: 31
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?
Chiyusha is offline Report comment to moderator  
Reply With Quote
Old 12-09-10, 03:30 PM  
Zasurus
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 42
File comments: 30
Uploads: 2
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 03:55 AM.
Zasurus is offline Report comment to moderator  
Reply With Quote
Old 12-05-10, 04:10 AM  
RHuebner
A Kobold Labourer

Forum posts: 0
File comments: 19
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.
RHuebner is offline Report comment to moderator  
Reply With Quote
Old 12-02-10, 07:35 AM  
Minifig
A Kobold Labourer
 
Minifig's Avatar

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

I can't even get it to show up..
Minifig is offline Report comment to moderator  
Reply With Quote
Old 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.
CloudsBreak is offline Report comment to moderator  
Reply With Quote
Old 07-17-10, 06:06 PM  
Sithehenn
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 25
Uploads: 8
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.
Sithehenn is offline Report comment to moderator  
Reply With Quote
Old 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.
CloudsBreak is offline Report comment to moderator  
Reply With Quote
Old 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 ;-)
CloudsBreak is offline Report comment to moderator  
Reply With Quote
Old 01-09-10, 06: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)))
ZliS is offline Report comment to moderator  
Reply With Quote
Old 11-08-09, 10: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
Alexli14 is offline Report comment to moderator  
Reply With Quote
Old 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,_);
Spiritfire is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: