WoW:Creating a WoW AddOn: Difference between revisions
Jump to navigation
Jump to search
→Troubleshooting an AddOn
(Created page with "== 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 r...") |
|||
| Line 36: | Line 36: | ||
== Troubleshooting an AddOn == | == Troubleshooting an AddOn == | ||
As of [[Patch 2.3]], if you get a message "Interface action failed because of an AddOn", this means that an AddOn interfered with the Blizzard UI in some way. To diagnose this, enter the following into chat "<tt>/console taintLog 1</tt>" and restart the game | As of [[Patch 2.3]], if you get a message "Interface action failed because of an AddOn", this means that an AddOn interfered with the secure elements of the Blizzard UI in some way. To diagnose this, enter the following into chat "<tt>/console taintLog 1</tt>" to enable basic taint logging and restart the game before trying try to reproduce the taint error. If you reproduce it, you can quit the game and search through the file <tt>Logs\taint.log</tt> for the word "<tt>blocked</tt>" and mail the log to the author of the AddOn listed there. Once you have done this you can turn off logging by entering the following into chat "<tt>/console taintLog 0</tt>" | ||
The command "<tt>/console taintLog 2</tt>" will produce significantly more detail in the taint.log than the basic logging level does. Generally, it is not recommended end users use this option unless asked to do so. If you do use the higher logging level, it is strongly recommended that all other addons other than the one causing the taint problem be disabled before you log in and reproduce the problem. The taint log can become large and difficult to interpret with multiple addons running. Narrow the search down to the offending addon using the basic logging level, disable all other addons and increase the logging level if further investigation is required. | |||
As of [[Patch 5.2.0]], you can also use the command "<tt>/console taintLog 11</tt>" on the public test realms (PTR). ''This option is not, and will not, be available on the production servers''. Be prepared to drink from the fire hose when this option is enabled... it will log '''every''' taint event that occurs and can easily produce taint logs hundreds of megs long even before the world view is displayed. However, this logging level makes it possible for the addon author to investigate each and every taint event that occurs when trying to isolate obscure taint problems in their addons. It is highly recommended that a good regex tool be installed to search the output as the log will often be overwhelmingly large. | |||
== See also == | == See also == | ||