ok before patch 6.1 the code ran just fine, accessing the DB for SLDT perfectly. but now i get this error
1x UItat\Core.lua:191: attempt to call method 'CopyProfile' (a nil value)
UItat\Core.lua:191: in function `Generic_Setup'
UItat\Core.lua:76: in function `HUNTER_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
now i wiped out all my gibberish information so the error now is at line 55 in this code instead of 191
the saved variable for SLDT is
SLDataText and the DB inserted into it is SLDTDB
could use some help here.
thank you in advance for your info and helps
here is my code
Lua Code:
function Generic_Setup()
SetCVar("useuiScale", 1);
SetCVar("uiScale", 0.64);
SetCVar("enableCombatText", 0);
SetCVar("CombatDamage", 0);
SetCVar("CombatHealing", 0);
SetCVar("fctSpellMechanics", 0);
SetCVar("displaySpellActivationOverlays", 0);
SetCVar("consolidateBuffs", 0);
if IsAddOnLoaded("Broker2FuBar") then
Broker2FuBar = LibStub("AceAddon-3.0"):GetAddon("Broker2FuBar",true);
Broker2FuBar.db:CopyProfile("UItat - Server");
end
if IsAddOnLoaded("Outfitter") then
Outfitter.Settings.Options.HideMinimapButton = 1;
Outfitter.Settings.Options.DisableItemComparisons = 1;
end
if IsAddOnLoaded("AtlasLoot") then
-- AtlasLootLoader.db.MiniMapButton.hide = true;
end
if IsAddOnLoaded("Castbars") then
Castbars = LibStub("AceAddon-3.0"):GetAddon("Castbars",true);
Castbars.db:CopyProfile("Default");
end
if IsAddOnLoaded("Proximo") then
Proximo.db:CopyProfile("UItat");
end
if IsAddOnLoaded("Broker_Auditor") then
AuditorBroker.db.profile.hideTotalInBar = true;
AuditorBroker.db.global.LibDBIcon.hide = true;
end
if IsAddOnLoaded("Auditor2") then
Auditor.db.profile.autoRepair = true;
Auditor.db.realm.sellGreys = true;
end
if IsAddOnLoaded("InlineAura") then
InlineAura = LibStub("AceAddon-3.0"):GetAddon("InlineAura",true);
InlineAura.db.profile.hideCountdown = true;
end
if IsAddOnLoaded("Recount") then
Recount.db:CopyProfile("UItat");
Recount.MainWindow:Hide();
end
if IsAddOnLoaded("Raven") then
Raven.db:SetProfile("Default");
end
if IsAddOnLoaded("Dominos") then
Dominos:CopyProfile("UItat");
end
if IsAddOnLoaded("Omen") then
Omen.db:CopyProfile("UItat - Server");
end
if IsAddOnLoaded("SLDataText") then
SLDataText = LibStub("AceAddon-3.0"):GetAddon("SLDataText",true);
SLDTDB:CopyProfile("Uitat - Server");
end
end