Battle Pet Battle UI Tweaks

Discuss your favorite pet addons and macros.
Post Reply
User avatar
Flohsakk
Posts:222
Joined:July 19th, 2012
Pet Score:13312
Realm:Blackhand-eu
Contact:
Battle Pet Battle UI Tweaks

Post by Flohsakk » October 15th, 2022, 11:52 am

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)"

Gello
Posts:579
Joined:January 23rd, 2014
Pet Score:9171
Realm:Hyjal-us
Contact:

Re: Battle Pet Battle UI Tweaks

Post by Gello » October 22nd, 2022, 9:23 am

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.

User avatar
Flohsakk
Posts:222
Joined:July 19th, 2012
Pet Score:13312
Realm:Blackhand-eu
Contact:

Re: Battle Pet Battle UI Tweaks

Post by Flohsakk » October 24th, 2022, 2:43 am

Thank you!

User avatar
Flohsakk
Posts:222
Joined:July 19th, 2012
Pet Score:13312
Realm:Blackhand-eu
Contact:

Re: Battle Pet Battle UI Tweaks

Post by Flohsakk » October 27th, 2022, 12:56 am

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

Gello
Posts:579
Joined:January 23rd, 2014
Pet Score:9171
Realm:Hyjal-us
Contact:

Re: Battle Pet Battle UI Tweaks

Post by Gello » October 27th, 2022, 4:50 am

Looks like the health ticks were similarly affected. Fix uploaded, thanks!

Post Reply