MultiLanguage aka Multi Language

MultiLanguage aka Multi Language

38.1k Downloads

Lua Error

Yx2xY opened this issue ยท 3 comments

commented

Hi there, first of all thank you for this amazing addon. It really helps to bridge the gap between people running the game in different languages.

I'm here because I been running constantly with this lua error when doing certain things. Interacting with an npc, moving items from the bank, etc. Can't really pinpoint what could be triggering these errors, but here's the error that I get

Message: Interface/AddOns/MultiLanguage/MultiLanguage.lua:464: attempt to index local 'owner' (a nil value)
Time: Fri Mar 21 14:51:06 2025
Count: 17
Stack:
[Interface/AddOns/MultiLanguage/MultiLanguage.lua]:464: in function <Interface/AddOns/MultiLanguage/MultiLanguage.lua:458>
[C]: ?
[C]: ?

Locals:
self = GameTooltip {
 ItemTooltip = Frame {
 }
 AllTheThingsOnTooltipClearedHook = true
 BottomOverlay = Texture {
 }
 NineSlice = Frame {
 }
 textLeft1Font = "GameTooltipHeaderText"
 hasMoney = 1
 textRight2Font = "GameTooltipText"
 TopOverlay = Texture {
 }
 TextLeft1 = GameTooltipTextLeft1 {
 }
 StatusBar = GameTooltipStatusBar {
 }
 supportsDataRefresh = true
 shouldRefreshData = false
 numMoneyFrames = 1
 shoppingTooltips = <table> {
 }
 waitingForData = false
 update = false
 progressBarPool = <table> {
 }
 updateTooltipTimer = 0.015000
 TextRight1 = GameTooltipTextRight1 {
 }
 supportsItemComparison = true
 textRight1Font = "GameTooltipHeaderText"
 layoutType = "TooltipDefaultLayout"
 textLeft2Font = "GameTooltipText"
 TextRight2 = GameTooltipTextRight2 {
 }
 TextLeft2 = GameTooltipTextLeft2 {
 }
}
_ = nil
itemLink = nil
_ = nil
spellID = nil
owner = nil
(*temporary) = GameTooltip {
 ItemTooltip = Frame {
 }
 AllTheThingsOnTooltipClearedHook = true
 BottomOverlay = Texture {
 }
 NineSlice = Frame {
 }
 textLeft1Font = "GameTooltipHeaderText"
 hasMoney = 1
 textRight2Font = "GameTooltipText"
 TopOverlay = Texture {
 }
 TextLeft1 = GameTooltipTextLeft1 {
 }
 StatusBar = GameTooltipStatusBar {
 }
 supportsDataRefresh = true
 shouldRefreshData = false
 numMoneyFrames = 1
 shoppingTooltips = <table> {
 }
 waitingForData = false
 update = false
 progressBarPool = <table> {
 }
 updateTooltipTimer = 0.015000
 TextRight1 = GameTooltipTextRight1 {
 }
 supportsItemComparison = true
 textRight1Font = "GameTooltipHeaderText"
 layoutType = "TooltipDefaultLayout"
 textLeft2Font = "GameTooltipText"
 TextRight2 = GameTooltipTextRight2 {
 }
 TextLeft2 = GameTooltipTextLeft2 {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'owner' (a nil value)"

commented

Thank you very much for the report. I want to improve the addon so don't hesitate to open up additional requests when you run into issues.

I have just uploaded a new version (v1.0.16) that adds a check for when the 'owner' variable is nil, which is what is causing the error for you. However, since this might cause unexpected behavior for you (tooltip not showing), I would like to dive a little deeper. Can you tell me what other addons you are running so I can try to replicate the issue?

If the addon still works as expected please let me know as well, maybe there are indeed certain actions in-game where the addon is trying to add a tooltip but it's not needed.

commented

Hello again, thank you for your solution!

I've been testing the game with the updated addon all morning and so far I haven't encountered the error!

Now that you mention that it was an error regarding the tooltips I have a couple of addons that modify the default tooltip behavior. I use leatrix plus to change the appearance of the tooltips and ToolTip on Mouse to anchor it to the pointer. I know leatrix can also anchor the tooltip to the pointer, but TTOM allows me to position it just where I want it.

commented

I see, most likely a combination of the addons was causing the issue. I'm glad this now works for you! Please let me know if you run into any further issues. I'll leave this issue open for the time being, feel free to close it when you're confident it has been resolved.