Page 1 of 1

Battle Pet Battle UI Tweaks

Posted: October 15th, 2022, 11:52 am
by Flohsakk
I just make a new thread... the updated version was working fine. Unfortunately, this week's Beta updates changed that and we only get LUA errors:

Code: Select all

Message: ...terface/AddOns/BattlePetBattleUITweaks/abilities.lua:50: attempt to index field '?' (a nil value)
Time: Sat Oct 15 18:47:54 2022
Count: 17
Stack: ...terface/AddOns/BattlePetBattleUITweaks/abilities.lua:50: attempt to index field '?' (a nil value)
[string "@Interface/AddOns/BattlePetBattleUITweaks/abilities.lua"]:50: in function `callback'
[string "@Interface/AddOns/BattlePetBattleUITweaks/main.lua"]:18: in function <Interface/AddOns/BattlePetBattleUITweaks/main.lua:14>

Locals: self = Frame {
 0 = <userdata>
 OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
 ShowTooltip = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:122
 SetButtonHalfHeight = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:107
 SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
 vulnerabilities = <table> {
 }
 ApplyBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
 SetBorderBlendMode = <function> defined @Interface/SharedXML/Backdrop.lua:266
 Update = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:44
 enemyAbilities = <table> {
 }
 SetupTextureCoordinates = <function> defined @Interface/SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @Interface/SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @Interface/SharedXML/Backdrop.lua:278
 WatchEnemyCasts = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:245
 GetEdgeSize = <function> defined @Interface/SharedXML/Backdrop.lua:188
 buttons = <table> {
 }
 UpdateEnabled = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:267
 CreateAbilityButton = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:66
 IsAllAbilitiesKnown = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:220
 HideFrame = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:239
 ShowFrame = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:232
 FillAbilityButton = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:159
 FillEnemyAbilities = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:187
 FillAbilityCooldown = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:142
 SetupPieceVisuals = <function> defined @Interface/SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:399
 HideTooltip = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:137
 Setup = <function> defined @Interface/AddOns/BattlePetBattleUITweaks/abilities.lua:15
}
petIndex = 4
(for index) = 1
(for limit) = 3
(for step) = 1
abilityIndex = 1
button = Button {
 0 = <userdata>
 highlight = Texture {
 }
 cooldown = FontString {
 }
 hint = Texture {
 }
 icon = Texture {
 }
 back = Texture {
 }
}
altButton = Button {
 0 = <userdata>
 highlight = Texture {
 }
 cooldown = FontString {
 }
 hint = Texture {
 }
 icon = Texture {
 }
 back = Texture {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"

Re: Battle Pet Battle UI Tweaks

Posted: October 22nd, 2022, 9:23 am
by Gello
Sorry for not catching this thread sooner. Thanks for heads up! I'll get a fix posted today.

It looks like this just affects beta and not PTR.

Re: Battle Pet Battle UI Tweaks

Posted: October 24th, 2022, 2:43 am
by Flohsakk
Thank you!

Re: Battle Pet Battle UI Tweaks

Posted: October 27th, 2022, 12:56 am
by Flohsakk
Sorry, I didn't add that to the initial post (and it was there before your update), but on Beta, the player pet's stats are shown on the enemy side, so the numbers overlap.
Image

Re: Battle Pet Battle UI Tweaks

Posted: October 27th, 2022, 4:50 am
by Gello
Looks like the health ticks were similarly affected. Fix uploaded, thanks!