Download
(15 Kb)
Download
Updated: 10-08-13 02:09 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:10-08-13 02:09 PM
Created:07-24-12 08:03 AM
Downloads:3,618
Favorites:75
MD5:
Categories:Mounts & Pets, Mists of Pandaria Beta
5.4
Battle Pet Tabs
Version: 1.1.7.6
by: Vladinator [More]
It's simple, you can create up to 8 team loadouts and toggle between them by pushing the tabs on the Pet Journal, could it get any simpler? You can also store your teams into a snapshot, and then easily swap between multiple team loadouts at once!
  • To delete a team simply right-click the tab.
  • To rename a team you simply right-click while holding down either alt, shift or control.
  • You left click the "+" button to create a new team (current selected team is copied as starting point).
  • You left click a team icon to load that team.
  • You drag the tab to automatically create a macro that uses that loadout. (The macro can be right-clicked while on your actionbar to quickly open the Pet Journal.)
1.1.7.6:
+ Reverted three second rule hack from 1.1.7.5 and listening for UPDATE_SUMMONPETS_ACTION to fire, hoping that teams don't get wiped after that point.

1.1.7.5:
+ Fixed global leak "petId"
+ The quest to fix false-positives continues! Implemented a three second rule before assuming a petId doesn't exist. Looking for feedback to whom this may concern.

1.1.7.4:
+ Updated TOC for 5.4
+ Hopefully fixed an issue with valid pets and teams being deleted at login or interface reload. The addon waits for PET_JOURNAL_LIST_UPDATE to fire before initializing the addon, avoiding this bug. Thanks to flopsygamer for helping me figure this out! I'll keep an close eye to this in the next couple of days to see if this has been truly fixed.

1.1.7.3:
+ Updated TOC for 5.3
+ Fixed issue with other addons, causing BattlePetTabs not to load properly.

