ToxiUI - ElvUI edit

ToxiUI - ElvUI edit

262k Downloads

Lua error when using VehicleBar while also hiding default blizzard vigor bar

CodeW0lf opened this issue ยท 1 comments

commented

Description

What is the issue about?
Vehicle bar enabled with skyriding bar disabled appears to throw lua error. I think it's related to the fact that I have a weak aura that hides the default blizzard skyriding vigor and replaces it with its own skyriding interface.

Skyriding WA: https://wago.io/x5C6gaJRB/42

Lua error

40x ...Ons/ElvUI_ToxiUI/Modules/Plugins/VehicleBar/Core.lua:21: attempt to index field 'vigorBar' (a nil value)
[string "@ElvUI_ToxiUI/Modules/Plugins/VehicleBar/Core.lua"]:21: in function <...Ons/ElvUI_ToxiUI/Modules/Plugins/VehicleBar/Core.lua:12>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `Show'
[string "@Blizzard_FrameXML/SecureStateDriver.lua"]:100: in function <...rfaceBlizzard_FrameXML/SecureStateDriver.lua:95>
[string "@Blizzard_FrameXML/SecureStateDriver.lua"]:127: in function <...rfaceBlizzard_FrameXML/SecureStateDriver.lua:119>

Locals:
self = <table> {
 modules = <table> {
 }
 baseName = "ElvUI_ToxiUI"
 vigorHeight = 10
 defaultModuleState = true
 combatLock = false
 ab = <table> {
 }
 spacing = 2
 db = <table> {
 }
 enabledState = true
 isEnabled = false
 vdb = <table> {
 }
 defaultModuleLibraries = <table> {
 }
 Initialized = true
 name = "ElvUI_ElvUI_ToxiUI_VehicleBar"
 orderedModules = <table> {
 }
 bar = TXUIVehicleBar {
 }
 hooks = <table> {
 }
 moduleName = "VehicleBar"
}
defaultVigorBar = UIWidgetPowerBarContainerFrame {
 timerWidgets = <table> {
 }
 verticalAnchorPoint = "TOP"
 numTimers = 0
 dirtyLayout = true
 widgetFrames = <table> {
 }
 horizontalRelativePoint = "RIGHT"
 verticalAnchorYOffset = 0
 align = "center"
 dirty = false
 containerPoint = "CENTER"
 containerHolder = PowerBarContainerHolder {
 }
 widgetSetLayoutDirection = 0
 widgetPools = <table> {
 }
 numWidgetsShowing = 0
 horizontalAnchorXOffset = 2
 FrontModelScene = ModelScene {
 }
 verticalRelativePoint = "BOTTOM"
 widgetSetID = 283
 BackModelScene = ModelScene {
 }
 layoutIndex = 5
 horizontalRowContainerPool = <table> {
 }
 showAndHideOnWidgetSetRegistration = true
 horizontalAnchorPoint = "LEFT"
}
widgetInfo = <table> {
 scriptedAnimationEffectID = 0
 modelSceneLayer = 0
 numFullFrames = 6
 textureKit = "dragonriding_vigor"
 tooltipLoc = 6
 fillMax = 100
 shownState = 1
 fillMin = 0
 numTotalFrames = 6
 widgetTag = ""
 tooltip = "Vigor recharges while grounded, whether mounted or not, and while skyriding at high speeds."
 widgetScale = 0
 orderIndex = 0
 layoutDirection = 0
 inAnimType = 0
 fillValue = 0
 hasTimer = false
 outAnimType = 0
 widgetSizeSetting = 0
 pulseFillingFrame = false
}
(*temporary) = nil
(*temporary) = 283
(*temporary) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
 22 = <table> {
 }
 23 = <table> {
 }
 24 = <table> {
 }
 25 = <table> {
 }
 26 = <table> {
 }
}
(*temporary) = <table> {
 scriptedAnimationEffectID = 0
 modelSceneLayer = 0
 numFullFrames = 6
 textureKit = "dragonriding_vigor"
 tooltipLoc = 6
 fillMax = 100
 shownState = 1
 fillMin = 0
 numTotalFrames = 6
 widgetTag = ""
 tooltip = "Vigor recharges while grounded, whether mounted or not, and while skyriding at high speeds."
 widgetScale = 0
 orderIndex = 0
 layoutDirection = 0
 inAnimType = 0
 fillValue = 0
 hasTimer = false
 outAnimType = 0
 widgetSizeSetting = 0
 pulseFillingFrame = false
}
(*temporary) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
 22 = <table> {
 }
 23 = <table> {
 }
 24 = <table> {
 }
 25 = <table> {
 }
 26 = <table> {
 }
}
(*temporary) = 26
(*temporary) = nil
(*temporary) = "attempt to index field 'vigorBar' (a nil value)"

ToxiUI Status Report

Type /tx status in game and paste a screenshot of it here.
image

Screenshots

Screenshots often say more than words

To reproduce

If this issue is describing a bug, include some steps to reproduce the behavior

  1. Enable ToxiUI Vehicle bar
  2. Install something that hides default vigor bar, e.g. https://wago.io/x5C6gaJRB/42
  3. Mount a skyriding mount, error is thrown
commented

Having a WeakAura was unrelated, the issue was trying to index self.vigorBar when it's disabled :)

Fixed in b4b1c4b and will be available next release.