Legacy-of-Sylvanaar / wow-instant-messenger

WIM (WoW Instant Messenger) is a World of Warcraft addon which brings an instant messenger feel to communication in game.
https://www.curseforge.com/wow/addons/wim-3
MIT License
11 stars 8 forks source link

No sound when receiving whispers. Also history is not being recorded. #82

Closed xGux closed 5 months ago

xGux commented 5 months ago

Buggrabbers reads the following:

315x WIM/Modules/Sounds.lua:102: attempt to index field '?' (a nil value) [string "@WIM/Modules/Sounds.lua"]:102: in function fun' [string "@WIM/WIM.lua"]:343: in functionCallModuleFunction' [string "@WIM/Modules/WhisperEngine.lua"]:368: in function `handler' [string "@WIM/Libs/LibChatHandler-1.0-25/LibChatHandler-1.0.lua"]:267: in function <...s/WIM/Libs/LibChatHandler-1.0/LibChatHandler-1.0.lua:252> [string "@WIM/Libs/LibChatHandler-1.0-25/LibChatHandler-1.0.lua"]:311: in function <...s/WIM/Libs/LibChatHandler-1.0/LibChatHandler-1.0.lua:299>

Locals: self =

{ enabled = true dPrint = defined @WIM/WIM.lua:290 RegisterWidget = defined @WIM/WIM.lua:292 PostEvent_Whisper = defined @WIM/Modules/Sounds.lua:99 canDisable = false VARIABLES_LOADED = defined @WIM/Modules/Sounds.lua:94 RegisterEvent = defined @WIM/WIM.lua:287 PostEvent_WhisperInform = defined @WIM/Modules/Sounds.lua:114 db_defaults =
{ } enableByDefault = true title = "Sounds" Enable = defined @WIM/WIM.lua:288 db =
{ } resources =
{ } hasWidget = false Disable = defined @WIM/WIM.lua:289 } msg = "gracias!" user = "Madmárdigan" (temporary) = nil (temporary) = nil (*temporary) = "attempt to index field '?' (a nil value)" playSound = defined @WIM/Modules/Sounds.lua:83

Pazza commented 5 months ago

Go into WIM and update your selection for what sound you'd like played when you receive a message. WIM expands access to sounds that other addon's share, if you remove an addon and the sound is no longer available or another addon, removes a sound it had packaged in the past, you can get this error.

xGux commented 5 months ago

The sounds I selected are all available and can play when i test them from this window: image Nevertheless the error is still present.

I'll disable sound and see if it reproduces.

Pazza commented 5 months ago

Try changing the sound and then changing it back. WIM/Modules/Sounds.lua:102: attempt to index field '?' (a nil value) indicates that the sound its trying to load is not named or saved properly. Its not able to index it.

If its still not working, its very possible that something else is breaking it.

Pazza commented 5 months ago

I think i found the problem. I will post a fix in a moment.

xGux commented 5 months ago

Fixed the issue with the new release. Thanks