Talented Classic

Talented Classic

519k Downloads

Edit talents error

class2u opened this issue · 5 comments

commented

Got this error when clicking talent icons with "Edit talents" checked.
I am using Talented Classic v191004 and zhTW Client.

5x Talented\learn-學習.lua:46: attempt to index global 'template' (a nil value)
Talented\learn-學習.lua:46: in function LearnTalent' Talented\view-檢視.lua:350: in function UpdateTalent'
Talented\view-檢視.lua:341: in function `OnTalentClick'
Talented\ui\buttons.lua:24: in function <Talented\ui\buttons.lua:22>

Locals:
self =

{
CreateTemplateMenu = defined @talented\ui\menu.lua:104
defaults =
{
}
LoadAddOn = defined @talented\core.lua:66
OpenOptionsFrame = defined @talented\ui\menu.lua:26
MakeArrow = defined @talented\ui\arrows.lua:17
GetTalentPrereqs = defined @talented\spell.lua:234
spelldata =
{
}
UnregisterComm = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
HideTooltipInfo = defined @talented\tips.lua:134
DataAddonLoaded = defined @talented\talents.lua:151
GetDefaultMode = defined @talented\core.lua:260
SetDefaultModulePrototype = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
UpdateTemplateName = defined @talented\core.lua:115
GetMode = defined @talented\core.lua:46
SetTemplate = defined @talented\core.lua:239
SetMode = defined @talented\core.lua:50
RegisterMessage = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterMessage = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
Update = defined @talented\core.lua:330
hooks =
{
}
SendCommMessage = defined @BugSack\Libs\AceComm-3.0\AceComm-3.0.lua:87
db =
{
}
mode = "edit"
UnregisterAllComm = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
SetEnabledState = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
Hook = defined @talented\Libs\AceHook-3.0\AceHook-3.0.lua:274
OpenTemplate = defined @talented\core.lua:221
OnEnable = defined @talented\core.lua:264
GetTemplateStringClass = defined @talented\encode.lua:15
MakeButton = defined @talented\ui\buttons.lua:75
ImportTemplate = defined @talented\core.lua:199
Pool =
{
}
UnregisterAllEvents = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
optionsFrame = {
}
Deserialize = defined @BugSack\Libs\AceSerializer-3.0\AceSerializer-3.0.lua:246
MakeActionMenu = defined @talented\ui\menu.lua:363
TalentView =
{
}
GetName = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:279
views =
{
}
name = "Talented"
UpdateView = defined @talented\viewmode.lua:90
GetTalentInfo = defined @talented\talents.lua:195
Disable = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:314
GetOption = defined @talented\options.lua:62
Unhook = defined @talented\Libs\AceHook-3.0\AceHook-3.0.lua:418
Print = defined @talented\core.lua:6
UncompressSpellData = defined @talented\spell.lua:96
SetOption = defined @talented\options.lua:55
UpdateCurrentTemplate = defined @talented\viewmode.lua:44
Serialize = defined @BugSack\Libs\AceSerializer-3.0\AceSerializer-3.0.lua:122
Debug = defined @talented\core.lua:14
EnableUI = defined @talented\ui\base.lua:362
MakeTalentFrame = defined @talented\ui\trees.lua:99
R

commented

Huh. I had disabled the "Confirm Learn" option on my client and so never noticed this problem. I've fixed it, I hope, but I haven't had a chance to test it, as I'm going to work and there's no way I'm playing the game to level up and test it. Please let me know if it works.

commented

It is still not working in v191007. The error message is

4x Talented\learn-學習.lua:52: attempt to index global 'template' (a nil value)
Talented\learn-學習.lua:52: in function LearnTalent' Talented\view-檢視.lua:350: in function UpdateTalent'
Talented\view-檢視.lua:341: in function `OnTalentClick'
Talented\ui\buttons.lua:24: in function <Talented\ui\buttons.lua:22>

Locals:
self =

{
CreateTemplateMenu = defined @talented\ui\menu.lua:65
defaults =
{
}
LoadAddOn = defined @talented\core.lua:66
OpenOptionsFrame = defined @talented\ui\menu.lua:26
MakeArrow = defined @talented\ui\arrows.lua:17
GetTalentPrereqs = defined @talented\spell.lua:234
UnregisterComm = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
HideTooltipInfo = defined @talented\tips.lua:134
DataAddonLoaded = defined @talented\talents.lua:151
GetDefaultMode = defined @talented\core.lua:260
SetDefaultModulePrototype = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
UpdateTemplateName = defined @talented\core.lua:115
GetMode = defined @talented\core.lua:46
SetTemplate = defined @talented\core.lua:239
SetMode = defined @talented\core.lua:50
RegisterMessage = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterMessage = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
Update = defined @talented\core.lua:330
hooks =
{
}
SendCommMessage = defined @BugSack\Libs\AceComm-3.0\AceComm-3.0.lua:87
db =
{
}
mode = "edit"
UnregisterAllComm = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
SetEnabledState = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
Hook = defined @talented\Libs\AceHook-3.0\AceHook-3.0.lua:274
OpenTemplate = defined @talented\core.lua:221
OnEnable = defined @talented\core.lua:264
GetTemplateStringClass = defined @talented\encode.lua:15
MakeButton = defined @talented\ui\buttons.lua:75
ImportTemplate = defined @talented\core.lua:199
Pool =
{
}
UnregisterAllEvents = defined @!!!EaseAddonController\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
optionsFrame = {
}
Deserialize = defined @BugSack\Libs\AceSerializer-3.0\AceSerializer-3.0.lua:246
MakeActionMenu = defined @talented\ui\menu.lua:363
TalentView =
{
}
GetName = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:279
views =
{
}
name = "Talented"
UpdateView = defined @talented\viewmode.lua:90
GetTalentInfo = defined @talented\talents.lua:195
Disable = defined @!!!EaseAddonController\Libs\AceAddon-3.0\AceAddon-3.0.lua:314
GetOption = defined @talented\options.lua:62
Unhook = defined @talented\Libs\AceHook-3.0\AceHook-3.0.lua:418
Print = defined @talented\core.lua:6
UncompressSpellData = defined @talented\spell.lua:96
SetOption = defined @talented\options.lua:55
UpdateCurrentTemplate = defined @talented\viewmode.lua:44
Serialize = defined @BugSack\Libs\AceSerializer-3.0\AceSerializer-3.0.lua:122
Debug = defined @talented\core.lua:14
EnableUI = defined @talented\ui\base.lua:362
MakeTalentFrame = defined @talented\ui\trees.lua:99
RegisterComm = de

commented

Ha. It's like remote debugging. I updated again. Try now, if you can.

commented

It works fine now in v191007b. Thank you so much!

commented