|
|
| Line 1: |
Line 1: |
| There are a few reasons why you might need the most current Interface version number. Usually you are a mod author and need to specify it in your [[The TOC Format|.TOC file]]. It would look like:
| | 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 [[The TOC Format|.toc file]]) the interface version with which it complies. So an addon's .toc file most likely contains a line similar to: |
|
| |
|
| ## Interface: 20006 | | ## Interface: 20006 |
|
| |
|
| But how do you get this number? If you boot up WoW, there is a version number displayed '''but this number is wrong'''.
| | == Finding the client UI version locally == |
| | |
| == Current ==
| |
| The current Interface version number for WoW 2.0.10 on March 3, 2007 is:{{ref}}
| |
| 20003
| |
| | |
| == Steal It ==
| |
| Chances are someone else has beaten you to it, and already updated their addon to the latest version, and you might already have the updated version, especially for addon packages with a .exe updater. Simply open one of their addon's .toc files to see the valid interface number.
| |
| | |
| This number might be wrong, or you may not have any up to date addons, '''or you may feel horrible for ripping someone else's hard work'''.
| |
| | |
| == Do it yourself ==
| |
| This is a bit more tricky. What you want is to find the interface number in Blizzard's FrameXML.toc file after a patch -- but this file is buried in a MPQ archive! While blizzard provides an [http://www.blizzard.com/support/wow/?id=aww01669p Extraction Tool] it will extract all the current files! If you want to save on diskspace, read on:
| |
|
| |
|
| You need to grab [http://www.blizzard.com/support/wow/?id=aww01669p WinMPQ] '''but wait'''! Because WoW's patch.MPQ file is so big, the old WinMPQ program will crash with a 'overflow' error! Instead you need to grab this [http://www.wowinterface.com/downloads/fileinfo.php?id=3990 patched WinMPQ] program.
| | The WoW client's current version number is stored in (and determined by) Blizzard's FrameXML.toc file. The following assumes you've already extracted (using Blizzard's [http://www.blizzard.com/support/wow/?id=aww01669p Extraction Tool]) the client UI files from an MPQ archive into a directory filled with .xml files, .lua files, and one .toc file. |
|
| |
|
| Install it, then open:
| | The extracted files end up in a directory called '''Blizzard Interface Data (enUS)''' or something similar, under the root directory of your WoW installation. |
| World of Warcraft\enUS\locale-enUS.MPQ
| |
|
| |
|
| From there, find the line that says:
| | The second line of the |
| Interface\FrameXML\FrameXML.toc
| |
|
| |
|
| | <path to WoW installation>\Blizzard Interface Data <your locale>\FrameXML\FrameXML.toc |
|
| |
|
| | file determines the current version. ''Note that if your client has been patched since the last time you ran the extractor, you need to extract again. The patch downloader will only update the .mpq'' |
|
| |
|
| click it, then click extract. Put it somewhere you can access, and open it in your favorite text editor. Look the ##Interface line, and voila! The newest interface version number is in your hands, to be used in all your addons. Please remember that just changing the ##Interface line does not mean the mod will work, the code, structure and functions for addons can change after a patch, so check the patch notes and your favorite UI forums to see if you need to update any of your code before re-releasing your addon!
| | == An online alternative == |
|
| |
|
| * OR, just view the latest [{{wdnlink|FrameXML/FrameXML.toc}} FrameXML.toc] on-line, courtesy http://wdn.wowinterface.com
| | This information is also available online: [{{wdnlink|FrameXML/FrameXML.toc}} FrameXML.toc] |
| | courtesy http://wdn.wowinterface.com |
|
| |
|
| {{references|body= | | {{references|body= |