Jaliborc / PetTracker

Tracks pets, alerts for upgrades and helps you in pet battles.
48 stars 26 forks source link

Error when starting Pet Battle #396

Open sauljaffe opened 3 weeks ago

sauljaffe commented 3 weeks ago

First, I want to say THANK YOU for updating PetTracker to 11.0.x!

Which software were you running?

Have you read the changelog? Yes

Please describe the bug. I got an error when starting a pet battle with Adinakon in Dragonflight. BugSack/BugGrabber reports an error and I got the annoying "fatality" notice from the API. I also got the message saying that there are no upgrades available and asking if I want to quit so it's not recognizing Adinakon as a "special" pet battle. See screenshot.

Please describe how to reproduce it. Start a pet battle in Dragonflight with Adinakon. Note that when I went back to fight Adinakon again to get the screenshot (missed it the first time) that I did not get the error reported by BugSack/BugGrabber below - I only got the error shown in the screenshot. It's possible that the error reported by BugSack/BugGrabber only happens the first battle of the day since Adinakon was the first battle and the error didn't occur with any other pet battles today. So this might actually be two separate problems.

Any Screenshots? https://ibb.co/pxck8RS

Error Logs are Important! Info from BugSack/BugGrabber: 1x bad argument #1 to '?' (Usage: SetPortraitToTexture(texture, asset)) string "=[C]": in function SetPortraitToTexture' [string "@PetTracker/addons/battle/switcher.lua"]:21: in function?' [string "@PetTracker/libs/WildAddon-1.0-2/WildAddon-1.0.lua"]:20: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:18> [string "@PetTracker/libs/WildAddon-1.0-2/WildAddon-1.0.lua"]:56: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:53>

[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire' [string "@CoordsTracking/Libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <...ns/CoordsTracking/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

string "=[C]": in function LoadAddOn' [string "@PetTracker/addons/main/main.lua"]:49: in function?' [string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>

[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire' [string "@CoordsTracking/Libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <...ns/CoordsTracking/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: (*temporary) = "bad argument #1 to '?' (Usage: SetPortraitToTexture(texture, asset))"