Getting the current interface number

From Warcraft Wiki
Jump to navigation Jump to search

When loading the interface, the WoW client skips over any AddOn 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: 110107

The version string is (most of the time), the major patch number but with any periods and leading zeroes removed. For instance, 90002 is 9.0.2.

There are a number of ways to get the current interface version:

It probably is 110107 (Mainline), 50500 (Classic) or 11507 (Vanilla)
But these numbers are maintained locally on this wiki, so they might be out of date.
Use GetBuildInfo
In particular, /dump select(4, GetBuildInfo()) should output the correct version for your client to your chat frame.

See also

References