Download
(22 Kb)
Download
Updated: 07-30-14 04:37 AM
Pictures
File Info
Compatibility:
Warlords of Draenor (6.0)
Siege of Orgrimmar (5.4)
Updated:07-30-14 04:37 AM
Created:07-24-12 08:03 AM
Downloads:3,759
Favorites:75
MD5:
5.4
Battle Pet Tabs
Version: 6.0.0.140730
by: Vladinator [More]
Official repository can be found at GitHub.

NB: It's advised that you clean your SavedVariables file "BattlePetTabs.lua" from your WTF folder for WoD because the way pets are tracked has changed once more. This means that all old settings must be purged, or else you might end up with errors. Worst case you login and won't find any teams or snapshots.

You can create up to eight team loadouts and toggle between them by pressing the tabs on the Pet Journal - could it get any simpler? You can also store various team compositions into snapshots and then easily swap between entire team loadouts at once!

Quick start
  • Right-click a tab to delete.
  • Right-click a tab while holding down alt/shift/ctrl to rename.
  • Click "+" to create a new team. (Current team is copied as a starting point.)
  • Click a tab to load the assigned team.
  • Drag a tab to create a macro. You can place it on your bar for quick access. (Note that you can right-click the macro to quickly open the Pet Journal.)
6.0.0.140730
- The start of a new expansion means fresh change log.
Optional Files (0)


Archived Files (22)
File Name
Version
Size
Author
Date
1.1.7.6
15kB
Vladinator
10-08-13 02:09 PM
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 11:48 AM
1.1.4
8kB
Vladinator
11-28-12 05: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
Unread 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
Unread 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
Unread 07-26-12, 11:22 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 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
Unread 07-27-12, 08:32 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 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: 55
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
Unread 07-29-12, 06:40 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 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
Unread 10-06-12, 05:44 PM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 12-12-12, 06: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 06:34 AM.
mancini is offline Report comment to moderator  
Reply With Quote
Unread 12-12-12, 06:32 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 03-08-13, 12:43 PM  
Barleduq
Ruler of All I Survey
 
Barleduq's Avatar

Forum posts: 62
File comments: 261
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
Unread 03-09-13, 03:05 PM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1168
File comments: 1114
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 03:11 PM.
Haleth is offline Report comment to moderator  
Reply With Quote
Unread 03-11-13, 04:34 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 761
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
Unread 04-09-13, 04:36 AM  
Tonyleila
A Rage Talon Dragon Guard
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1265
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
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.