w0lfpack4 / PLG

WoW: Profession Leveling GUide
GNU General Public License v3.0
0 stars 0 forks source link

Error - addon no texture? SetBackdrop error. #3

Open Kumicoo opened 3 years ago

Kumicoo commented 3 years ago

Hey, when i open my crafting window, PLG shows up, but it is a blank parchment window thing.

here is the bugsack error. any help please?

2x PLG\Core\Common.lua:100: attempt to call method 'SetBackdrop' (a nil value) [string "@PLG\Core\Common.lua"]:100: in function createIcon' [string "@PLG\Core\Frames.lua"]:69: in functioncreateDataFrame' [string "@PLG\Core\Core.lua"]:186: in function `Initialize' [string "@PLG\Core\Core.lua"]:292: in main chunk

string "=[C]": in function `LoadAddOn' [string "@ElvUI_SLE\modules\professions\professions.lua"]:38: in function <ElvUI_SLE\modules\professions\professions.lua:35>

[string "@ElvUI_SLE\core\toolkit.lua"]:330: in function InitializeModules' [string "@ElvUI_SLE\core\core.lua"]:85: in function?' [string "@ElvUI\Libraries\LibElvUIPlugin-1.0\LibElvUIPlugin-1.0-36.lua"]:303: in function <...\Libraries\LibElvUIPlugin-1.0\LibElvUIPlugin-1.0.lua:299> string "=[C]": in function `Initialize' [string "@ElvUI\init.lua"]:156: in function <ElvUI\init.lua:155>

[string "@Atlas\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:70: in function <...faceAtlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:65> [string "@Atlas\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:527: in function `EnableAddon' [string "@Atlas\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:630: in function <...faceAtlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>

Locals: self =

{ deDE =
{ } tooltips =
{ } createLabels = defined @PLG\Core\Frames.lua:8 timer5 = 0 TRADE_SKILL_UPDATE = defined @PLG\Core\Core.lua:8 textures =
{ } debug = false tooltip = PLG_Tooltip { } getReagents = defined @PLG\Core\Data.lua:63 setTooltip = defined @PLG\Core\Tooltips.lua:54 lastSID = 0 VendorType =
{ } setRecipe = defined @PLG\Core\Display.lua:8 getData = defined @PLG\Core\Data.lua:8 Vendors =
{ } resetTooltip = defined @PLG\Core\Tooltips.lua:97 maxLevel = 600 debugLocale = "deDE" addonInit = defined @PLG\Core\Addons.lua:86 sendMSG = defined @PLG\Core\Common.lua:19 checkAddons = defined @PLG\Core\Addons.lua:47 selectedRecipe = 1 verbose = false events =
{ } createDataFrame = defined @PLG\Core\Frames.lua:38 frame = PLG_frame { } labels =
{ } TradeSkillFrame = TradeSkillFrame { } TRADE_SKILL_SHOW = defined @PLG\Core\Core.lua:117 setDataTooltip = defined @PLG\Core\Display.lua:127 createIcon = defined @PLG\Core\Common.lua:87 msgs =
{ } pFaction = "Horde" TradeSkillFrame_Update = defined @PLG\Core\Addons.lua:9 backframe = PLG_backframe { } getNPC = defined @PLG\Core\Tooltips.lua:41 help =
{ } SkillType =
{ } enUS =
{ } pLevel = 28 Initialize = defined @PLG\Core\Core.lua:174 TradeSkillFrame_SetSelection = defined @PLG\Core\Addons.lua:8 createText = defined @PLG\Core\Common.lua:55 Localize = defined @PLG\Core\Core.lua:154 getQuest = defined @PLG\Core\Tooltips.lua:8 RegisterEvents = defined @PLG\Core\Core.lua:144 TRADE_SKILL_CLOSE = defined @PLG\Core\Core.lua:135 Racial =
{ } addonLoad = defined @PLG\Core\Addons.lua:100 loaded = false setText = defined @PLG\Core\Common.lua:8 debugTotal = 425 getCondition = defined @PLG\Core\Common.lua:159 setHelpText = defined @PLG\Core\Frames.lua:207 addonTimer = defined @PLG\Core\Addons.lua:72 timer1 = 0 getRecipe = defined @PLG\Core\Data.lua:41 Data =
{ } setWaypoint = defined @PLG\Core\Addons.lua:34 debugLocalization = false tradeSkillAddOns =
{ } navigationAddOns =
{ } Recipe1Frame = PLG_Recipe1_Frame { } Debug = defined @PLG\Core\Common.lua:26 screenshot = false createHelpFrame = defined @PLG\Core\Frames.lua:93 debugProfession = "Blacksmithing" debugEarned = 420 ProfessionNames =
{ } getProfession = defined @PLG\Core\Data.lua:77 resetDisplay = defined @PLG\Core\Display.lua:146 colors =
{ } newRecipe = false Professions =
{ } setReagent = defined @PLG\Core\Display.lua:80 Tooltip = defined @PLG\Core\Common.lua:35 waitForServer = false } name = "Recipe1" x = 8 y = -87 (temporary) = nil (temporary) = PLG_Recipe1_Frame { PixelSnapDisabled = true 0 = texture = { } } (temporary) =
{ edgeSize = 4 tileSize = 4 edgeFile = "Tooltips\UI-Tooltip-Border" tile = true insets =
{ } } (temporary) = "attempt to call method 'SetBackdrop' (a nil value)"

Komak57 commented 3 years ago

This error would suggest the function SetBackdrop has been deprecated by the WoW Plugin API (or mis-called with the current state of PLG). Temp fix, open the PLG/Core/controls.lua with a text editor, visit (and commend by starting the line with --) on lines 89, 90, 151, and 152. I no longer subscribe to WoW, so it would be difficult for me to properly fix this and get it running properly. This should remove the deprecated lines and let the plugin continue with the rest of the interface (without the backdrop / icons).

Kumicoo commented 3 years ago

Want an account to check it? Really love the addon, would be very sad to see it go.

Kumicoo commented 3 years ago

Sadly that fix does not work, btw

Komak57 commented 3 years ago

Are you running this on Retail, or Classic? I can see what I can do. Work hours are ramping up, might be a couple of weeks to get something functioning properly.

Kumicoo commented 3 years ago

Iam playing on retail!

Kumicoo commented 3 years ago

But dont rush yourself, honestly. Me and my friends always used this tho, we are pretty new to the game. LIke, a while ago. we started again.

w0lfpack4 commented 3 years ago

@Komak57 Start with the Classic version repo. I updated it for classic but the vendors quests and recipes are a bit out of date. For anything after Draenor, retail changed professions drastically. It will need to be completely reworked.