Thread Tools Display Modes
12-24-06, 12:17 AM   #1
rob1101
A Cyclonian
 
rob1101's Avatar
Join Date: Dec 2006
Posts: 40
need help creating my Hello_World Mod

ok so i have the following files in interface/addons/Hello_World and i cant even get it to show up in the AddOns section in the login screen.

HelloWorld.toc
## Infrance: 20000
## Title: Hello World
## Notes: Plz work
## Dependences:
HelloWorld.lua
Helloworld.xml
HelloWorld.lua
function HelloWorld()
Message("HelloWorld!");
end
HelloWorld.xml
<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/
..\..\FrameXML\UI.xsd">

<Frame name="HelloWorldFrame">
<scrips>
<onload>
HelloWorld();
</onload>
</scrips>
</frame>

</Ui>
if someone could explain to me where i went wrong and why this set up does not work i would greatly appreciate it.

Last edited by rob1101 : 12-24-06 at 12:38 AM.
  Reply With Quote
12-24-06, 02:47 AM   #2
Romie
A Deviate Faerie Dragon
Join Date: Nov 2006
Posts: 10
its /script not /scrip

hopefully that will help
  Reply With Quote
12-24-06, 03:17 AM   #3
Syzgyn
An Aku'mai Servant
 
Syzgyn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 37
Lua and XML are Case Sensitive first off. There's a bunch of typos too.
Changes are in Bold

HelloWorld.toc
Code:
## Interface: 20000
## Title: Hello World
## Notes: Plz work
## Dependences:
HelloWorld.xml
HelloWorld.lua
Code:
function HelloWorld()
     DEFAULT_CHAT_FRAME:AddMessage("HelloWorld!");
end

HelloWorld.xml
Code:
<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/ 
..\..\FrameXML\UI.xsd"> 
<Script file="HelloWorld.lua"/>
<Frame name="HelloWorldFrame">
     <Scripts>
          <OnLoad>
               HelloWorld();
          </OnLoad>
     </Scripts>
</Frame>

</Ui>
I'd recommend taking a look at http://wow.nevir.net/tutorial/hello_world/

Last edited by Syzgyn : 12-24-06 at 03:24 AM.
  Reply With Quote
12-24-06, 07:33 AM   #4
rob1101
A Cyclonian
 
rob1101's Avatar
Join Date: Dec 2006
Posts: 40
wow oops there are alot of typos lol, how did i miss scip? well thats what happens when you only get 4 hours of sleep in 48 hours. any way thank you for the help ill make the changes and post back here on my progress
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » need help creating my Hello_World Mod


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