1.1.7.2:
+ Renamed the new feature to "Snapshot Manager".
+ Fixed the issue with macros disappearing when switching to a snapshot with less teams than your other snapshots. (The addon assumed the macro was invalid as the team didn't exist in the current snapshot, so now the macros are left in peace in most cases when dealing with snapshots.)
+ Added the ability to rename and pick a snapshot icon from a new popup interface, rather than the old rename popup dialog. For the moment this only applies to snapshots, team renaming still is the same as before.

1.1.7.1:
+ Fixed a bug where a team would be re-loaded endlessly because the pet ID when compared appeared wrong, because the stored ID is in lower-case, while the one returned when checking was in upper-case.
+ The buttons gray out while a team is being loaded in the background. This is to avoid weird behavior, created from too much queries to the server.

1.1.7:
+ Added "Team Manager", a way to create snapshots of all the current teams. The popup menu allows you to load a snapshot, or create one based on the current teams. Note that currently if you make a new snapshot, then load it and edit the teams, you have to make a new snapshot for those changes to be saved - meaning if you plan to make changes to a snapshot, you have to load it, do your stuff, make a new snapshot, then delete the old snapshot that is now obsolete.

1.1.6:
+ Recoded the addon, trying to work out the issues with the database. Please provide feedback in case of errors, along with the errors and description how to reproduce them. Testing on my end has proven error-free, hopefully it will be for you too.

1.1.5.2:
+ Working on making the addon error less if data is corrupt. In case there is a invalid petID being used from the database, the addon will avoid feeding it further into the API so errors aren't caused, this way if a pet or one team is corrupt, they should automatically be cleansed without causing errors. Please provide feedback if you experience that your team data gets corrupt too often, this is not intended and to be frank I've never myself experienced this before so you got to give me some time to try work around this issue. Thank you very much.

1.1.5.1:
+ TOC bump to 50200 (patch 5.2)
+ Fixed an issue where the UI wouldn't update when you swap teams.

1.1.5:
+ Added a bonus feature; the ability to remove pets from the teams, all you have to do is hold down a modifier key (ctrl/alt/shift) and click the small avatar in the team loadout screen, a confirmation dialog will ask you before removing the pet. You can create teams that consist of one or two pets, you don't have to have a full team.

1.1.4:
+ Patch 5.1 update has been applied, sorry if you lost your current teams because of the old version bugging out.

1.1.3.1:
+ Working on Squire2 compatibility, broke its loading process by forcing the PetJournal to load. Giving the author a break by doing this as a temporary fix, side effects are limited to simply not seeing the tooltips when hovering over the macros, nothing big really.

1.1.3:
+ Further optimizing of loading process. At the moment I think the issues have been resolved, speak up if something happens, thanks for your patience.

1.1.2:
+ Appears to have been resolved, keeping a close eye on the situation. Please do provide feedback about this version and about the issue with loading teams between sessions, thank you.

1.1.1:
+ The hunt to fix the saving issue continues, being told it's not yet corrected to trying with a small fix.

1.1.0:
+ Revamping how the addon loads, making pet quality coloring (while in battles) work without having to show the Pet Journal first, and hopefully fixing some issues with the saved variables.

1.0.9:
+ Fixed an issue with pet tabs while being queued or in battle, if you tried to swap teams or modify your teams it would error by spamming you in chat that the action is unavailable, so to counter this issue I made it automatically disable the tabs while you are busy in battle or queue, rather use your time to manage teams outside of these situations, like it was intended.
+ Attempting to harden the saved variables problem, someone reported settings not being stored so I edited a vital line, hoping it would help reduce these occurrences. Keep me posted on the matter.

1.0.8:
+ Fixed an issue with non-existant pets being loaded then the addon trying to set their spells properly, when there is no data to use, so the addon fired an lua error telling you there is no field '?' at line 331 (in version 1.0.7), this should be fixed now, provide feedback if otherwise.

1.0.7:
+ Updated tooltip code to work better with build 15913. The tooltips now appear more compact, and pet level and experience is now shown.

1.0.6:
+ Fixed team swapping issue where pets would revert their abilities back to default instead of using what was assigned to them by the player.

1.0.5:
+ Swapping teams too often will no longer cause problems like the loadout not changing or only one or two pets changing while the last are still from the old team. This happened because the game isn't made to handle too many requests to changing loadouts, so this is fixed by having the addon retry and update the loadout in intervals until the expected loadout is loaded properly.
+ Caging pets will remove them from the team, cage all pets from a team and that team is removed from the tabs.
+ Variable initialization issues should now be gone.

1.0.4:
+ Fixed a problem with macro creation when you have the macro UI opened, it will close it automatically to avoid any problems.
+ The team tooltip hints change depending if it's on the tab, or on the macro.

1.0.3:
+ Swiftly added tooltip information about dragging the tabs.

1.0.2:
+ Pet type defensive bonuses and penalties are locale independent and should not cause problems any longer, in case you were early out with a non-English client, this should fix the problem.
+ You can drag a tab to automatically create a macro for that team load-out, you can press it to quickly load a team from your actionbar, this way you don't have to open the screen to toggle between a fixed set of teams. When you mouse-over these type of macros, the tooltip will change into the team load-out tooltip. You can also right-click the macro to toggle the Pet Journal for quicker access to your pets. Note that macros are stored in the general category.
+ Team tooltips will now use the positive and negative arrows to describe if attack or defense is stronger or weaker, instead of text.
+ Minor tweaks regarding icon alignment on tooltips, still not perfected tough.

1.0.1:
+ Minor tweaks before release, nothing substantial.

1.0.0:
+ Initial release.
Optional Files (0)


Archived Files (21)
File Name
Version
Size
Author
Date
1.1.7.5
15kB
Vladinator
10-07-13 08:47 AM
1.1.7.4
14kB
Vladinator
10-05-13 02:31 AM
1.1.7.3
14kB
Vladinator
06-06-13 06:30 AM
1.1.7.2
14kB
Vladinator
04-22-13 06:07 PM
1.1.7.1
12kB
Vladinator
04-21-13 10:40 AM
1.1.7
11kB
Vladinator
04-21-13 10:02 AM
1.1.6
8kB
Vladinator
04-16-13 04:28 AM
1.1.5.2
9kB
Vladinator
04-08-13 08:09 AM
1.1.5.1
9kB
Vladinator
03-13-13 07:18 AM
1.1.5
8kB
Vladinator
12-04-12 10:48 AM
1.1.4
8kB
Vladinator
11-28-12 04:07 AM
1.1.3.1
8kB
Vladinator
10-16-12 12:54 PM
1.1.3
8kB
Vladinator
10-07-12 03:36 PM
1.1.2
8kB
Vladinator
10-07-12 09:05 AM
1.1.0
8kB
Vladinator
10-06-12 04:57 PM
1.0.9
8kB
Vladinator
10-05-12 04:04 PM
1.0.8
7kB
Vladinator
07-29-12 06:42 PM
1.0.7
7kB
Vladinator
07-28-12 07:08 AM
1.0.6
6kB
Vladinator
07-26-12 02:15 PM
1.0.5
6kB
Vladinator
07-26-12 11:32 AM
1.0.1
5kB
Vladinator
07-24-12 08:23 AM


Post A Reply Comment Options
Old 03-25-14, 12:43 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3881
File comments: 1899
Uploads: 38
Feature request: Allow reordering the teams somehow. Drag-and-drop would be ideal, or a right-click menu with move up/down commands, or even auto-sorting by team name or highest pet level.

Actually a right-click menu would be handy anyway, as you could put the rename and delete options in there, and I could quit right-clicking by accident and having to waste time clicking cancel on the delete confirmation dialog.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Old 01-27-14, 07:13 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3881
File comments: 1899
Uploads: 38
Originally Posted by Ratso Steamwheedle
... whenever I click on a tab to activate that team it automatically summons the first pet of that team as a companion. Is there any way to prevent that?
Originally Posted by Vlad
That's a game feature, sadly not possible to disable it from doing that.
While you can't prevent it from summoning the pet in the first place, you can just dismiss the pet immediately.

Code:
local summoned = C_PetJournal.GetSummonedPetGUID()
if summoned then
	C_PetJournal.SummonPetByGUID(summoned)
end
Probably simplest to just dismiss once when the pet journal is closed, rather than try to detect exactly when the pet is summoned after selecting the team.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Old 01-02-14, 08:58 PM  
Lonarms
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 1
So few comments

Such a damn useful addon. If it only had more teams...
Lonarms is offline Report comment to moderator  
Reply With Quote
Old 08-18-13, 11:52 PM  
nickyjean
A Frostmaul Preserver

Forum posts: 275
File comments: 112
Uploads: 0
Hi,

Loving the addon. One issue I'm having though as my pet list grows. I can't seem to figure out how to update a snapshot or a team without deleting it and starting over. If there's a way to do an Update on a Snapshot, that would be awesome.

70 / 75 to level 25 and I can't help but keep changing teams.
__________________
nickyjean is offline Report comment to moderator  
Reply With Quote
Old 06-07-13, 05:21 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
Originally Posted by Ratso Steamwheedle
First I just want to say that I appreciate your addon. It's well done and very useful.

Second, I'm finding that whenever I click on a tab to activate that team it automatically summons the first pet of that team as a companion. Is there any way to prevent that?

Thanks!
That's a game feature, sadly not possible to disable it from doing that.
__________________
Profile: Curse | Wowhead
Vlad is offline Report comment to moderator  
Reply With Quote
Old 06-06-13, 07:58 PM  
Ratso Steamwheedle
A Kobold Labourer
 
Ratso Steamwheedle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 19
Uploads: 4
First I just want to say that I appreciate your addon. It's well done and very useful.

Second, I'm finding that whenever I click on a tab to activate that team it automatically summons the first pet of that team as a companion. Is there any way to prevent that?

Thanks!
Last edited by Ratso Steamwheedle : 06-06-13 at 07:59 PM.
Ratso Steamwheedle is offline Report comment to moderator  
Reply With Quote
Old 04-21-13, 10:08 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
*Edit* 1.1.7.1 hotfix has been uploaded and fixed a very serious issue.

Released 1.1.7, added a new feature called "Team Manager". Check the change-log for 1.1.7 for details.



Planned changes to the new feature are the ability to set the icon of each snapshot to what ever you like. The ability to drag and drop snapshots and organize the popup-panel. More detailed tooltips of what a snapshot actually contains.

Until next update, I hope you enjoy the addon and I hope that I have managed to get rid of bugs and issues.
__________________
Profile: Curse | Wowhead
Last edited by Vlad : 04-21-13 at 10:45 AM.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 04-09-13, 07:07 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
Hehe, my OnUpdate code maybe runs at slower intervals, it just checks for when the pets are swapped before swapping their abilities. I don't think it's that slow tough.
__________________
Profile: Curse | Wowhead
Vlad is offline Report comment to moderator  
Reply With Quote
Old 04-09-13, 04:36 AM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 285
File comments: 1243
Uploads: 31
Nice addon! I noticed that Its switching pet talents much slower then PetBattle Teams - is there a CPU are Design reason for that?

I'll come back as soon as you have added more tabs and maybe names for them
I'll need them for the Daily Tamers, Low level pet hunting etc.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 03-11-13, 04:34 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
Originally Posted by Haleth
Since 5.2, when I select a different team, the pets in my loadout don't seem to update until I click the search box, or click the tab a second time.
They probably changed a bit on what functions are called when updating the information, so I gotta update my hooks to update at the right moments as well. Gonna take a look on my starter edition and see what happens.

Originally Posted by Barleduq
<snip> I am, however, finding a need for more than 8 teams
Yeah, it's on my list, and I wish to add this feature seamlessly without adding new ugly buttons or elements on screen, I was thinking perhaps adding a button purely for loadout switching (when you have more than 8 teams), you can think of it as "tabs" or something, just brainstorming here, but it would allow you to add more "tabs" or "groups" to a menu and using that you can add/remove more tabs/groups and each tab/group would contain up to 8 teams.
__________________
Profile: Curse | Wowhead
Vlad is offline Report comment to moderator  
Reply With Quote
Old 03-09-13, 02:05 PM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1154
File comments: 1107
Uploads: 29
Since 5.2, when I select a different team, the pets in my loadout don't seem to update until I click the search box, or click the tab a second time. Very odd.

Love the addon otherwise
Last edited by Haleth : 03-09-13 at 02:11 PM.
Haleth is offline Report comment to moderator  
Reply With Quote
Old 03-08-13, 11:43 AM  
Barleduq
Ruler of All I Survey
 
Barleduq's Avatar
Premium Member

Forum posts: 62
File comments: 259
Uploads: 0
Very useful!

I like this addon, and the ease with which I can keep track of which pets I'm using.

I am, however, finding a need for more than 8 teams As I like to keep a team set for various levels, and various rarities (as I get more differnet ones) to easily swap when I'm wandering between zones quickly and spot a pet I don't have. (This is how I lost the nether faery dragon rare qq)

Not a complaint, just a mention of a reason to have more than 8.

Thank you!
Barleduq is offline Report comment to moderator  
Reply With Quote
Old 12-12-12, 05:32 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
Hehe, yeah it's possible to save your pre 5.1 teams, if you got a backup of your lua file that is, just kind of easy to login after patch and notice they are gone, you then only have a .bat file (and that is gone too after you exit the game to update), but anyway, nice tutorial.
__________________
Profile: Curse | Wowhead
Vlad is offline Report comment to moderator  
Reply With Quote
Old 12-12-12, 05:28 AM  
mancini
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
fixing lost teams in 5.0 -> 5.1 transition

The problem is that the old pet id's were saved in decimal and they are now saved in hex by BattlePetTabs.

On OS X i just open BattlePetTabs.lua in a text editor like TextMate , select the three lines for the "team" entry for each team and filter trough the following unix command (works on linux too or windows with Cygwin):

awk -F, '{printf "\"0x0000000000%x\", %s\n",$1,$2}'

so the old entry like :

BattlePetTabsDB = {
{
["team"] = {
13435275, -- [1]
13212135, -- [2]
13320910, -- [3]
becomes:

BattlePetTabsDB = {
{
["team"] = {
"0x0000000000cd018b", -- [1]
"0x0000000000c999e7", -- [2]
"0x0000000000cb42ce", -- [3]



Doing this made my teams work just fine in 5.1.

If you have no choice but doing it manually you can use http://www.binaryhexconverter.com/decimal-to-hex-converter and just add 0x0000000000
Last edited by mancini : 12-12-12 at 05:34 AM.
mancini is offline Report comment to moderator  
Reply With Quote
Old 10-06-12, 05:44 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 745
File comments: 382
Uploads: 39
Re: Error without an error

Originally Posted by Azbandar
It seems to me that everytime I log out, my "saved" teams are wiped. If I never want to log out or switch characters, this is an awesome add-on. Let me know what you may need from me for more info and I'll give you what I can.
This is with 1.1.0? I am working to fix this issue you see. Don't be surprised if I ask you how it the updates go as long this issue exists, hehe.
__________________
Profile: Curse | Wowhead
Last edited by Vlad : 10-06-12 at 05:58 PM.
Vlad is offline 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.