tullamods / tullaRange

Colors actionbuttons when out of range
https://tullamods.com/tullaRange
MIT License
18 stars 6 forks source link

[Wrath Classic Live] 10.1.5-beta1 updater error #26

Closed Road-block closed 1 year ago

Road-block commented 1 year ago
1x tullaRange/updater.classic.lua:66: attempt to index field 'hotkey' (a nil value)
[string "@tullaRange/updater.classic.lua"]:66: in function <tullaRange/updater.classic.lua:29>

Locals:
getActionState = <function> defined @tullaRange/actionState.lua:36
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
  = true
}
(for control) = MultiBarRightButton5 {
 NormalTexture = MultiBarRightButton5NormalTexture {
 }
 NewActionTexture = Texture {
 }
 Border = MultiBarRightButton5Border {
 }
 Flash = MultiBarRightButton5Flash {
 }
 flashtime = 0
 icon = MultiBarRightButton5Icon {
 }
 AutoCastable = Texture {
 }
 SetActionOffsetInsecure = <function> defined @Dominos/bars/actionBar/button.lua:9
 commandName = "MULTIACTIONBAR3BUTTON5"
 SetShowCountText = <function> defined @Dominos/bars/actionBar/button.lua:57
 SetShowCooldowns = <function> defined @Dominos/bars/actionBar/button.lua:83
 SetShowMacroText = <function> defined @Dominos/bars/actionBar/button.lua:65
 HotKey = MultiBarRightButton5HotKey {
 }
 action = 29
 buttonType = "MULTIACTIONBAR3BUTTON"
 flashing = 0
 UpdateShownInsecure = <function> defined @Dominos/bars/actionBar/button.lua:36
 feedback_action = 29
 UpdateHotkeys = <function> defined @Dominos/core/bindableButton.lua:125
 Update = <function> defined @FrameXML/ActionButton.lua:342
 SetShowGridInsecure = <function> defined @Dominos/bars/actionBar/button.lua:23
 SetShowEquippedItemBorders = <function> defined @Dominos/bars/actionBar/button.lua:73
 FlyoutBorderShadow = MultiBarRightButton5FlyoutBorderShadow {
 }
 0 = <userdata>
 SpellHighlightAnim = AnimationGroup {
 }
 SetFlyoutDirection = <function> defined @Dominos/bars/actionBar/button.lua:48
 eventsRegistered = true
 UpdateState = <function> defined @FrameXML/ActionButton.lua:502
 Name = MultiBarRightButton5Name {
 }
 SpellHighlightTexture = Texture {
 }
 displayName = "Action Bar 3 Button 5"
 UpdateFlyout = <function> defined @FrameXML/ActionButton.lua:940
 rangeTimer = -1
 Count = MultiBarRightButton5Count {
 }
 AutoCastShine = MultiBarRightButton5Shine {
 }
 FlyoutBorder = MultiBarRightButton5FlyoutBorder {
 }
 FlyoutArrow = MultiBarRightButton5FlyoutArrow {
 }
 cooldown = MultiBarRightButton5Cooldown {
 }
 zoneAbilityDisabled = false
}
button = MultiBarRightButton5 {
 NormalTexture = MultiBarRightButton5NormalTexture {
 }
 NewActionTexture = Texture {
 }
 Border = MultiBarRightButton5Border {
 }
 Flash = MultiBarRightButton5Flash {
 }
 flashtime = 0
 icon = MultiBarRightButton5Icon {
 }
 AutoCastable = Texture {
 }
 SetActionOffsetInsecure = <function> defined @Dominos/bars/actionBar/button.lua:9
 commandName = "MULTIACTIONBAR3BUTTON5"
 SetShowCountText = <function> defined @Dominos/bars/actionBar/button.lua:57
 SetShowCooldowns = <function> defined @Dominos/bars/actionBar/button.lua:83
 SetShowMacroText = <function> defined @Dominos/bars/actionBar/button.lua:65
 HotKey = MultiBarRightButton5HotKey {
 }
 action = 29
 buttonType = "MULTIACTIONBAR3BUTTON"
 flashing = 0
 UpdateShownInsecure = <function> defined @Dominos/bars/actionBar/button.lua:36
 feedback_action = 29
 UpdateHotkeys = <function> defined @Dominos/core/bindableButton.lua:125
 Update = <function> defined @FrameXML/ActionButton.lua:342
 SetShowGridInsecure = <function> defined @Dominos/bars/actionBar/button.lua:23
 SetShowEquippedItemBorders = <function> defined @Dominos/bars/actionBar/button.lua:73
 FlyoutBorderShadow = MultiBarRightButton5FlyoutBorderShadow {
 }
 0 = <userdata>
 SpellHighlightAnim = AnimationGroup {
 }
 SetFlyoutDirection = <function> defined @Dominos/bars/actionBar/button.lua:48
 eventsRegistered = true
 UpdateState = <function> defined @FrameXML/ActionButton.lua:502
 Name = MultiBarRightButton5Name {
 }
 SpellHighlightTexture = T
Road-block commented 1 year ago

Changing the offending line 66 to

hotkey:SetVertexColor(r, g, b)

seems to be a simple fix.

Tuller commented 1 year ago

Thanks, this should be fixed in the next beta release