Thread Tools Display Modes
02-22-11, 10:04 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
New Day, New Problems.

So i've tryed to put oUF in my AftermathhUI, but it wasn't so succesful, get many errors, and stuff..

what i did first i had AftermathhUI folder, then oUF folder then i added oUF.xml to my toc, didn't work so well, anyone got any idea how to fix it?

also put in my oUF_Aftermathh.

local parent, ns = ...
local oUF = ns.oUF or oUF

how the folder looks;

Code:
Media
Modules
oUF 
AftermathhUI.toc
AftermathhUI_Config.lua
AftermathhUI_Lunch.lua
oUF_Aftermathh.lua
oUF_AftermathhTags.lua
How my Toc Looks like:

Code:
AftermathhUI_Config.lua
AftermathhUI_Lunch.lua

oUF\oUF.xml

oUF_Aftermathh.lua
oUF_AftermathhTags.lua

Modules\nErrors.lua
Modules\nWarning.lua
Modules\nTips.lua
Modules\nCoords.lua
Modules\nTricks.lua
Modules\nCommands.lua
Modules\nAutoRealease.lua
Modules\nAutoAcceptInviteFromFriends.lua
Modules\nAutoInviteToPartyRaid.lua
Modules\nRepair.lua
Modules\nPanels.lua

Modules\nStats.lua
Modules\nChat.lua
Modules\nBags.lua
Modules\nLoot.lua
Modules\nTooltip.lua
Modules\nBuff.lua
Modules\nSkins.lua
Modules\nButtons.lua

Modules\nMinimap.lua
Modules\nMinimap_GameTime.lua
Modules\nMinimap_Clock.lua

Modules\Tekability.lua
Modules\aMail.lua
Modules\OmniCC.lua

Last edited by Aftermathhqt : 02-23-11 at 01:47 AM.
  Reply With Quote
02-22-11, 02:14 PM   #2
Waky
A Cobalt Mageweaver
 
Waky's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 200
How are you adding it to your TOC? Just as "oUF.xml" or as "oUF\oUF.xml" ?
  Reply With Quote
02-22-11, 02:30 PM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Waky View Post
How are you adding it to your TOC? Just as "oUF.xml" or as "oUF\oUF.xml" ?
as "oUF\oUF.xml"
  Reply With Quote
02-23-11, 01:07 AM   #4
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
The error i get.

Code:
Message: Interface\AddOns\AftermathhUI\oUF\elements\tags.lua:561: <unnamed>:SetFormattedText(): Font not set
Time: 02/23/11 08:06:32
Count: 1
Stack: [C]: in function `SetFormattedText'
Interface\AddOns\AftermathhUI\oUF\elements\tags.lua:561: in function `UpdateTag'
Interface\AddOns\AftermathhUI\oUF\elements\tags.lua:412: in function `func'
Interface\AddOns\AftermathhUI\oUF\ouf.lua:133: in function <Interface\AddOns\AftermathhUI\oUF\ouf.lua:124>
(tail call): ?

Locals: (*temporary) = <unnamed> {
 parent = oUF_AftermathhPlayer {
 }
 UpdateTag = <function> defined @Interface\AddOns\AftermathhUI\oUF\elements\tags.lua:552
 0 = <userdata>
}
(*temporary) = "%s%s"
(*temporary) = ""
(*temporary) = 123609

Last edited by Aftermathhqt : 02-23-11 at 01:52 AM.
  Reply With Quote
02-23-11, 03:16 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Ah, you will need to Set the font of your fontstring before it will allow you to set any text to it.

Try using :

text:SetFontObject("GameFontNormal")

before the SetFormattedText line and see if helps. Remember to change text to the object you are using. If that works find a font object you want to use instead.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
02-23-11, 03:48 AM   #6
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Xrystal View Post
Ah, you will need to Set the font of your fontstring before it will allow you to set any text to it.

Try using :

text:SetFontObject("GameFontNormal")

before the SetFormattedText line and see if helps. Remember to change text to the object you are using. If that works find a font object you want to use instead.
Got more errors, just.

Edit... i just fail 'Fonts\\Fonts\\ARIALN.ttf'

Last edited by Aftermathhqt : 02-23-11 at 06:37 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » New Day, New Problems.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off