View Single Post
04-28-15, 11:00 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
Problem Loading a profile

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:
  1. function Generic_Setup()
  2.     SetCVar("useuiScale", 1);
  3.     SetCVar("uiScale", 0.64);
  4.     SetCVar("enableCombatText", 0);
  5.     SetCVar("CombatDamage", 0);
  6.     SetCVar("CombatHealing", 0);
  7.     SetCVar("fctSpellMechanics", 0);
  8.     SetCVar("displaySpellActivationOverlays", 0);
  9.     SetCVar("consolidateBuffs", 0);
  10.     if IsAddOnLoaded("Broker2FuBar") then
  11.         Broker2FuBar = LibStub("AceAddon-3.0"):GetAddon("Broker2FuBar",true);
  12.         Broker2FuBar.db:CopyProfile("UItat - Server");
  13.     end
  14.     if IsAddOnLoaded("Outfitter") then
  15.         Outfitter.Settings.Options.HideMinimapButton = 1;
  16.         Outfitter.Settings.Options.DisableItemComparisons = 1;
  17.     end
  18.     if IsAddOnLoaded("AtlasLoot") then
  19. --      AtlasLootLoader.db.MiniMapButton.hide = true;
  20.     end
  21.     if IsAddOnLoaded("Castbars") then
  22.         Castbars = LibStub("AceAddon-3.0"):GetAddon("Castbars",true);
  23.         Castbars.db:CopyProfile("Default");
  24.     end
  25.     if IsAddOnLoaded("Proximo") then
  26.         Proximo.db:CopyProfile("UItat");
  27.     end
  28.     if IsAddOnLoaded("Broker_Auditor") then
  29.         AuditorBroker.db.profile.hideTotalInBar = true;
  30.         AuditorBroker.db.global.LibDBIcon.hide = true;
  31.     end
  32.     if IsAddOnLoaded("Auditor2") then
  33.         Auditor.db.profile.autoRepair = true;
  34.         Auditor.db.realm.sellGreys = true;
  35.     end
  36.     if IsAddOnLoaded("InlineAura") then
  37.         InlineAura = LibStub("AceAddon-3.0"):GetAddon("InlineAura",true);
  38.         InlineAura.db.profile.hideCountdown = true;
  39.     end
  40.     if IsAddOnLoaded("Recount") then
  41.         Recount.db:CopyProfile("UItat");
  42.         Recount.MainWindow:Hide();
  43.     end
  44.     if IsAddOnLoaded("Raven") then
  45.         Raven.db:SetProfile("Default");
  46.     end
  47.     if IsAddOnLoaded("Dominos") then
  48.         Dominos:CopyProfile("UItat");
  49.     end
  50.     if IsAddOnLoaded("Omen") then
  51.         Omen.db:CopyProfile("UItat - Server");
  52.     end
  53.     if IsAddOnLoaded("SLDataText") then
  54.         SLDataText = LibStub("AceAddon-3.0"):GetAddon("SLDataText",true);
  55.         SLDTDB:CopyProfile("Uitat - Server");
  56.     end
  57. end
__________________
  Reply With Quote