View Single Post
03-16-09, 03:02 PM   #6
PProvost
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 13
Originally Posted by p3lim View Post
All my plug-ins support embedding.
Not that I can see.

In both oUF_BarFader and oUF_RuneBar you reference the global symbol oUF (bad) without any assert or check (good). In an embedded scenario the global oUF symbol probably doesn't exist unless the layout author republished it into global scope.

The part you're missing is having this at the top of the lua file:

Code:
local parent = debugstack():match[[\AddOns\(.-)\]]
local global = GetAddOnMetadata(parent, 'X-oUF')
local oUF = _G[global] or oUF
assert(oUF, 'oUF not loaded')
  Reply With Quote