BasicChatMods

BasicChatMods

602k Downloads

[Issue] Lua Error with v9.2.5 in BC Classic - BasicChatMods\bnet_Classic.lua:19: attempt to index local 'battleTag' (a nil value)

boktai1000 opened this issue ยท 3 comments

commented

Describe the problem

Lua error popped in-game on:

4x BasicChatMods\bnet_Classic.lua:19: attempt to index local 'battleTag' (a nil value)

What steps will reproduce the problem?

In this case, I took the portal from Shat -> Isle of Quel'danas, but it seemingly happened randomly / not related to anything I did that I'm aware of.

Consider attaching a screenshot below to help describe your issue (Attach directly, do not link to other websites)

image

What version of the addon are you using? (Stating 'latest' is not useful)

v9.2.5

Do you have an error log of what happened?

4x BasicChatMods\bnet_Classic.lua:19: attempt to index local 'battleTag' (a nil value)
[string "@BasicChatMods\bnet_Classic.lua"]:19: in function <BasicChatMods\bnet_Classic.lua:11>
[string "=[C]"]: in function `gsub'
[string "@BasicChatMods\bnet_Classic.lua"]:33: in function `?'
[string "@BasicChatMods\BasicCore.lua"]:86: in function <BasicChatMods\BasicCore.lua:75>
[string "=[C]"]: in function `PushFront'
[string "@SharedXML\ScrollingMessageFrame.lua"]:28: in function <SharedXML\ScrollingMessageFrame.lua:27>
[string "=[C]"]: in function `AddMessage'
[string "@FrameXML\ChatFrame.lua"]:3609: in function `ChatFrame_MessageEventHandler'
[string "@FrameXML\ChatFrame.lua"]:2962: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
icon = ""
misc = "|HBNplayer:|Kq4|k:"
id = "31"
moreMisc = ":247:BN_WHISPER:|Kq4|k|h"
fakeName = "|Kq4|k"
tag = "|h"
colon = ""
_ = nil
_ = nil
battleTag = nil
_ = nil
_ = nil
bnetIDGameAccount = nil
englishClass = nil
(*temporary) = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'battleTag' (a nil value)"
BNGetFriendInfoByID = <function> defined =[C]:-1
BNGetGameAccountInfo = <function> defined =[C]:-1
BCM = <table> {
 CHATLOG = "Always log chat."
 chatFuncs = <table> {
 }
 BCM_BNet = "Customize the brackets or add color to the various Real Id events such as whispers, conversations, and friends logging on."
 BCM_Sticky = "Customize your 'sticky' chat. Makes the chat edit box remember the last chat type you used so that you don't need to re-enter it again next time you chat."
 BCM_Fade = "Fade out the chat frames completely instead of partially when moving your mouse away from a chat frame."
 TOP = "Top"
 BCM_AutoLog = "Automatically log chat after logging on and automatically log the combat log when in a raid instance."
 GUILDRECRUIT = "GuildRecruitment"
 BOTTOM = "Bottom"
 BCM_Font = "Change the font name, size, and style of your chat frames & edit box."
 SHOWLEVELS = "Player level next to name."
 COMBATLOG = "Log combat in a raid instance."
 BCM_EditBox = "Customize the Edit Box (the box you type in) like moving it to the top, hiding the background, and increasing the size."
 PLAYERBRACKETS = "Player Brackets:"
 RIGHT = "Right"
 info = <table> {
 }
 Popup = <function> defined @BasicChatMods\BasicCore.lua:66
 OPTIONS = "<<More options may be available after enabling this module>>"
 GetColor = <function> defined @BasicChatMods\BasicCore.lua:10
 CHANNELNUMBER = "Channel Number"
 Events = <unnamed> {
 }
 BCM_Timestamp = "Customize the timestamps you want your chat to use. Choose a color or no color at all, then choose the exact format of the timestamp."
 chatFrames = 10
 chatFuncsPerFrame = <table> {
 }
 chatFrameRefs = <table> {
 }
 BCM_Resize = "Allows you to change the size of the chat frame to sizes smaller/bigger than what Blizz allows."
 protectedText = "<Protected Text>"
 CLICKTOCOPY = "Shift-click to copy chat."
 LOCALDEFENSE = "LocalDefense"
 COLORMISC = "Class color friend/guild logon."
 CUSTOMCHANNEL = "Custom Channel"
 BCM_History = "Choose how many lines of chat history your chat frames remember."
 TRADE = "Trade"
 BCM_ButtonHide = "Completely hides the chat frame side buttons from view for the people that have no use for them."
 BCM_ScrollDown = "Create a small clickable arrow over your chat frames that flashes if you're not at the very bottom."
 LFG = "LookingForGroup"
 WORLDDEFENSE = "WorldDefense"
 BCM_TellTarget = "Allows you to whisper/tell your current target with the command /tt message or /wt message."
 BCM_PlayerNames = "Customize the player name in chat with player level/group (if known) or remove/change brackets. E.g. [85:|cFFFFFFFFCoolPriest|r:5]"
 CENTER = "Center"
 GENERAL = "General"
 LEFT = "Left"
 BCM_ChannelNames = "Selectively replace the channel names with custom names of your liking. E.g. [Party] >> [P]"
 BCM_ChatCopy = "This module allows you to copy chat directly from your chat frame by |cFFFFFFFFSHIFT-clicking|r the chat frame tab."
 BCM_Highlight = "Play a sound if your name is mentioned in chat, also class color it. You can enter the short version of your name in the box below."
 BCM_URLCopy = "Turn websites in your chat frame into clickable links for you to easily copy. E.g. |cFFFFFFFF[www.battle.net]|r"
 BCM_GMOTD = "Re-display the guild MOTD in the main chat frame after 10 seconds."
 SIZE = "Size"
 CHANNELNAME = "Channel Name"
 CORE = "Welcome to BasicChatMods, a basic and modular approach to chat customization. Due to the way BCM is designed a /reload may be required for some changes.

By default BCM will allow you to drag your chat frames to the very edge of the screen, the remaining customization

Any additional information? (example: WoW language if not English)

commented

I was able to get the Lua to pop again by replying in-game to a Blizzard Whisper:

image

6x BasicChatMods\bnet_Classic.lua:19: attempt to index local 'battleTag' (a nil value)
[string "@BasicChatMods\bnet_Classic.lua"]:19: in function <BasicChatMods\bnet_Classic.lua:11>
[string "=[C]"]: in function `gsub'
[string "@BasicChatMods\bnet_Classic.lua"]:33: in function `?'
[string "@BasicChatMods\BasicCore.lua"]:86: in function <BasicChatMods\BasicCore.lua:75>
[string "=[C]"]: in function `PushFront'
[string "@SharedXML\ScrollingMessageFrame.lua"]:28: in function <SharedXML\ScrollingMessageFrame.lua:27>
[string "=[C]"]: in function `AddMessage'
[string "@FrameXML\ChatFrame.lua"]:3609: in function `ChatFrame_MessageEventHandler'
[string "@FrameXML\ChatFrame.lua"]:2962: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:
icon = ""
misc = "|HBNplayer:|Kq4|k:"
id = "31"
moreMisc = ":247:BN_WHISPER:|Kq4|k|h"
fakeName = "|Kq4|k"
tag = "|h"
colon = ""
_ = nil
_ = nil
battleTag = nil
_ = nil
_ = nil
bnetIDGameAccount = nil
englishClass = nil
(*temporary) = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'battleTag' (a nil value)"
BNGetFriendInfoByID = <function> defined =[C]:-1
BNGetGameAccountInfo = <function> defined =[C]:-1
BCM = <table> {
 CHATLOG = "Always log chat."
 chatFuncs = <table> {
 }
 BCM_BNet = "Customize the brackets or add color to the various Real Id events such as whispers, conversations, and friends logging on."
 BCM_Sticky = "Customize your 'sticky' chat. Makes the chat edit box remember the last chat type you used so that you don't need to re-enter it again next time you chat."
 BCM_Fade = "Fade out the chat frames completely instead of partially when moving your mouse away from a chat frame."
 TOP = "Top"
 BCM_AutoLog = "Automatically log chat after logging on and automatically log the combat log when in a raid instance."
 GUILDRECRUIT = "GuildRecruitment"
 BOTTOM = "Bottom"
 BCM_Font = "Change the font name, size, and style of your chat frames & edit box."
 SHOWLEVELS = "Player level next to name."
 COMBATLOG = "Log combat in a raid instance."
 BCM_EditBox = "Customize the Edit Box (the box you type in) like moving it to the top, hiding the background, and increasing the size."
 PLAYERBRACKETS = "Player Brackets:"
 RIGHT = "Right"
 info = <table> {
 }
 Popup = <function> defined @BasicChatMods\BasicCore.lua:66
 OPTIONS = "<<More options may be available after enabling this module>>"
 GetColor = <function> defined @BasicChatMods\BasicCore.lua:10
 CHANNELNUMBER = "Channel Number"
 Events = <unnamed> {
 }
 BCM_Timestamp = "Customize the timestamps you want your chat to use. Choose a color or no color at all, then choose the exact format of the timestamp."
 chatFrames = 10
 chatFuncsPerFrame = <table> {
 }
 chatFrameRefs = <table> {
 }
 BCM_Resize = "Allows you to change the size of the chat frame to sizes smaller/bigger than what Blizz allows."
 protectedText = "<Protected Text>"
 CLICKTOCOPY = "Shift-click to copy chat."
 LOCALDEFENSE = "LocalDefense"
 COLORMISC = "Class color friend/guild logon."
 CUSTOMCHANNEL = "Custom Channel"
 BCM_History = "Choose how many lines of chat history your chat frames remember."
 TRADE = "Trade"
 BCM_ButtonHide = "Completely hides the chat frame side buttons from view for the people that have no use for them."
 BCM_ScrollDown = "Create a small clickable arrow over your chat frames that flashes if you're not at the very bottom."
 LFG = "LookingForGroup"
 WORLDDEFENSE = "WorldDefense"
 BCM_TellTarget = "Allows you to whisper/tell your current target with the command /tt message or /wt message."
 BCM_PlayerNames = "Customize the player name in chat with player level/group (if known) or remove/change brackets. E.g. [85:|cFFFFFFFFCoolPriest|r:5]"
 CENTER = "Center"
 GENERAL = "General"
 LEFT = "Left"
 BCM_ChannelNames = "Selectively replace the channel names with custom names of your liking. E.g. [Party] >> [P]"
 BCM_ChatCopy = "This module allows you to copy chat directly from your chat frame by |cFFFFFFFFSHIFT-clicking|r the chat frame tab."
 BCM_Highlight = "Play a sound if your name is mentioned in chat, also class color it. You can enter the short version of your name in the box below."
 BCM_URLCopy = "Turn websites in your chat frame into clickable links for you to easily copy. E.g. |cFFFFFFFF[www.battle.net]|r"
 BCM_GMOTD = "Re-display the guild MOTD in the main chat frame after 10 seconds."
 SIZE = "Size"
 CHANNELNAME = "Channel Name"
 CORE = "Welcome to BasicChatMods, a basic and modular approach to chat customization. Due to the way BCM is designed a /reload may be required for some changes.

By default BCM will allow you to drag your chat frames to the very edge of the screen, the remaining customization
commented

Seems like it does indeed pop at the moment every time I reply. Anyways, not sure how it got into this state. Even when i do a /reload right now, I get Lua errors that pop every time.

image

image

commented

When I disabled the addon, I went to check and it seemed like Blizzard Friends was down. Which is likely part of the problem here.

image