View Single Post
02/24/16, 07:39 AM   #39
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by sirinsidiator View Post
What merlight is referring to is my failure to properly use it in sidWarTools.
Actually I wasn't referring to a particular usage. Having such variable in manifest is inherently broken. Everyone will stop updating their add-ons one day. Why should they all break with the next game update just because a version number increases?

Your suggested "proper" usage shows that the variable is useless. You need to have checks inside both files (edit: okay, redefining functions works, but... ugh), one runs only when API version matches its filename, the other runs only when API version doesn't match the other file's name. So they could just as well be named myAddon_old.lua and myAddon_new.lua. $(APIVersion) is pointless, as long as there are never more than 2 game versions outside.