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,487
Favorites:73
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 10-06-12, 05:25 PM  
Azbandar
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Error without an error

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.
Azbandar is offline Report comment to moderator  
Reply With Quote
Old 07-29-12, 06:40 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 741
File comments: 382
Uploads: 39
Re: error opening pet window

Originally Posted by A_Nolan
error i found i have the 7/28/12 version 1.0.7
activated when i opened the pet window
I uploaded 1.0.8 -this happened because the pet abilities did not get saved properly, for some reason C_PetJournal.GetPetLoadOutInfo(index) a 0 so the pet wasn't properly stored (or there is no pet) -later the addon tried to look into that non-existant pets spells but since it didn't exist it errors like this. I think I fixed it by adding a simple if-check, try now and report back if it happened again.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 07-29-12, 06:19 PM  
A_Nolan
A Deviate Faerie Dragon
 
A_Nolan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 54
Uploads: 9
Exclamation error opening pet window

error i found i have the 7/28/12 version 1.0.7
activated when i opened the pet window

Date: 2012-07-29 19:12:43
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\BattlePetTabs\core.lua line 331:
attempt to index field '?' (a nil value)
Debug:
[C]: ?
BattlePetTabs\core.lua:331: BattlePetTab_LoadTeamId()
BattlePetTabs\core.lua:222: BattlePetTabs_OnEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
[C]: LoadAddOn()
..\FrameXML\UIParent.lua:299: UIParentLoadAddOn()
..\FrameXML\UIParent.lua:432: PetJournal_LoadUI()
..\FrameXML\UIParent.lua:633: TogglePetJournal()
[string "*:OnClick"]:1:
[string "*:OnClick"]:1
AddOns:
Swatter, v5.13.5258 (BoldBandicoot)
Bagnon, v4.3.0
BagnonForever, v
BagnonTooltips, v
BankStack, vv23
BattlePetTabs, v1.0.7
Factionizer, v5.0.0.01
MinimalArchaeology, v4.0.3a (01.09.11)
PetBattleQualityGlow, v1.0.2
BlizRuntimeLib_enUS v5.0.4.50001 <us:3724>
(ck=116)
__________________
w.w.J.d. read the book and find out (J 3:16)
A_Nolan is offline Report comment to moderator  
Reply With Quote
Old 07-27-12, 08:32 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 741
File comments: 382
Uploads: 39
Re: Thanks!

Originally Posted by Twilit Soul
I love this addon!
I am glad you find it to your liking.

The only thing that can be discussed is the number of teams one can create. I think 8 is enough for most, but I am open for suggestions of any sort, not just the maximum number of teams.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 07-26-12, 04:45 PM  
Twilit Soul
A Defias Bandit

Forum posts: 2
File comments: 8
Uploads: 0
Smile Thanks!

I love this addon! I can see it becoming hugely popular by release day.

Much appreciated =)
Twilit Soul is offline Report comment to moderator  
Reply With Quote
Old 07-26-12, 11:22 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 741
File comments: 382
Uploads: 39
*Edit*

1.0.6 is pending review, it fixed the team swapping issue where pets would revert their abilities back to default instead of using what was assigned to them by the player. For example if you have a Beast that knows Scratch and you set it to use Thrash, after swapping teams it will properly set it's ability back to Thrash instead of reverting to default and use Scratch.

Originally Posted by nullberri
<snip>
Thanks for the reports, this is what I have changed and fixed for next release:

- Variable initialization shouldn't error, tested it several times on an empty client. Still if it occurs do tell me.
- Quickly toggling teams will result into sloppy updating, since the game isn't designed to change all the pets at once, so to counter this there is an internal updater checking each 250ms and corrects the loadout if it's not properly loaded. In short, team swapping should always perform as expected.
- If you cage a pet from a team, that pet is no longer a member of that team and will not error. If you cage all the pets from a team, that team will be removed. (Note that you can generate an error if you cage a pet and swap team before the game can fire the pet journal update event, this causes the addon to assume you still got the pet and try to load it while in reality you don't. This shouldn't be a problem as long people don't deliberately quickly cage and swap to a team with the caged pet, I'll anyway try completely fix this for some future build.)

I have uploaded the changes and you can try them out shortly. Keep me informed of bugs, thanks.
Last edited by Vlad : 07-26-12 at 02:17 PM.
Vlad is offline Report comment to moderator  
Reply With Quote
Old 07-25-12, 01:28 PM  
nullberri
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 3
Bugs:
Rapidly switching teams does not reliably switch teams;
Abilities are not saved / restored when switching teams (when switching teams succeeds)
When a pet is caged/released from a team that is not the current team, switching to that team throws an error.

calls to C_PetJournal.SetPetLoadOutInfo and C_PetJournal.SetAbility are throttled internally and need to be set, and rechecked during an onupdate to ensure they get set properly.
Last edited by nullberri : 07-25-12 at 01:34 PM.
nullberri is offline Report comment to moderator  
Reply With Quote
Old 07-25-12, 01:21 PM  
nullberri
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 3
Fresh install with no previous saved variables file and i get an error when i click the first tab.

searching thru your code it looks like you never initialize BattlePetTabsDB to some default value if BattlePetTabsDB is nil.

Workaround is to /run BattlePetTabsDB = {} then click a button, you'll get an error but after that it works fine.

Code:
Message: Interface\AddOns\BattlePetTabs\core.lua:285: attempt to index global 'BattlePetTabsDB' (a nil value)
Time: 07/25/12 12:19:30
Count: 1
Stack: Interface\AddOns\BattlePetTabs\core.lua:285: in function `BattlePetTab_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: self = BattlePetTabsTab1Button {
 0 = <userdata>
 searchOverlay = BattlePetTabsTab1ButtonSearchOverlay {
 }
}
button = "RightButton"
currentId = 1
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'BattlePetTabsDB' (a nil value)"
Last edited by nullberri : 07-25-12 at 01:26 PM.
nullberri 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.