#PetTrackerDisplay lua error

2 messages · Page 1 of 1 (latest)

short idol
#

The error mentioned in: https://discord.com/channels/351028600713117697/1482818803606880409 still happens in the current version 20260316.03

When reloading (never did it in combat, only ever in silvermoon) with a dismissed pet, it shows the pet missing indicator, once you call a pet the lua error happens and the pet missing indicator stays.

When reloading with a pet out the lua error happens on init and the indicator doesnt show as expected, once you dismiss the pet the indicator shows, after dismissing like above the indicator stays.

[NaowhQOL/Modules/PetTrackerDisplay.lua]:78: in function <NaowhQOL/Modules/PetTrackerDisplay.lua:73>
[NaowhQOL/Modules/PetTrackerDisplay.lua]:168: in function <NaowhQOL/Modules/PetTrackerDisplay.lua:141>
[NaowhQOL/Modules/PetTrackerDisplay.lua]:238: in function 'UpdateDisplay'
[NaowhQOL/Modules/PetTrackerDisplay.lua]:360: in function <NaowhQOL/Modules/PetTrackerDisplay.lua:292>


Locals:
maxHP = 211210
db = <table> {
 colorR = 1
 point = "CENTER"
 passiveText = "Pet Passive"
 wrongPetText = "Wrong Pet"
 unlock = false
 lowHealthThreshold = 25
 hideWhenMounted = true
 showIcon = true
 iconSize = 42
 textSize = 18
 enabled = true
 lowHealthEnabled = true
 showPassive = false
 lowHealthText = "Pet Low HP"
 x = 0
 width = 200
 y = 216
 font = "Naowh"
 missingText = "Pet Missing"
 colorG = 0
 height = 50
 colorB = 0
 onlyInInstance = false
 combatOnly = false
}
threshold = 25
(*temporary) = nil
(*temporary) = <no value>
(*temporary) = nil
(*temporary) = "211210"
(*temporary) = "attempt to perform arithmetic on a nil value"
outer finch
#

will review, ty for recreation steps