WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to get the Interface version (https://www.wowinterface.com/forums/showthread.php?t=57155)

Bleu 05-18-19 04:13 PM

How to get the Interface version
 
I offer my apologies in advance. This is a somewhat weird question to ask here since it's probably somewhat outside this community's wheelhouse, but I inferred from someone else's wisdom that this may be the best place to ask it. That said...

Assuming you're inside an external app with a path to the WoW installation, what means are there (if any) to get the interface version that WoW install is expecting for valid add-ons?

Sometimes, you can just get the file version info for the WoW executable and format it like this:
{major}{minor:00}{revision:00}

For example, that works with the Classic Beta because its current file version is 1.13.2.30406 and its current interface version is 11302. However, it does NOT work with Retail because its current file version is 8.1.5.29981 and its current interface version (I believe) is 80100.

Fizzlemizz 05-18-19 04:26 PM

Code:

[Wow]/_retail_/WTF/Config.wtf
CVar for lastAddonVersion

Means you have to have stared the game at least once.

Bleu 05-18-19 04:47 PM

Well, fancy seeing you here! I guess this means, unfortunately, that after the game is updated, there's gonna be that gap where you still don't know (until the game is launched and quits). At least you could also track the executable's MD5 and/or version and know that you don't know.

That was really very helpful, thank you. But I have OCD tendencies and now I'm obsessing about that damned gap! lol

Fizzlemizz 05-18-19 04:51 PM

Do you mean the gap between updating the game and starting it?

The interface version only changes with Xpacs and major point releases so it's not an every day or even month type thing.

Bleu 05-18-19 04:56 PM

Yes, you're right. Like I said, OCD tendencies. Thanks again. This will be very helpful.

Bluspacecow 05-19-19 12:38 AM

From looking at a comparison of 8.1.5 to Classic 1.13.x I can't see the Interface number in there.

We will have to get someone to log onto Classic beta then run the following command in a chat window -

/dump GetBuildInfo()

and giving us what the 4th line it returns. Or doing this -

/dump select(4, GetBuildInfo())

Which runs the same command , selects the 4th line and returns that

Fizzlemizz 05-19-19 01:29 AM

Given the removal of the interface # from Blizzards 8.2 PTR addon .tocs they may be moving to get rid of it altogether as an out-of-date test.

jeruku 05-19-19 06:40 AM

Quote:

Originally Posted by Fizzlemizz (Post 332156)
Given the removal of the interface # from Blizzards 8.2 PTR addon .tocs they may be moving to get rid of it altogether as an out-of-date test.

That's a somewhat scary thought. Then how are they going to test for out-of-date addons, build their own addon repository?

Fizzlemizz 05-19-19 08:50 AM

As a test (or at least as a notifier) the interface # has always been a misnomer as "out-of-date". The code is being parsed while loading so they could also do one prior to the character screen showing or some such. The character select screen is also lua so all the required "bits" should be in place.

aallkkaa 05-20-19 01:09 PM

A bit late to this thread but...

Regarding this:
Quote:

Originally Posted by Bleu (Post 332145)
For example, that works with the Classic Beta because its current file version is 1.13.2.30406 and its current interface version is 11302. However, it does NOT work with Retail because its current file version is 8.1.5.29981 and its current interface version (I believe) is 80100.

It seems to me you are seeing it wrong. It's true that an addon with "##Interface: 80100" in its .toc will be considered up to date by the game's addons manager, but that's because, for years (if not since the very begining), addons are therein considered up to date as per their Major.minor (Mmm) interface values, discarding the revision number (Mmmrr).
For example: As a note to myself, my library has "##Interface: 80105", but it would work just the same if it had "##Interface: 80100" instead.

And, unless Classic has changed it, "##Interface: 11300" should work just as well as "##Interface: 11302" (I myself have looked at nothing Classic thus far).

Fizzlemizz 05-20-19 02:19 PM

Blue was asking about this in regard to checking currency for creating an addon downloader of his own. There was whole wheel invention process going on because "official" addons weren't available second 1 of Classic beta release.


All times are GMT -6. The time now is 06:01 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI