
Can't swap pets
Kodiak1965 opened this issue ยท 21 comments
Is there an existing issue for this?
- I have searched the existing open and closed issues.
Description
Just updated PetTracker and noticed when a pet died I wasn't able to do anything. The interface just showed blank for the pets. I had the pass, capture options but they were grayed out and the forfeiture button. When I disable PetTracker I go back to the old interface and am now able to put in a replacement pet and continue the battle.
When I battled the Thundering Pandaren Spirit and it froze my first pet I was able to bring in a different pet. I then battled Dos-Ryga, the first pet was a leveling pet so I did a attack and was able to bring in my second pet. When my second pet died I was again unable to do anything until I disabled PetTracker.
PetTracker Version
PetTracker 11.1.2
World of Warcraft Flavor
Retail
World of Warcraft Region
US/NA
Tested with only PetTracker
I got this issue with only PetTracker enabled
Lua Error
Reproduction Steps
- Start battle
- pet dies
- interface doesn't show any pets or abilities
- disable PetTracker
- old interface appears and now your able to bring in a replacement pet
- finish battle
Last Working Version
The PetTracker before this latest one worked fine yesterday.
Screenshots
Just revert back to 11.1.1 until they fix it. It let me swap out my pet after death.
Just disabled the "PetTracker Battle" option by itself and I'm able to now pick a replacement battle pet.
This error is happening when the active pet dies. reloading each time a pet dies allows the pet battle to continue. This issue started with the patch that was pushed on Curse on 3/12.
This error is happening when the active pet dies. reloading each time a pet dies allows the pet battle to continue. This issue started with the patch that was pushed on Curse on 3/12.
So just do a /reload ui and continue on? Will try that out the next time I do a pet battle. Will be easier than disabling and reenabling the addon lol.
Yea, that gives a make-shift default way to finish the battle, but 1 2 3 don't work to use the abilities you have to click them.
This used to be an issue a while back and then it seemed fixed but now it's back again in the newest update
Disabling the replacement switcher in settings and using the default ui version seems to stop the issue.
I am in the process of doing the Family Achievements and this error is frustrating since most of the fights you have to watch when the opponents move will be.
I used an AI to fix this and the option to switch pets with "Pet Battle" selected. You will need to go into the Interface/Addons/Pettracker/addons/battle path to find the "switcher file". Then find the line (if you have it numbered, its line 66, otherwise, manually look for the line):
self.Close:SetEnabled(Addon.Battle:IsPvE() and Addon.Battle(Enum.BattlePetOwner.Ally):IsAlive())
then, replace it with:
-- Check if any ally pet is alive instead of just the active one
local anyAllyAlive = false
for i = 1, NUM_BATTLE_PETS_IN_BATTLE do
if Addon.Battle(Enum.BattlePetOwner.Ally, i):IsAlive() then
anyAllyAlive = true
break
end
self.Close:SetEnabled(Addon.Battle:IsPvE() and anyAllyAlive)
Its working for me, but who knows long it will work when the next patch comes out.
Good Luck!
Hello, Cinciao16.
Thank you for the idea which you described.
But there is something not 100% clear to me in this idea: the same "guilty" line exists also in the v11.1.1 which is known as working correctly.
Do you have some comment regarding this strange thing?
Hello, Cinciao16.
Thank you for the idea which you described. But there is something not 100% clear to me in this idea: the same "guilty" line exists also in the v11.1.1 which is known as working correctly. Do you have some comment regarding this strange thing?
Hello,
I was running into the issue as others were, the issue where I could not choose a pet to battle once the active one had died. I had to manually /reload the game each time. If I wanted to avoid doing this, I would have to disable the Pet Tracker Battle option in the Interface Menu and battle without the opponent's abilities being shown. Something between the switcher and having the opponent's abilities displaying was conflicting with each other.
My game is updated with patch 11.1.1 and it was working, but one day it stopped working and not sure why or exactly when it stopped. This option was the only reason why I use Pet Tracker, as I depend on it when I am working on Pet Battle Achievements.
For clarification, the Pet Battle Tracker is what I circled in the screenshot:
Hope this answers your question,
Cinciao
Hello, Cinciao16.
Thank you for the idea which you described. But there is something not 100% clear to me in this idea: the same "guilty" line exists also in the v11.1.1 which is known as working correctly. Do you have some comment regarding this strange thing?Hello, I was running into the issue as others were, the issue where I could not choose a pet to battle once the active one had died. I had to manually /reload the game each time. If I wanted to avoid doing this, I would have to disable the Pet Tracker Battle option in the Interface Menu and battle without the opponent's abilities being shown. Something between the switcher and having the opponent's abilities displaying was conflicting with each other. My game is updated with patch 11.1.1 and it was working, but one day it stopped working and not sure why or exactly when it stopped. This option was the only reason why I use Pet Tracker, as I depend on it when I am working on Pet Battle Achievements. For clarification, the Pet Battle Tracker is what I circled in the screenshot:
Hope this answers your question, Cinciao
Sorry, this is not exactly what I asked.
I meant something other.
Same as other people, I encountered the problem with PetTracker v11.1.2 which prevents to swap pets.
In order to solve the problem, you suggested to replace the following line...
self.Close:SetEnabled(Addon.Battle:IsPvE() and Addon.Battle(Enum.BattlePetOwner.Ally):IsAlive())
...by other code which you published here.
You even explained why it should help. We all thank you for this.
But if your explanation is correct, then maybe this line should lead to the problem also in v11.1.1 where it also exists? However, this does not happen.
What I did not understand, is: why this line does not cause problems in v11.1.1? It exists also there, but this fact does not prevent swapping pets in v11.1.1.
In other words: how the same line exists in both versions, claimed to cause the problem in only one of them, and still is nominated as source of the problem?
Hello, Cinciao16.
Thank you for the idea which you described. But there is something not 100% clear to me in this idea: the same "guilty" line exists also in the v11.1.1 which is known as working correctly. Do you have some comment regarding this strange thing?Hello, I was running into the issue as others were, the issue where I could not choose a pet to battle once the active one had died. I had to manually /reload the game each time. If I wanted to avoid doing this, I would have to disable the Pet Tracker Battle option in the Interface Menu and battle without the opponent's abilities being shown. Something between the switcher and having the opponent's abilities displaying was conflicting with each other. My game is updated with patch 11.1.1 and it was working, but one day it stopped working and not sure why or exactly when it stopped. This option was the only reason why I use Pet Tracker, as I depend on it when I am working on Pet Battle Achievements. For clarification, the Pet Battle Tracker is what I circled in the screenshot:
Hope this answers your question, CinciaoSorry, this is not exactly what I asked. I meant something other. Same as other people, I encountered the problem with PetTracker v11.1.2 which prevents to swap pets. In order to solve the problem, you suggested to replace the following line...
self.Close:SetEnabled(Addon.Battle:IsPvE() and Addon.Battle(Enum.BattlePetOwner.Ally):IsAlive())
...by other code which you published here. You even explained why it should help. We all thank you for this. But if your explanation is correct, then maybe this line should lead to the problem also in v11.1.1 where it also exists? However, this does not happen. What I did not understand, is: why this line does not cause problems in v11.1.1? It exists also there, but this fact does not prevent swapping pets in v11.1.1. In other words: how the same line exists in both versions, claimed to cause the problem in only one of them, and still is nominated as source of the problem?
At the beginning of 11.1.0 (Blizzard Version), it was working fine. I am not sure what happened between then and yesterday, but the switcher would not show up if I had Pet Tracker -Battle selected. I still had the other two options (PetTracker-Config and PetTracker-Journal ) selected, it was only the first option that conflicted with the Switcher file.
My version of PetTracker is 11.1.2 where an issue with the switcher was fixed for not showing the right quality. Maybe that is what created the problem, not sure. All i know is that the fix that I posted is now working.
Version of Pettracker:
The Changelog from CurseForge:
*Also: I didn't create this Add-on, therefore, I don't know why one version works and the other doesn't, when they had the same line in their code
this change doesn't fix the switcher it just breaks it which makes the default one load, it's the same as turning it off in the options
if you get the last version 11.1.1, and copy the switcher.lua file to overwrite the newer one in the current version, it works.
I was having the same issue so I came here to report and instead got answers. For one, Im glad I wasn't the only one having this issue. What's more is that I discovered this issues WHILE IN THE CELESTIAL TOURNAMENT!!! So as you all know, having a pet die for no reason is awful!
When I would /reload all pets names turned red but I was still able to continue. The downfall was that the enemy ability tracker would go away. But after reading these comments, what I ended up trying was disabling the swapper in the actual addon's options.
So Game Menu>Options>Add ons>PetTracker> Uncheck the box that says "Switcher." It is in the combat section.
I tested this 3 times before commenting and everything else seems to work well. Happy gaming.