wind-addons / ElvUI_WindTools

💯 Maybe the BEST ElvUI plugin to enhance your game experience.
https://www.curseforge.com/wow/addons/elvui-windtools
GNU General Public License v3.0
146 stars 40 forks source link

[Bug] #237

Closed jisamcom closed 2 years ago

jisamcom commented 2 years ago

Describe the bug got friend list error when open friend list window

To Reproduce Steps to reproduce the behavior:

  1. click o to open friend list
  2. if there's any friend playing call of duty modern warfare 2 ( 2022 )
  3. See error

Information (you can find these in [WindTools-Information]):

`131x ElvUI_WindTools\Modules\Social\FriendList.lua:412: attempt to index field '?' (a nil value) [string "@ElvUI_WindTools\Modules\Social\FriendList.lua"]:412: in function <ElvUI_WindTools\Modules\Social\FriendList.lua:266>

[string "=[C]"]: in function FriendsFrame_UpdateFriendButton' [string "@FrameXML\FriendsFrame.lua"]:1261: in functionFriendsFrame_UpdateFriends' [string "@FrameXML\FriendsFrame.lua"]:629: in function FriendsList_Update' [string "@FrameXML\FriendsFrame.lua"]:307: in function <FrameXML\FriendsFrame.lua:306> [string "=[C]"]: in functionShow' [string "@FrameXML\UIParent.lua"]:3017: in function SetUIPanel' [string "@FrameXML\UIParent.lua"]:2862: in functionShowUIPanel' [string "@FrameXML\UIParent.lua"]:2730: in function <FrameXML\UIParent.lua:2726> [string "=[C]"]: in function SetAttribute' [string "@FrameXML\UIParent.lua"]:3582: in functionShowUIPanel' [string "@FrameXML\FriendsFrame.lua"]:1068: in function `ToggleFriendsFrame'

Locals: self =

{ SetDefaultModuleLibraries = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:367 Enable = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:294 NewModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:235 EnableModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:332 modules =
{ } GetModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:210 IterateEmbeds = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:442 SecureHookScript = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:410 defaultModuleLibraries =
{ } RawHookScript = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:395 GetName = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:279 name = "ElvUI_WindTools_FriendList" Initialize = defined @ElvUI_WindTools\Modules\Social\FriendList.lua:460 IsEnabled = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:451 orderedModules =
{ } DisableModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:350 UpdateFriendButton = defined @ElvUI_WindTools\Modules\Social\FriendList.lua:266 HookScript = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:366 IsHooked = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:493 IsModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:217 db =
{ } SetDefaultModuleState = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:387 initialized = true SetEnabledState = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:424 Hook = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:274 enabledState = true Log = defined @ElvUI_WindTools\Core\Functions\Developer.lua:124 baseName = "ElvUI_WindTools" ProfileUpdate = defined @ElvUI_WindTools\Modules\Social\FriendList.lua:471 hooks =
{ } SetDefaultModulePrototype = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:409 SecureHook = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:336 IterateModules = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:437 UnhookAll = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:477 RawHook = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:313 Unhook = defined @ElvUI\Libraries\Core\Ace\AceHook-3.0\AceHook-3.0.lua:418 moduleName = "FriendList" defaultModuleState = true Disable = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:314 } button = FriendsListFrameScrollFrameButton11 { 0 = OnEnter = defined @FrameXML\FriendsFrame.lua:1905 index = 11 buttonType = 2 travelPassButton = FriendsListFrameScrollFrameButton11TravelPassButton { } status = FriendsListFrameScrollFrameButton11Status { } background = FriendsListFrameScrollFrameButton11Background { } OnClick = defined @FrameXML\FriendsFrame.lua:2086 OnLoad = defined @FrameXML\FriendsFrame.lua:1893 id = 11 OnLeave = defined @FrameXML\FriendsFrame.lua:2081 name = FriendsListFrameScrollFrameButton11Name { } highlight = { } summonButton = FriendsListFrameScrollFrameButton11SummonButton { } info = FriendsListFrameScrollFrameButton11Info { } Favorite = { } gameIcon = FriendsListFrameScrollFrameButton11GameIcon { } } game = "AUKS" realID = "|Kq58|`

fang2hou commented 2 years ago

The logic has been rewritten in 10.0 (both Blizzard original friend icon and WindTools module), if you met the problem again, mention me.