View Single Post
10-13-14, 10:39 AM   #11
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
The addon does not show up as incompatible in the addons list. Even not if I test your code without any changes. *shrug*

It does not work because of the UI tag in the XML. Everything is case sensitive. It's UI and not Ui. (first and last line)

Lua Code:
  1. <UI xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\..\FrameXML\UI.xsd">
  3.   <Script File="HelloWorld.lua"/>
  4.   <Frame name="HelloWorldFrame">
  5.    <Scripts>
  6.     <OnLoad>
  7.      HelloWorld();
  8.     </OnLoad>
  9.    </Scripts>
  10.   </Frame>
  11. </UI>

There's no need to load the lua file via the toc if you're loading it in the XML. This would be enough.
Code:
##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.xml
Or you're removing the
Code:
  <Script File="HelloWorld.lua"/>
tag from the XML and use
Code:
##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.lua
HelloWorld.xml
instead. Just two ways to get the same thing done.

Btw: If I'm copy&paste your toc data from your first post there are leading blanks in front of some lines. Don't know where they are from ... but if this is the case in your toc too, then you'll have to remove them to have the addon loaded correctly.

It's
Code:
##Interface:50400
 ##Title:Hello, World!
 ##Author:Me
 ##Version:v1.0.0
 HelloWorld.lua
 HelloWorld.xml
right now, and it should be
Code:
##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.lua
HelloWorld.xml

Last edited by Duugu : 10-13-14 at 10:50 AM.
  Reply With Quote