Thread Tools Display Modes
12-09-11, 09:56 AM   #1
chumii
A Fallenroot Satyr
 
chumii's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2009
Posts: 23
Weakauras: Custom Textures

Hey,

i want to make a bar for dk runepower with weakauras.. i want to have it a triangle shape.
So i simply made a new .tga, like its shown in Powerauras wiki, named it "Aura146.tga" and saved it into the Poweraura-Texture folde inside the weakauras folder.
Now i added this line

[WeakAuras.PowerAurasPath.."Aura146"] = "Triangle"
to "Types.lua".. but now my weakauras wont load any settings.. i cant edit exisiting auras.. well i can add a new one, but the right side of the ingame setting window is completly empty..

anyone here who can tell me how i can add that texture into weakauras? or maybe my .tga is broken.. anyone got a working triangle shape?

greetz
chumii
  Reply With Quote
12-09-11, 10:48 AM   #2
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
If the addon itself broke in a drastic way due to adding that line, my suspicion is that the table syntax was broken in the process. If you're adding a line to a table, make sure that the previous line ends with a comma. E.g.

Code:
[WeakAuras.PowerAurasPath.."Aura145"] = "Taijitu Top",
[WeakAuras.PowerAurasPath.."Aura146"] = "Triangle"
and not

Code:
[WeakAuras.PowerAurasPath.."Aura145"] = "Taijitu Top"
[WeakAuras.PowerAurasPath.."Aura146"] = "Triangle"
Note that I'm not sure if this is the correct way to add textures to WeakAuras or if other things must also be done, etc. I've never edited the addon myself. But based on your description of things severely breaking, I'd guess this is why that part happened.

As for the rest, I'm not really qualified to answer since I've never done this myself.
  Reply With Quote
12-09-11, 01:13 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
My guess is what Barjack assumed also. You must be getting a Lua error from this. It will tell you exactly what is wrong and where in the file. Make sure that you don't have Lua errors hidden in Interface Options.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Weakauras: Custom Textures


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