Thread Tools Display Modes
04-15-15, 04:36 PM   #1
tobias1919
A Deviate Faerie Dragon
Join Date: Mar 2015
Posts: 13
Addon version check?

Hello! I'll start by saying, that i'm very new to writing addons, and programming in general...

I see some addons giving an in-game message when a new version is available...
How is this done? I've tried googling various stuff, but doesn't seem to come up with anything worth mentioning...
  Reply With Quote
04-15-15, 04:40 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
SendAddonMessage
  Reply With Quote
04-15-15, 09:53 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
To expand upon what Drizdt said, the addons will talk with each other over the addon message channel to ask for the addon version. If a user updates to a new version and that version doesn't match that returned by the other copies of the addon, they will know that it is newer (if the number is bigger, of course).

Now... There are only a select few of addons that where users having the latest version is in their best interests. If you don't have a really, really, really good reason for this, then don't put it in your addon.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-16-15, 12:44 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Seerah View Post
If you don't have a really, really, really good reason for this, then don't put it in your addon.
This x1000. It's incredibly annoying to download something simple, and later have it spam you with "OMG YOUR ADDON IS OUT OF DATE!!!!!" warnings for no good reason. Other than major patches, I only run the Curse Client to check for addon updates about once a month. An addon spamming me about unnecessary updates isn't going to make me go update immediately. It's just going to make me uninstall the addon.

The only addons that have a good reason for version checking are addons whose functionality depends on communicating with other users of the addon, and even then, they should only pester the user to update if their version is no longer compatible with the current version.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
04-18-15, 11:52 AM   #5
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
If you absolutely must add this to your addon, be certain that it will only print the information one time. Not every time you log in or upon every UI reload. That's a good way to annoy the hell out of people.

Personally, in Wow that is my biggest pet peeve... to be spammed repeatedly with the same info from an addon.
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
04-18-15, 01:12 PM   #6
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by Phanx View Post
This x1000. It's incredibly annoying to download something simple, and later have it spam you with "OMG YOUR ADDON IS OUT OF DATE!!!!!" warnings for no good reason. An addon spamming me about unnecessary updates isn't going to make me go update immediately. It's just going to make me uninstall the addon.
It's going to make me remove the spam from the AddOn code

Originally Posted by Petrah View Post
If you absolutely must add this to your addon, be certain that it will only print the information one time
NO please just make an option to disable all chat massages for the addon for all future versions.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 04-18-15 at 01:15 PM.
  Reply With Quote
04-18-15, 01:41 PM   #7
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
Originally Posted by Tonyleila View Post
It's going to make me remove the spam from the AddOn code



NO please just make an option to disable all chat massages for the addon for all future versions.
Even better for those who don't care about updates.
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
04-22-15, 04:32 PM   #8
tobias1919
A Deviate Faerie Dragon
Join Date: Mar 2015
Posts: 13
Hehe

Thank you all for your replies...
Yet again, i forgot to think of the obvious - and i am NOT implementing this in any addon. I was simply curious about how it worked.

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Addon version check?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off