Mplus Gains

Mplus Gains

481 Downloads

Addon creates LUA Failure and is not working.

sahnebar opened this issue ยท 5 comments

commented

Hi,

i tried to use this nice addon, but it won't work anymore. I don't know whats worng, so i'll post a screenshot and the Lua error messages.

alt text

Message: Interface/AddOns/MplusGains/DungeonInfo.lua:162: attempt to index field 'dungeonInfo' (a nil value)
Time: Mon Nov 20 18:21:40 2023
Count: 2
Stack: Interface/AddOns/MplusGains/DungeonInfo.lua:162: attempt to index field 'dungeonInfo' (a nil value)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Interface/AddOns/MplusGains/DungeonInfo.lua"]:162: in function `CalculateRating'
[string "@Interface/AddOns/MplusGains/MplusGains.lua"]:1225: in function <Interface/AddOns/MplusGains/MplusGains.lua:1224>
[string "@Interface/AddOns/MplusGains/MplusGains.lua"]:1295: in function <Interface/AddOns/MplusGains/MplusGains.lua:1270>

Locals:

Message: Interface/AddOns/MplusGains/MplusGains.lua:199: bad argument #1 to 'pairs' (table expected, got nil)
Time: Mon Nov 20 17:55:03 2023
Count: 1
Stack: Interface/AddOns/MplusGains/MplusGains.lua:199: bad argument #1 to 'pairs' (table expected, got nil)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `pairs'
[string "@Interface/AddOns/MplusGains/MplusGains.lua"]:199: in function <Interface/AddOns/MplusGains/MplusGains.lua:198>

Locals:

Could you please help me.
kind regards,
Sahnebar

commented

@sahnebar Thanks for the report, I'll look into it. Does this error occur when you initially boot the game/login to a character? Or is this only after a reload?

commented

soo now i found the error... the error was the language :P so maybe i need to translate some dungeon names or something else. Maybe i can help you with this?
--> I play the game in german.

commented

Yes.

Now i deactivated all addons and when i try to use the addon it shows me the following error.

Message: Interface/AddOns/MplusGains/MplusGains.lua:199: bad argument #1 to 'pairs' (table expected, got nil)
Time: Mon Nov 20 22:23:26 2023
Count: 1
Stack: Interface/AddOns/MplusGains/MplusGains.lua:199: bad argument #1 to 'pairs' (table expected, got nil)
[string "=[C]"]: in function `pairs'
[string "@Interface/AddOns/MplusGains/MplusGains.lua"]:199: in function <Interface/AddOns/MplusGains/MplusGains.lua:198>

Locals: (*temporary) = nil
(*temporary) = "table expected, got nil"
= defined =[C]:-1

commented

I'm unable to replicate the errors on my end unfortunately. It's possible that the first error provided is a consequence of the second so for now I put out a new release with error checking that should resolve the last error you provided.

commented

Good find! I forgot to switch from English affix names to affix IDs for logic/indexing so it was throwing an error for non-English clients. I've pushed a release that fixes the error and the addon should now work for all selectable languages in the battle net client settings. Thank you for your help!