Mascarada / epgp

Automatically exported from code.google.com/p/epgp
0 stars 0 forks source link

LibGuildStorage Error #708

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install EPGP 5.6.4

What is the expected output? What do you see instead?
No errors

Getting the following in BugSack

6x epgp-5.6.4\LibGuildStorage-1.2-0.lua:429: attempt to index field "db" (a nil 
value)
epgp-5.6.4\LibGuildStorage-1.2-0.lua:429: in function 
<epgp\LibGuildStorage-1.2.lua:428>
(tail call): ?
FrameXML\UIParent.lua:475: in function "ToggleGuildFrame"
recruitmentenhancement-r108\Core.lua:199: in function 
<recruitmentenhancement\Core.lua:192>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[1]":9: in function <string>:"safecall 
Dispatcher[1]":5
(tail call): ?
Externals\Ace3-AceAddon\AceAddon-3.0-10.lua:543: in function "EnableAddon"
Externals\Ace3-AceAddon\AceAddon-3.0-10.lua:635: in function 
<Externals\Ace3-AceAddon\AceAddon-3.0.lua:621>
<in C code>
FrameXML\UIParent.lua:259: in function "UIParentLoadAddOn"
FrameXML\UIParent.lua:282: in function "CombatLog_LoadUI"
FrameXML\UIParent.lua:558: in function <FrameXML\UIParent.lua:531>

Locals:
nil

Original issue reported on code.google.com by upyurshd...@gmail.com on 29 Jul 2011 at 9:48

GoogleCodeExporter commented 8 years ago
I did this on my own install to get it working but I don't know if it will 
affect EPGP

lib:RawHook("GuildFrame_LoadUI", function(...)

  if not (EPGP.db) then
    local showoffline = true
  else
    local showoffline = EPGP.db.profile.blizzard_show_offline
  end

  SetGuildRosterShowOffline(showoffline)
  lib.hooks.GuildFrame_LoadUI(...)
  lib:RawHookScript(GuildRosterFrame, "OnShow", function(frame, ...)
    GUILDFRAMEVISIBLE = true
    if GuildRosterShowOfflineButton then
      GuildRosterShowOfflineButton:SetChecked(showoffline)
      GuildRosterShowOfflineButton:Enable()
    end
    SetGuildRosterShowOffline(showoffline)
    lib.hooks[frame].OnShow(frame, ...)
  end)
  lib:RawHookScript(GuildRosterFrame, "OnHide", function(frame, ...)
    GUILDFRAMEVISIBLE = false
    EPGP.db.profile.blizzard_show_offline = GetGuildRosterShowOffline()
    lib.hooks[frame].OnHide(frame, ...)
    SetGuildRosterShowOffline(true)
  end)
  lib:Unhook("GuildFrame_LoadUI")

  SetGuildRosterShowOffline(true)
end, true)

Original comment by upyurshd...@gmail.com on 29 Jul 2011 at 9:57

GoogleCodeExporter commented 8 years ago
Any response on this at all?

Original comment by upyurshd...@gmail.com on 8 Aug 2011 at 11:23

GoogleCodeExporter commented 8 years ago
Are you using the RecruitmentEnhancement addon?  There is an incompatibility 
with it and with EPGP.

Original comment by chip.turner on 8 Aug 2011 at 11:29

GoogleCodeExporter commented 8 years ago
Yes but with the error above it looks like your hook to GuildFrame_LoadUI is 
broken "6x epgp-5.6.4\LibGuildStorage-1.2-0.lua:429: attempt to index field 
"db" (a nil value)"

that then affects anyone using the GuildFrame for anything?

Original comment by upyurshd...@gmail.com on 8 Aug 2011 at 11:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Chip could you response to the "attempt to index field "db" (a nil value)" 
error?

Original comment by upyurshd...@gmail.com on 11 Aug 2011 at 11:35

GoogleCodeExporter commented 8 years ago
seriously, it's interaction with RecruitmentEnhancement.  have you disabled it 
and seen it still fail?  the issue is with how both addons interact with the 
guild frame.  something about RecruitmentEnhancement causes it to access the 
frame before epgp has loaded or something.

If someone wants to dig deeper and submit a patch, that'd be cool, but as-is, I 
don't use RecruitmentEnhancement and unless more people star the issue, I'm not 
going to prioritize working with some other addon.

If you reproduce the problem without RecruitmentEnhancement, please let me 
know, but I am rather certain you won't.

Original comment by chip.turner on 11 Aug 2011 at 4:47

GoogleCodeExporter commented 8 years ago
Any updates on this issue? Its effecting me too.

Original comment by chuck.r...@gmail.com on 10 Oct 2011 at 6:46