Get an Epic Experience with Premium

Battle Pet Tabs

Companions Login to Add Favorites
  • 7 Likes
  • World of Warcraft
  • 279 Monthly Downloads
  • Supports: 6.0.1
  • 33,884 Total Downloads
  • Updated 07/30/2014
  • Created 08/16/2012
  • 53 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: All Rights Reserved
  • Newest File: v6.0.0.140730
or

About Battle Pet Tabs

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.)

tag v6.0.0.140730
2371aaaf0846aea4b224595e09ff89a5574dc691
Vlad <vladix@gmail.com>
2014-07-30 12:31:40 +0200

Tagging as v6.0.0.140730

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

Vlad:
    - Initial addon commit.
    - Initial commit

Addon Packs Containing This...

Comments

First Previous Page 1 of 7 Next Last
  • #98

    Thanks for the update

  • #97

    Leading up to and including the expansion, the id on pets changed. This means what ever teams were stored now point to pets that don't exist in the eyes of the game. I recently found out about this on live myself. We have to reset our DB and rebuild, both on live and probably when patch 6.x is released, seeing as things changed once more - if I remember correctly from the beta.

    Last edited by Vladinator on 8/13/2014 1:00:44 AM

    Profile: WoWInterface | Wowhead

  • #96

    Afer whatever Blizzard released today (Tu) all of my pet tabs have been erased.  Every single tab (about 40 of them) shows 3 question marks (?).   Any ideas how to fix this?

    When I click on one of the pet spots it shows the following error:

    Date: 2014-08-12 22:31:53
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua line 177:
       Usage: GetPetInfoByID(ID)
    Debug:
       [C]: GetPetInfoByPetID()
       ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:177:
          ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:176
       ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:203:
          ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:186
       ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:214:
          ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:210
       ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:777:
          ...face\AddOns\PetBattleMaster\src\main\PetTeamView.lua:776
       (tail call): ?   [C]: ?
       [C]: SetPetLoadOutInfo()
       ...erface\AddOns\PetBattleTeams\modules\TeamManager.lua:58:
          ...erface\AddOns\PetBattleTeams\modules\TeamManager.lua:36

  • #93

    I really wish the auto-zero code could just be disabled.  I had it wipe out my pet group yesterday for some reason.  The main tab picture was still there, but all the slots were emptied.  Why do we need to clear out invalid names?  Was that a major problem in the past?  I would rather just leave whatever as I do not recall ever having invalid names, only these clears that end up removing valid teams for some reason.

  • #94

    You can simply comment out line 616, it's this part:

    function Update() -- local
        IntegrityCheck()
        local shownNewTeam

    Make it into:

    function Update() -- local
        --IntegrityCheck()
        local shownNewTeam

    That will disable checking the teams entirely. Try it and see how it works.

    There was a time where I changed a lot on the data structure, but now it's been stable like this for a while so I reckon I don't have to be so agressive as before. :)

    Last edited by Vladinator on 10/22/2013 9:46:19 AM

    Profile: WoWInterface | Wowhead

  • #95

    I have done that in the past, but it gets to be tedious to do with each release!  :)

    That is why having a setting may be useful.  Or allow us to clear things in the config interface.  Just a thought.

  • #90

    My game is crashing on exit about once a week or so, after a long play session.  Part of this is probably Blizzard's fault, but it always results in a corrupt data file for this addon on reload, so I am highly suspicious something is taking far too long when it is writing things out.  I tend to use 8 tabs, so that could be the issue.

    Could you write things out when they change instead of when the app quits?

  • #91

    The game writes the savedvariables to the disk at logout or at right before the UI reloads when you /reloadui

    But I fear even if you do /reloadui before logging out, if the game crashes at logout, it would still corrupt your main file (the backup would contain the data when you reloaded the UI, so you'd still be forced to manually rename it so the game loads it)


    Real shame the game crashes like this, it shouldn't happy, but maybe it does due to low memory/space?

    Profile: WoWInterface | Wowhead

  • #92

    I am not sure why it is crashing.  I have plenty of memory on this machine, but I do run a bunch of addons which may be related.  Perhaps Blizzard has one or more memory leaks and the problem is that they add up.

    The thing that is suspicious is that the file for this addon is the only one that gets corrupt.  I have had one or two others get corrupt in the past, but this one is the only one that must be completely removed after the crash, making me wonder if it is something odd here that is causing the crash or at least helping it along a lot.

  • #84

    I installed the new version and it is still clearing out the list for me.  I just commented out the code that does that so I don't have to keep reentering my teams, but the latest fix doesn't solve the problem, unfortunately.

     

  • #87

    Can you try 1.1.7.6? I've disabled my 3 second fix test and added listening for UPDATE_SUMMONPETS_ACTION

    My reasoning is that I've discovered that on my end the petID is nil but gets a value after this event has fired, so I'd like you to test it out yourself and check if your teams are wiped or not. :)

    Profile: WoWInterface | Wowhead

  • #89

    Good question, I haven't seen any replies so I figured maybe you were busy! :)

    Anyway, the time based was only in 1.1.7.5, then I found a better method and added that instead in 1.1.7.6.

    Did some testing where I register all events and track the values returned by the API, I noticed it returned valid values after UPDATE_SUMMONPETS_ACTION had fired, and that when doing a /reloadui the petID can return invalid results when the game starts to reload stuff, something about the raid profiles I think, anyway, the data was valid again once UPDATE_SUMMONPETS_ACTION fired.

    Thus now I only wait for UPDATE_SUMMONPETS_ACTION to fire before initializing my addon, in addition to wait for the PetJournal to initialize first as well. ;)

    Keep testing, and say if there are more issues! :)

    Profile: WoWInterface | Wowhead

  • #88

    Where did all my replies go?

    I tried the new version and it seems to be working for now.  No clearing out at this point.

    I would avoid something time based, as having many addons could override that.  Perhaps make this an option in the settings, so the user can turn it on or off as needed.  How often do we really have invalid items in the list anyway?  Perhaps you are solving a problem that is not common.  It should require active action to clear in that case.

  • #86

    In 1.1.7.5 I've added a 3 seconds rule. Please try it out.

    I am curious how long the game assumes the petId doesn't exist, so I figured 3 seconds should do it, considering the event is accounted for before initializing, and with this hack it would lie and say that the petId exists (until 3 seconds have passed, then it will stop lying and actually remove the assumed corrupt pet entry.

    Keep me updated, flopsygamer!

    Profile: WoWInterface | Wowhead

  • #85

    Dang.

    Hmm, maybe I can have a strike system, if the pet ID fails 3 checks done over 10 seconds, then it assumes it's invalid.

    I'm sorry to hear, but I'll keep trying to fix this by not invoking the cleaning function too often. Maybe I could even make it on demand, so it doesn't run that often.

    The idea was in case pets disappear or between version changes, that the user wouldn't get stuck in error loop, being unable to use the addon at all. The data integrity was really unstable when I first coded the addon, so I figured I needed something like this in place. Maybe I don't anymore, I'll do some more research on my end.

    Write me if you miraculously figure something out. :)

    Profile: WoWInterface | Wowhead

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Alienware Alpha Giveaway!