Thread Tools Display Modes
10-17-05, 11:52 AM   #1
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
client to client communications

I'm thinking about writing a simple status monitor addon and was wondering
what techniques are available for sending update information about a status
to another client. What have people done? What works?

The status would not be an in-game value, it would be custom for the
addon. Probably have a simple display on the client side, but what I want
is for the user to select a value, and for other clients to have the ability
to see that value.

The data would likely be small (a simple string or number) so any method
of sharing data would likely work.
  Reply With Quote
10-17-05, 12:29 PM   #2
shouryuu
A Chromatic Dragonspawn
 
shouryuu's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 150
I'm not sure this is doable... In my opinion, the only way to share information would be throught the chat log...
  Reply With Quote
10-19-05, 03:17 PM   #3
Gorak
A Fallenroot Satyr
Join Date: Oct 2005
Posts: 21
The only viable way to share data between seperate clients is to use the messaging system, such as whispers, say-commands, emotes or chat channels.

Many add-ons, when installed, create or join a silent chat channel (a silent channel is one which is not bound to any of your chat frames). Then, the add-on registers for CHAT_MSG_CHANNEL event for itself, and looks at the 'arg9' variable, which contains the channel name. If a channel name match is made, the contents of the message is readed and interpreted, otherwise it's skipped.

If you don't feel like rewriting from scratch, there's always the SkyLight library, a rewrite of the original bloated Sky library. I'm told it works smoothly, but being a naturally suspective person, I'd still implement my own method if I needed to exchange data between clients.
  Reply With Quote
10-21-05, 07:47 AM   #4
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
Chat channels

It seems like chat channels is the way to go. I've looked at a few other
mods doing this and that seems to be what they use. Maybe I'll
look into a few to see if they'll work the way I want, but chances are
I'll write my own simple tool to do the job.

Thanks for the feedback.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » client to client communications


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