Broker_Classic_Training

Broker_Classic_Training

11.4k Downloads

nil 'quest_name' line 200

Kataclasm opened this issue ยท 2 comments

commented

I am currently a level 23 Shaman and I am on the quest chain to get my water totem. Starting getting the error below. The quest is called Call of Water. Once i commented out the if/then statement around line 200, the error went away with the addon showing:

Spells
20 Healing Stream Totem Rank 1 Quest

[but of course, with no quest name]

The Error:

4x Broker_Classic_Training\main.lua:200: attempt to concatenate field 'quest_name' (a nil value)
Broker_Classic_Training\main.lua:200: in function FormatSpells' Broker_Classic_Training\main.lua:110: in function BuildTrainingData'
Broker_Classic_Training\main.lua:285: in function `OnTooltipShow'
ChocolateBar\Chocolate.lua:249: in function <ChocolateBar\Chocolate.lua:228>

Locals:
self =

{
SetDefaultModuleLibraries = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:367
kbDEBUG = true
Enable = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:294
NewModule = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:235
EnableModule = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:332
modules =
{
}
GetModule = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:210
IterateEmbeds = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:442
defaultModuleLibraries =
{
}
Feed =
{
}
FilterSpells = defined @Broker_Classic_Training\main.lua:130
FormatSpellBooks = defined @Broker_Classic_Training\main.lua:237
SetDefaultModulePrototype = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:409
UpdateLabel = defined @Broker_Classic_Training\main.lua:66
GetLabels = defined @Broker_Classic_Training\main.lua:71
Dump = defined @Broker_Classic_Training\main.lua:30
name = "Broker_Classic_Training"
IsEnabled = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:451
orderedModules =
{
}
DisableModule = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:350
SPELLS_CHANGED = defined @Broker_Classic_Training\main.lua:311
RegisterMessage = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterMessage = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
constants =
{
}
IsModule = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:468
SendMessage = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:59
baseName = "Broker_Classic_Training"
PLAYER_LEVEL_UP = defined @Broker_Classic_Training\main.lua:306
SetEnabledState = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:424
PLAYER_ENTERING_WORLD = defined @Broker_Classic_Training\main.lua:301
enabledState = true
SetDefaultModuleState = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:387
RegisterEvent = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterAllMessages = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
FormatSpells = defined @Broker_Classic_Training\main.lua:163
BuildTrainingData = defined @Broker_Classic_Training\main.lua:91
GetClassColourHex = defined @Broker_Classic_Training\main.lua:37
IterateModules = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:437
UnregisterAllEvents = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
FilterSpellBooks = defined @Broker_Classic_Training\main.lua:212
GetName = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:279
defaultModuleState = true
UnregisterEvent = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
Disable = defined @bagnon\common\Wildpants\libs\AceAddon-3.0\AceAddon-3.0.lua:314
}
self = GameTooltip {
0 =
SetSpellBookItem = <function

commented

Hi, I have just pushed a commit for this quest that should fix this issue, let me know.

commented

Unfortunately, i have already completed that quest and have trained the skill. I'll let you know if i see this problem with any other quest-connected training item, or when i get to the questline for the air totem.