AddOn: Difference between revisions

230 bytes removed ,  1 April 2010
minor edits
(minor edits)
Line 3: Line 3:
In plain English, an AddOn is just some files you can put in your game folder that can (theoretically) improve your interaction with the World of Warcraft game (i.e. make it easier to play, or give you more information about what's going on in the game).
In plain English, an AddOn is just some files you can put in your game folder that can (theoretically) improve your interaction with the World of Warcraft game (i.e. make it easier to play, or give you more information about what's going on in the game).


Often the name '''modification''' (or "mod" for short) is used interchangeably with '''AddOn'''. More specifically, a mod is a third-party AddOn that alters or enhances some aspect of World of Warcraft's interface. Mods can perform a wide variety of tasks, including adding new buttons to the screen, altering the built-in player and party frames. In extreme cases, mods completely supplant the standard WoW [[UI|interface]], usually offering more advanced functionality.
Often the name '''modification''' (or "mod" for short) is used interchangeably with AddOn. More specifically, a mod is a third-party AddOn that alters or enhances some aspect of World of Warcraft's interface. Mods can perform a wide variety of tasks, including adding new buttons to the screen, altering the built-in player and party frames. In extreme cases, mods completely supplant the standard WoW [[UI|interface]], usually offering more advanced functionality.


Some mods are standalone, able to run without any additional software. Others are built on libraries such as [[Sea]] or [[Ace (AddOns)|Ace]]. Still others, such as [[Cosmos]], are compilations of many individually-developed mods.
Some mods are standalone, able to run without any additional software. Others are built on libraries such as [[Sea]] or [[Ace (AddOns)|Ace]]. Still others, such as [[Cosmos]], are compilations of many individually-developed mods.


See [[Hosted AddOn Pages]] for a list of AddOns hosted on the wiki. For a good introduction and explanation, please see [[UI FAQ|The Definitive Addon and Macro FAQ]].
== Blizzared's AddOn policy ==
 
With the release of [[Patch 3.1]], [[Blizzard Entertainment]] introduced a new UI AddOn development policy.<ref name="policy">http://www.worldofwarcraft.com/policy/ui.html</ref> Here is a summary below:  
== New official AddOn policy from Blizzard ==
With the release of [[Patch 3.1]], [[Blizz]]ard introduced a new UI AddOn development policy.<ref name="policy">http://www.worldofwarcraft.com/policy/ui.html</ref> Here is a summary below:  
# AddOns must be free of charge.
# AddOns must be free of charge.
# AddOn code must be completely visible.
# AddOn code must be completely visible.
Line 22: Line 20:
It isn't exactly clear how Blizzard plans to enforce this policy, but developers should follow the policy or risk some sort of exclusion of their AddOns from the game. The following sentence ends the introductory paragraph of the policy: "failure to abide by them may result in measures up to and including taking formal legal action."<ref name="policy"/>
It isn't exactly clear how Blizzard plans to enforce this policy, but developers should follow the policy or risk some sort of exclusion of their AddOns from the game. The following sentence ends the introductory paragraph of the policy: "failure to abide by them may result in measures up to and including taking formal legal action."<ref name="policy"/>


== How do I create an AddOn? ==
== Creating an AddOn ==
First of all, you need to create a new directory in Interface\AddOns. The name of this directory is kind of important, as it is what other AddOns use to refer to your AddOn (in dependencies).  Therefore, using version numbers in your AddOn directory name can be a bad idea; you will run the risk of having other AddOns "break" when you change the version.  This will probably lead to people either not depending on your AddOn or, worse, that they'll keep using an old version.
First of all, you need to create a new directory in Interface\AddOns. The name of this directory is kind of important, as it is what other AddOns use to refer to your AddOn (in dependencies).  Therefore, using version numbers in your AddOn directory name can be a bad idea; you will run the risk of having other AddOns "break" when you change the version.  This will probably lead to people either not depending on your AddOn or, worse, that they'll keep using an old version.


Line 29: Line 27:
Look at [[Getting started with writing addons]] to get a better idea of the structure of an addon.
Look at [[Getting started with writing addons]] to get a better idea of the structure of an addon.


== What is this .toc file? ==
== Toc files ==
'''.toc''' is short for "table of contents".
'''.toc''' is short for "table of contents".


Line 46: Line 44:
To get the latest interface number, see [[Getting the current interface number]]. The number in the .toc file must match the current build or the add on will not be loaded/active, unless the user has explicitly told WoW to load out-of-date Addons. If the .toc file declares an interface number prior to 2.0.0 (i.e. pre-[[The Burning Crusade]]), the AddOn can not be loaded, regardless of the load out of date AddOns setting.
To get the latest interface number, see [[Getting the current interface number]]. The number in the .toc file must match the current build or the add on will not be loaded/active, unless the user has explicitly told WoW to load out-of-date Addons. If the .toc file declares an interface number prior to 2.0.0 (i.e. pre-[[The Burning Crusade]]), the AddOn can not be loaded, regardless of the load out of date AddOns setting.


===Special case : [[Bindings.xml]]===
=== Bindings.xml ===
If you include a [[Bindings.xml]] file, it does not have to be included in your .toc list of files to load - WoW loads this file automatically. This file is used to set key bindings specific to the AddOn.
If you include a [[Bindings.xml]] file, it does not have to be included in your .toc list of files to load - WoW loads this file automatically. This file is used to set key bindings specific to the AddOn.


===What other keywords are there in the .toc file?===
=== Other keywords in the toc file ===
Please check out [[The TOC Format]] for a more detailed list.
Please check out [[The TOC Format]] for a more detailed list.


Line 75: Line 73:
{{elink|site=Wowace Forums|link=http://forums.wowace.com|desc=Great Addon Developer Forum}}
{{elink|site=Wowace Forums|link=http://forums.wowace.com|desc=Great Addon Developer Forum}}
[http://www.wastefraudandabuse.org/quest_help.htm Quest-Helper AddOn Easy Install]
[http://www.wastefraudandabuse.org/quest_help.htm Quest-Helper AddOn Easy Install]


=== Addon Providers ===
=== Addon Providers ===
Anonymous user