Talent Loadout Manager

Talent Loadout Manager

83.4k Downloads

10.2 Leveling Module Error

Kyreaper opened this issue · 7 comments

commented

11-25-2023 -

Addon Version
1.2.3

Game Version: 10.2.0.52188, Retail, US, English

I am getting the following error on characters I am leveling. Insofar as I can tell this seems to happen whenever I get a level on my alts. I have not had a chance to try & replicate the error, but I noticed it at the end of a play session after leveling an alt. I do see the Accountant Classic addon listed numerous times in the error text, but I am not sure if this is a conflict between addons or something else.

1x ...aceTalentLoadoutManager/modules/Leveling.lua:44: attempt to index local 'loadoutInfo' (a nil value)
[string "@TalentLoadoutManager/modules/Leveling.lua"]:44: in function `ReapplyLoadout'
[string "@TalentLoadoutManager/modules/Leveling.lua"]:35: in function <...aceTalentLoadoutManager/modules/Leveling.lua:34>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
 Enable = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:290
 NewModule = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:231
 EnableModule = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 SecureHookScript = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:409
 defaultModuleLibraries = <table> {
 }
 UnregisterChatCommand = <function> defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:107
 RawHookScript = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:394
 Printf = <function> defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
 ReapplyLoadout = <function> defined @TalentLoadoutManager/modules/Leveling.lua:40
 GetName = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:275
 name = "TalentLoadoutManager_Leveling"
 baseName = "TalentLoadoutManager"
 IsEnabled = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 PLAYER_REGEN_ENABLED = <function> defined @TalentLoadoutManager/modules/Leveling.lua:57
 DisableModule = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 AddToCombatLockdownQueue = <function> defined @TalentLoadoutManager/modules/Leveling.lua:49
 PLAYER_LEVEL_UP = <function> defined @TalentLoadoutManager/modules/Leveling.lua:27
 OnDisable = <function> defined @TalentLoadoutManager/modules/Leveling.lua:23
 OnEnable = <function> defined @TalentLoadoutManager/modules/Leveling.lua:19
 RegisterMessage = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 HookScript = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:365
 Print = <function> defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:50
 CombatLockdownQueue = <table> {
 }
 IsHooked = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:492
 GetArgs = <function> defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
 RegisterChatCommand = <function> defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:81
 IsModule = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:213
 defaultModuleState = true
 SetDefaultModuleState = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:383
 UnregisterAllEvents = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 SendMessage = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:49
 SetEnabledState = <function> defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 Hook = <function> defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:273
 enabledState = true
 UnregisterMessage = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 RegisterEvent = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterAllMessages = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 hooks 

The following screenshots are from BugGrabber / BugSack:

11-25-2023 TalentLoadoutManager Leveling Module Error (1)
11-25-2023 TalentLoadoutManager Leveling Module Error (2)
11-25-2023 TalentLoadoutManager Leveling Module Error (3)
11-25-2023 TalentLoadoutManager Leveling Module Error (4)

commented

hi, could you write this in chat, and send me what it says? (on a character where you're seeing this error)
/run local a=TalentLoadoutManagerAPI;local l=a.CharacterAPI:GetActiveLoadoutID();print(l, a.GlobalAPI:GetLoadoutInfoByID(l))
on characters you're leveling on, and seeing this error with, are you using a specific loadout? or using blizzard's recommended path?

commented

I tried your script on my main first (not seeing the error on that char) & it returned:
17397192 table: 00000270270F3720

I tried your script on one of the alts I had the error on & it returned:
908312 nil

I tried your script on a couple other alts I'm leveling as well & the initial number string varied, but all returned "nil" for the second string.

The characters I was leveling & seeing the error with actually don't have any specified loadouts.
Said characters were using Blizzards default recommended path & most only have partial points allocated or no points allocated at all.
I have been using passive leveling methods for them & haven't played most of my alts since the DF pre-patch in SL, so most of their trees have been automatically reset by Blizzard over time.

commented

Good news, I was able to reproduce the error.

I logged into my leveling alts today to finish the WoW Anniversary daily in the Caverns of Time & leveled on four separate characters (from lvl 15 - 16). In each case I received the same error & was able to reproduce it exactly.

  1. I logged into my lvling alt.
  2. I ran your script & took a few before screenshots.
  3. I did the WoW Anniversary daily & leveled from 15 - 16 on turn-in.
  4. I received the error immediately upon leveling.

The following are screenshots from before the error. The first screenshot is after running the script you provided:

11-27-2023 TalentLoadoutManager Error (1)
11-27-2023 TalentLoadoutManager Error (2)
11-27-2023 TalentLoadoutManager Error (3)

commented

The error text from a few minutes ago:

3x ...aceTalentLoadoutManager/modules/Leveling.lua:44: attempt to index local 'loadoutInfo' (a nil value)
[string "@TalentLoadoutManager/modules/Leveling.lua"]:44: in function `ReapplyLoadout'
[string "@TalentLoadoutManager/modules/Leveling.lua"]:35: in function <...aceTalentLoadoutManager/modules/Leveling.lua:34>

Locals:
self =

{
SetDefaultModuleLibraries = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
Enable = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:290
NewModule = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:231
EnableModule = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
modules =
{
}
GetModule = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:206
IterateEmbeds = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
SecureHookScript = defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:409
defaultModuleLibraries =
{
}
UnregisterChatCommand = defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:107
RawHookScript = defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:394
Printf = defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
ReapplyLoadout = defined @TalentLoadoutManager/modules/Leveling.lua:40
GetName = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:275
name = "TalentLoadoutManager_Leveling"
baseName = "TalentLoadoutManager"
IsEnabled = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
orderedModules =
{
}
PLAYER_REGEN_ENABLED = defined @TalentLoadoutManager/modules/Leveling.lua:57
DisableModule = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
AddToCombatLockdownQueue = defined @TalentLoadoutManager/modules/Leveling.lua:49
PLAYER_LEVEL_UP = defined @TalentLoadoutManager/modules/Leveling.lua:27
OnDisable = defined @TalentLoadoutManager/modules/Leveling.lua:23
OnEnable = defined @TalentLoadoutManager/modules/Leveling.lua:19
RegisterMessage = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
HookScript = defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:365
Print = defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:50
CombatLockdownQueue =
{
}
IsHooked = defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:492
GetArgs = defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
RegisterChatCommand = defined @Accountant_Classic/Libs/AceConsole-3.0/AceConsole-3.0.lua:81
IsModule = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:213
defaultModuleState = true
SetDefaultModuleState = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:383
UnregisterAllEvents = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
SendMessage = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:49
SetEnabledState = defined @Accountant_Classic/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
Hook = defined @Accountant_Classic/Libs/AceHook-3.0/AceHook-3.0.lua:273
enabledState = true
UnregisterMessage = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
RegisterEvent = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
UnregisterAllMessages = defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
hooks

~

The following are screenshots from after the error occurred again. The first screenshot is after running the script you provided:

11-27-2023 TalentLoadoutManager Error (4)
11-27-2023 TalentLoadoutManager Error (5)
11-27-2023 TalentLoadoutManager Error (6)
11-27-2023 TalentLoadoutManager Error (7)
11-27-2023 TalentLoadoutManager Error (8)
11-27-2023 TalentLoadoutManager Error (9)

commented

yeah, I see that I didn't handle the situation when someone is using the default leveling build, I'll have a look ^^

commented

should be fixed in next version

commented

Thank you!