Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:AddOn programming tutorial/Introduction
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== The .toc or Table of Contents === This file tells WoW about your AddOn: what files to load and what order to load them in. Later you will want to peruse the [[TOC format]] page for all of the gory details about what you could put into this file. For now we are just going to give you some basic stuff to include. Using your trusted text file editor, place the following into the <tt>HelloWorld.toc</tt> file and save it: ## Interface: 30300 ## Title: Hello, World! ## Notes: My first AddOn HelloWorld.lua HelloWorld.xml See the line with ## Interface: 30300 in it? The 30300 is the TOC Version and the value shown is obsolete. You will need to put in the current value. WoW has a function, {{api|GetBuildInfo}}, which contains the current TOC Version and you can extract the number to your chat window by entering: <code>/run print((select(4, GetBuildInfo())));</code> in the chat input area. See [[Getting the current interface_number]]. for other ways to get the TOC Version. What is this number? The TOC Version is the user-interface (UI) version for the AddOn. The "30300" is version 3.03.00 (or 3.3.0). This number tells WoW that your AddOn is compatible with Blizzard UI level 3.3.0. If your TOC Version does not match the Blizzard UI number, your AddOn will be considered out of date. This is to minimize problems caused by old UI modifications hosing Blizzard's UI. Starting from the first line we are saying: # The compatible UI version for this addon is 30300 (or 3.3.0) # The title of the addon to be displayed in game is "Hello, World!" # The description of the addon to be displayed in game are the notes # HelloWorld.lua file will be loaded. # HelloWorld.xml file will be loaded. For more details on stuff you can put in here, please visit the [[TOC format]] page.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)