Jaliborc / PetTracker

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

PetTracker not showing on map or main screen #316

Closed MFKDGAF closed 1 year ago

MFKDGAF commented 1 year ago

Running Software (issues missing this information will be deleted):

Describe the bug PetTracker won't load/show on main screen and/or main map.

To Reproduce

  1. Download addon to correct location.
  2. Enable addon in addons
  3. Logon to character.

Expected behaviour Addon to load and be shown on mail screen and main map.

Screenshots [If applicable, add screenshots to help explain your problem.] (https://imgur.com/a/l16izVw)

Error Logs Type /console scriptErrors 1 in the chat and reload the game. If an error window appears, write here the message with ID: 1 (labelled 1/X). This is generally NOT the message that the window shows by default.

Message: ...ker/libs/CustomTutorials-2.1-11/CustomTutorials-2.1.lua:55: attempt to index field 'TitleText' (a nil value) Time: Sat Dec 3 18:30:21 2022 Count: 1 Stack: ...ker/libs/CustomTutorials-2.1-11/CustomTutorials-2.1.lua:55: attempt to index field 'TitleText' (a nil value) [string "@Interface/AddOns/PetTracker/addons/config/tutorials.lua"]:36: in function Start' [string "@Interface/AddOns/PetTracker/addons/config/tutorials.lua"]:28: in function?' [string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:18> [string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:53>

[string "@Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:24: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:20> [string "@Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:59: in function Fire' [string "@Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119> [string "=[C]"]: in functionLoadAddOn' [string "@Interface/AddOns/PetTracker/addons/main/main.lua"]:46: in function `?' [string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:18> [string "@Interface/AddOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...dOns/PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua:53>

[string "@Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:24: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:20> [string "@Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:59: in function Fire' [string "@Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119> [string "=[C]"]: in functionLoadAddOn' [string "@Interface/FrameXML/UIParent.lua"]:536: in function UIParentLoadAddOn' [string "@Interface/FrameXML/UIParent.lua"]:667: in functionTimeManager_LoadUI' [string "@Interface/FrameXML/UIParent.lua"]:1482: in function <Interface/FrameXML/UIParent.lua:1362>

Locals:

Additional context I've deleted saved variables, then deleted the addon and then redownloaded the addon but still wont loadon main screen or map. I'm sure I am doing something wrong.

resilentstudios commented 1 year ago

I had this issue, but I think it's down to the database for the new area not being updated yet (pettrackers based on 9.25 to 10.0). Do the pets from other older world areas show up? The error message is the same as #315 and the fix was mentioned there, but i'm new to this sort of thing so not sure how to apply the fix yet. Tried manually searching for the code to change by hand but it's not there in the file referenced.

MFKDGAF commented 1 year ago

Pets from Shadowlands (Bastion) do show up on the world map and on the main screen. I figured there would atleast be some data on the world map in the Dragon Isles or on my main screen.

From here (before closing this issue out), does anyone know how the data is updated? I figured that when someone battles a pet, that pet's location would be added to their local database and then that database would be synced with all users that have the addon running/active - which I believe is how GatherMate2 and GatherMate2_Data does it.