Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosell not working #231

Open
GovtGeek opened this issue Oct 11, 2023 · 0 comments
Open

Autosell not working #231

GovtGeek opened this issue Oct 11, 2023 · 0 comments

Comments

@GovtGeek
Copy link

Which software were you running?

  • Addon version name: 10.1.7
  • Client used: Wrath 3.4.3

Have you read the changelog?
Yes

Please describe the bug.
No gray items are sold. The Scrap tab on the bottom of the merchant tab is broken. Lua errors are thrown if scriptErrors is set.

Please describe how to reproduce it.

  1. Go to Dalaran
  2. Click on Applebough (with a gray item)
  3. See error

Any Screenshots?
If applicable, please add screenshots to help explain your problem.

Error Logs are Important!

Message: Interface/SharedXML/SharedUIPanelTemplates.lua:538: attempt to index local 'leftDisabled' (a nil value)
Time: Wed Oct 11 01:06:00 2023
Count: 1
Stack: Interface/SharedXML/SharedUIPanelTemplates.lua:538: attempt to index local 'leftDisabled' (a nil value)
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:538: in function `PanelTemplates_DeselectTab'
[string "@Interface/AddOns/Scrap/libs/SecureTabs-2.0/SecureTabs-2.0.lua"]:47: in function `Add'
[string "@Interface/AddOns/Scrap/addons/merchant/visualizer.lua"]:29: in function `?'
[string "@Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...ce/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:18>
[string "@Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...ce/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:53>
[string "=[C]"]: ?
[string "@Interface/AddOns/Scrap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...rap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/Scrap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/Scrap/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...face/AddOns/Scrap/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function `LoadAddOn'
[string "@Interface/AddOns/Scrap/addons/main/main.lua"]:35: in function <Interface/AddOns/Scrap/addons/main/main.lua:35>
[string "=[C]"]: ?
[string "@Interface/AddOns/Scrap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...rap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/Scrap/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/Scrap/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...face/AddOns/Scrap/libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: tab = MerchantFrameSecureTab0 {
 0 = <userdata>
 OnEnter = <function> defined @Interface/SharedXML/SharedUIPanelTemplates.lua:319
 LeftActive = Texture {
 }
 RightHighlight = Texture {
 }
 Right = Texture {
 }
 Left = Texture {
 }
 RightActive = Texture {
 }
 Middle = Texture {
 }
 OnShow = <function> defined @Interface/SharedXML/SharedUIPanelTemplates.lua:315
 OnLoad = <function> defined @Interface/SharedXML/SharedUIPanelTemplates.lua:304
 Text = FontString {
 }
 OnEvent = <function> defined @Interface/SharedXML/SharedUIPanelTemplates.lua:309
 TabTextures = <table> {
 }
 LeftHighlight = Texture {
 }
 OnLeave = <function> defined @Interface/SharedXML/SharedUIPanelTemplates.lua:326
 MiddleHighlight = Texture {
 }
 MiddleActive = Texture {
 }
}
name = "MerchantFrameSecureTab0"
left = Texture {
 0 = <userdata>
}
middle = Texture {
 0 = <userdata>
}
right = Texture {
 0 = <userdata>
}
text = FontString {
 0 = <userdata>
}
leftDisabled = nil
middleDisabled = nil
rightDisabled = nil
(*temporary) = "MerchantFrameSecureTab0RightDisabled"
(*temporary) = nil
(*temporary) = 0
(*temporary) = 2
(*temporary) = "attempt to index local 'leftDisabled' (a nil value)"

Temporary Solution
I dug a bit and the simple solution was to edit SecureTabs-2.0.
Change line 31:
Lib.template = PanelTabButtonMixin and 'PanelTabButtonTemplate' or 'CharacterFrameTabButtonTemplate'
to
Lib.template = 'CharacterFrameTabButtonTemplate'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant