I took over the QuestGuru addon as it was "dying" and wanted to save it, but now need saving myself. Not sure how well I will come thru with this since being up for 30 hours is wacking me out a bit. The errors that I am getting are:
Code:
1x QuestGuru\QuestGuru-2.3.00-60000.lua:66: attempt to index local 'QuestLogFrame' (a nil value)
QuestGuru\QuestGuru-2.3.00-60000.lua:66: in main chunk
Locals:
and
3x QuestGuru\QuestGuru-2.3.00-60000.lua:52: attempt to call global 'QuestGuru_OnEvent' (a nil value)
QuestGuru\QuestGuru-2.3.00-60000.lua:52: in function <QuestGuru\QuestGuru.lua:51>
Locals:
and my code in this area is ( the code from the top to error area is here):
Lua Code:
QUESTGURU_VERSION = GetAddOnMetadata("QuestGuru", "Version");
local QG = QuestGuru
QuestGuru_Settings = {};
QuestGuru_Items = {};
QGC_Cache = {};
QGC_Active = {};
BINDING_HEADER_QUESTGURU = "QuestGuru"
BINDING_NAME_QUESTGURU_TOGGLE = "Show/Hide QuestGuru"
local QuestGuru, QuestLogFrame, QuestGuru_RealmName, QuestGuru_PlayerFaction;
--local function QG:OnShow()
-- if WorldMapFrame:IsVisible() then
-- ToggleWorldMap() -- can't have world map up at same time due to potential details frame being up
-- end
-- if QuestLogPopupDetailFrame:IsVisible() then
-- HideUIPanel(QuestLogPopupDetailFrame)
-- end
-- local selected = GetQuestLogSelection()
-- if not selected or selected==0 then
-- QG:SelectFirstQuest()
-- else
-- QG:SelectQuestIndex(selected)
-- end
-- QG:RegisterEvent("QUEST_DETAIL")
-- QG:RegisterEvent("QUEST_LOG_UPDATE")
-- QG:RegisterEvent("QUEST_WATCH_LIST_CHANGED")
-- QG:RegisterEvent("SUPER_TRACKED_QUEST_CHANGED")
-- QG:RegisterEvent("GROUP_ROSTER_UPDATE")
-- QG:RegisterEvent("PARTY_MEMBER_ENABLE")
-- QG:RegisterEvent("PARTY_MEMBER_DISABLE")
-- QG:RegisterEvent("QUEST_POI_UPDATE")
-- QG:RegisterEvent("QUEST_WATCH_UPDATE")
-- QG:RegisterEvent("QUEST_ACCEPTED")
-- QG:RegisterEvent("UNIT_QUEST_LOG_CHANGED")
-- if not tContains(UISpecialFrames,"QuestGuru") then
-- tinsert(UISpecialFrames,"QuestGuru")
-- end
-- QG.detail:ClearAllPoints()
-- QG.detail:SetPoint("TOPRIGHT",-32,-63)
--end
do
local QuestGuru_Frame = CreateFrame("Frame", "QuestGuru_Frame", UIParent);
QuestGuru_Frame:SetScript("OnEvent",
function (self, event, arg1, arg2)
QuestGuru_OnEvent(self, event, arg1, arg2);
end);
QuestGuru_Frame:RegisterEvent("QUEST_COMPLETE");
QuestGuru_Frame:RegisterEvent("QUEST_LOG_UPDATE");
QuestGuru_Frame:RegisterEvent("QUEST_PROGRESS");
QuestGuru_Frame:RegisterEvent("UI_INFO_MESSAGE");
QuestGuru_Frame:RegisterEvent("VARIABLES_LOADED");
QuestGuru_Frame:RegisterEvent("GOSSIP_SHOW");
QuestGuru_Frame:RegisterEvent("QUEST_DETAIL");
QuestGuru_Frame:RegisterEvent("QUEST_GREETING");
QuestGuru_Frame:RegisterEvent("QUEST_PROGRESS");
tinsert(UISpecialFrames, "QuestLogFrame");
QuestLogFrame:SetMovable(true)
QuestLogFrame:EnableMouse(true)
QuestLogFrame:RegisterForDrag("LeftButton")
QuestLogFrame:SetScript("OnDragStart", QuestLogFrame.StartMoving)
QuestLogFrame:SetScript("OnDragStop", QuestLogFrame.StopMovingOrSizing)
end
Thanks in advance for the help
, now to try to sleep without too much LUA in my dreams and hope tomorrow's dialysis goes ok. Cheers