WoW:Getting the current interface number: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Fix link and add deprecated mention, not sure if a tag exists.) |
||
Line 23: | Line 23: | ||
* Extract FrameXML and check FrameXML.toc | * Extract FrameXML and check FrameXML.toc | ||
:: You can download Blizzard's [ | :: [DEPRECATED, not updated since oct. 2010] | ||
:: You can download Blizzard's [https://us.battle.net/support/en/article/33747 User Interface Customization tool], use it to extract interface data, and peek at <code>World of Warcraft\Blizzard Interface Data (usUS)\FrameXML\FrameXML.toc</code> | |||
* View FrameXML.toc online | * View FrameXML.toc online | ||
:: For instance at [{{wdnlink|FrameXML/FrameXML.toc}} wowcompares]. | :: For instance at [{{wdnlink|FrameXML/FrameXML.toc}} wowcompares]. |
Revision as of 04:24, 5 November 2017
← HOWTOs
When loading the interface, the WoW client skips over any AddOns whose interface version does not match its own. This is an effort to keep the client's behavior free of errors due to changes in the API. Each AddOn specifies (in its .toc file) the interface version with which it complies. So an AddOn's .toc file most likely contains a line similar to:
## Interface: 70000
Here, 70000 would mean that the AddOn is designed against the Patch 7.0.0 client (which doesn't technically exist, Patch 7.0.3 is the pre-patch release). If the interface was only compatible with a specific release like Patch 7.0.3 it most likely contains a line similar to:
## Interface: 70300
Reference
There are a number of ways to get the current interface version:
- See the latest 'patch notes' and look for the 'Interface' number in the Patch box.
- This is the most authoritative source on the Wiki.
- The current number probably is '80205', from our WoWWIki 'Interface Version' template {{API LatestInterface}}
- But this number is maintained manualy, so it might be out of date.
- Its usually derrived exactly from 'major.minor' version
- 2.4.0 (i.e. 2 being the major version number and .4 being the minor version number) is 20400, 5.4.0 is 50400 and, 5.4.1 (.1 being the sub-minor version) would likely be 50401 (however, Blizzard doesn't appear to distinguish on the sub-minor version level, so you would still use 50400).
- Steal it from another AddOn
- Recently updated AddOns, which are not listed as "out of date" by the client contain the latest Interface version in their toc tag.
- Use GetBuildInfo
- In particular,
/run print((select(4, GetBuildInfo())));
should output the correct version to your chat frame.
- In particular,
- Extract FrameXML and check FrameXML.toc
- [DEPRECATED, not updated since oct. 2010]
- You can download Blizzard's User Interface Customization tool, use it to extract interface data, and peek at
World of Warcraft\Blizzard Interface Data (usUS)\FrameXML\FrameXML.toc
- View FrameXML.toc online
- For instance at [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/FrameXML.toc wowcompares].