Talented Classic

Talented Classic

519k Downloads

Error when trying to change Role on Talents

Melocide opened this issue ยท 2 comments

commented

When i try to change my Role on the Talents (e.g. Tank) i get LUA Errors

1x Talented/ui/menu.lua:452: attempt to call global 'SetTalentGroupRole' (a nil value)
[string "@Talented/ui/menu.lua"]:452: in function func' [string "@FrameXML/UIDropDownMenu.lua"]:968: in function UIDropDownMenuButton_OnClick'
[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1: in function <[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1>

Locals:
self = DropDownList1Button1 {
0 =
Highlight = DropDownList1Button1Highlight {
}
invisibleButton = DropDownList1Button1InvisibleButton {
}
func = defined @Talented/ui/menu.lua:451
classicChecks = true
backdrop = Frame {
}
value = "TANK"
Icon = DropDownList1Button1Icon {
}
checked = false
}
(*temporary) = nil
(*temporary) = 2
(*temporary) = "TANK"
(*temporary) = "attempt to call global 'SetTalentGroupRole' (a nil value)"
Talented =

{
CreateTemplateMenu = defined @Talented/ui/menu.lua:65
defaults =
{
}
LoadAddOn = defined @Talented/core.lua:76
OpenOptionsFrame = defined @Talented/ui/menu.lua:26
MakeArrow = defined @Talented/ui/arrows.lua:17
GetTalentPrereqs = defined @Talented/spell.lua:215
spelldata =
{
}
UnregisterComm = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
HideTooltipInfo = defined @Talented/tips.lua:126
GetDefaultMode = defined @Talented/core.lua:293
SetDefaultModulePrototype = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:405
convertWowTalentIndexToOrderedIndex = defined @Talented/IndexMatching.lua:12
UpdateTemplateName = defined @Talented/core.lua:128
GetMode = defined @Talented/core.lua:56
SetTemplate = defined @Talented/core.lua:269
SetMode = defined @Talented/core.lua:60
GetRoleIcon = defined @Talented/ui/roleselect.lua:13
OrderedGetTalentInfo = defined @Talented/IndexMatching.lua:33
RegisterMessage = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
UnregisterMessage = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
Update = defined @Talented/core.lua:375
GetTemplateTalentGroupRole = defined @Talented/ui/roleselect.lua:1
hooks =
{
}
SendCommMessage = defined @Ace3/AceComm-3.0/AceComm-3.0.lua:83
db =
{
}
mode = "view"
UnregisterAllComm = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
SetEnabledState = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:420
Hook = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:273
OrderedLearnTalent = defined @Talented/IndexMatching.lua:28
OpenTemplate = defined @Talented/core.lua:249
OnEnable = defined @Talented/core.lua:297
GetTemplateStringClass = defined @Talented/encode.lua:15
MakeButton = defined @Talented/ui/buttons.lua:75
ImportTemplate = defined @Talented/core.lua:214
Pool =
{
}
spellDescCache =
{
}
UnregisterAllEvents = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
USE_GLYPH = defined @Talented/glyph.lua:4
optionsFrame = Frame {
}
Deserialize = defined @Ace3/AceSerializer-3.0/AceSerializer-3.0.lua:246
OrderedTalentPrereqs = defined @Talented/IndexMatching.lua:42
TalentView =
{
}
GetName = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:275
views =
{
}
name = "Talented"
UpdateView = defined @Talented/viewmode.lua:58
Disable = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:310
GetOption = defined @Talented/options.lua:66
Unhook = defined @Ace3/AceHook-3.0/AceHook-3.

commented

Push! I get the same error. Since so many people use Weakauras for ICC raiding it would be nice to get this fixed. Many WA's depend on the right raid role.

12x Talented/ui/menu.lua:452: attempt to call global 'SetTalentGroupRole' (a nil value)
[string "@Talented/ui/menu.lua"]:452: in function func' [string "@FrameXML/UIDropDownMenu.lua"]:968: in function UIDropDownMenuButton_OnClick'
[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1: in function <[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1>

Locals:
self = DropDownList1Button1 {
0 =
Highlight = DropDownList1Button1Highlight {
}
invisibleButton = DropDownList1Button1InvisibleButton {
}
func = defined @Talented/ui/menu.lua:451
classicChecks = true
value = "TANK"
Icon = DropDownList1Button1Icon {
}
checked = false
}
(*temporary) = nil
(*temporary) = 2
(*temporary) = "TANK"
(*temporary) = "attempt to call global 'SetTalentGroupRole' (a nil value)"
Talented =

{
CreateTemplateMenu = defined @Talented/ui/menu.lua:65
defaults =
{
}
LoadAddOn = defined @Talented/core.lua:76
OpenOptionsFrame = defined @Talented/ui/menu.lua:26
MakeArrow = defined @Talented/ui/arrows.lua:17
GetTalentPrereqs = defined @Talented/spell.lua:215
spelldata =
{
}
UnregisterComm = defined @ACU/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:148
HideTooltipInfo = defined @Talented/tips.lua:126
GetDefaultMode = defined @Talented/core.lua:293
SetDefaultModulePrototype = defined @ACU/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
convertWowTalentIndexToOrderedIndex = defined @Talented/IndexMatching.lua:12
UpdateTemplateName = defined @Talented/core.lua:128
GetMode = defined @Talented/core.lua:56
SetTemplate = defined @Talented/core.lua:269
SetMode = defined @Talented/core.lua:60
GetRoleIcon = defined @Talented/ui/roleselect.lua:13
OrderedGetTalentInfo = defined @Talented/IndexMatching.lua:33
RegisterMessage = defined @ACU/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:85
UnregisterMessage = defined @ACU/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:148
Update = defined @Talented/core.lua:375
GetTemplateTalentGroupRole = defined @Talented/ui/roleselect.lua:1
hooks =
{
}
SendCommMessage = defined @ACU/Libs/AceComm-3.0/AceComm-3.0.lua:83
db =
{
}
mode = "view"
UnregisterAllComm = defined @ACU/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:169
SetEnabledState = defined @ACU/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
Hook = defined @ACU/Libs/AceHook-3.0/AceHook-3.0.lua:273
OrderedLearnTalent = defined @Talented/IndexMatching.lua:28
OpenTemplate = defined @Talented/core.lua:249
OnEnable = defined @Talented/core.lua:297
GetTemplateStringClass = defined @Talented/encode.lua:15
MakeButton = defined @Talented/ui/buttons.lua:75
ImportTemplate = defined @Talented/core.lua:214
Pool =
{
}
spellDescCache =
{
}
UnregisterAllEvents = defined @ACU/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:169
USE_GLYPH = defined @Talented/glyph.lua:4
optionsFrame = Frame {
}
Deserialize = defined @ACU/Libs/AceSerializer-3.0/AceSerializer-3.0.lua:246
OrderedTalentPrereqs = defined @Talented/IndexMatching.lua:42
TalentView =
{
}
GetName = defined @ACU/Libs/AceAddon-3.0/AceAddon-3.0.lua:275
views =
{
}
name = "Talented"
UpdateView = defined @Talented/viewmode.lua:58
Disable = defined @ACU/Libs/AceAddon-3.0/AceAddon-3.0.lua:310
GetOption = defined @Talented/options.lua:66
Unhook = defined @ac

commented

I am also getting an error when attempting to change the Role icon in the Talented talent tree menu.

Here is the error copied from BugSack:
https://pastebin.com/ggtG1Ddc
https://controlc.com/b64b5e21

RAW Lua error pasted below:

14x Talented/ui/menu.lua:452: attempt to call global 'SetTalentGroupRole' (a nil value)
[string "@Talented/ui/menu.lua"]:452: in function func' [string "@FrameXML/UIDropDownMenu.lua"]:968: in function UIDropDownMenuButton_OnClick'
[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1: in function <[string "*UIDropDownMenuTemplates.xml:149_OnClick"]:1>

Locals:
self = DropDownList1Button3 {
0 =
Highlight = DropDownList1Button3Highlight {
}
invisibleButton = DropDownList1Button3InvisibleButton {
}
func = defined @Talented/ui/menu.lua:451
classicChecks = true
hookedfix = true
checked = false
value = "DAMAGER"
Icon = DropDownList1Button3Icon {
}
backdrop = Frame {
}
}
(*temporary) = nil
(*temporary) = 1
(*temporary) = "DAMAGER"
(*temporary) = "attempt to call global 'SetTalentGroupRole' (a nil value)"
Talented =

{
CreateTemplateMenu = defined @Talented/ui/menu.lua:65
defaults =
{
}
LoadAddOn = defined @Talented/core.lua:76
OpenOptionsFrame = defined @Talented/ui/menu.lua:26
MakeArrow = defined @Talented/ui/arrows.lua:17
GetTalentPrereqs = defined @Talented/spell.lua:215
spelldata =
{
}
UnregisterComm = defined @LibSharedMedia-3.0/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
HideTooltipInfo = defined @Talented/tips.lua:126
GetDefaultMode = defined @Talented/core.lua:293
SetDefaultModulePrototype = defined @ActionBarSaverReloaded/Libs/AceAddon-3.0/AceAddon-3.0.lua:409
convertWowTalentIndexToOrderedIndex = defined @Talented/IndexMatching.lua:12
UpdateTemplateName = defined @Talented/core.lua:128
GetMode = defined @Talented/core.lua:56
SetTemplate = defined @Talented/core.lua:269
SetMode = defined @Talented/core.lua:60
GetRoleIcon = defined @Talented/ui/roleselect.lua:13
OrderedGetTalentInfo = defined @Talented/IndexMatching.lua:33
RegisterMessage = defined @ActionBarSaverReloaded/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:90
UnregisterMessage = defined @ActionBarSaverReloaded/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:153
Update = defined @Talented/core.lua:375
GetTemplateTalentGroupRole = defined @Talented/ui/roleselect.lua:1
hooks =
{
}
SendCommMessage = defined @ElvUI_Libraries/Core/Ace3/AceComm-3.0/AceComm-3.0.lua:83
db =
{
}
mode = "view"
UnregisterAllComm = defined @LibSharedMedia-3.0/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
SetEnabledState = defined @ActionBarSaverReloaded/Libs/AceAddon-3.0/AceAddon-3.0.lua:424
Hook = defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:273
OrderedLearnTalent = defined @Talented/IndexMatching.lua:28
OpenTemplate = defined @Talented/core.lua:249
OnEnable = defined @Talented/core.lua:297
GetTemplateStringClass = defined @Talented/encode.lua:15
MakeButton = defined @Talented/ui/buttons.lua:75
ImportTemplate = defined @Talented/core.lua:214
Pool =
{
}
spellDescCache =
{
}
UnregisterAllEvents = defined @ActionBarSaverReloaded/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:174
USE_GLYPH = defined @Talented_GlyphFrame/hook.lua:1
optionsFrame = Frame {
}
Deserialize = defined @ActionBarSaverReloaded/Libs/AceSerializer-3.0/AceSerializer-3.0.lua:246
OrderedTalentPrereqs = defined @Talented/IndexMatching.lua:42
TalentView =
{
}
GetName = defined @ActionBarSaverReloaded/Libs/AceAddon-3.0/AceAddon-3.0.lua:279
views =
{
}
name = "Talented"
UpdateView = defined @ad