Download
(3 Kb)
Download
Updated: 11/03/19 08:52 AM
Compatibility:
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:11/03/19 08:52 AM
Created:11/03/19 08:52 AM
Monthly downloads:1,148
Total downloads:85,053
Favorites:4
MD5:
LibClockworkSocket  Popular! (More than 5000 hits)
Version: 1.0
by: Drako-Ei [More]
The purpose of this library is to provide a safe channel for my addons to share data, because i noticed that some addons turn off lib group socket when they start.
This addon uses clockwork map to transfer bytes, so it shouldn't collide with other addons, because as far as im concerned, no one uses the clockwork map.

Functions:

function lib:RegisterSafeChannel(addonName, OnReciveData)
addonName: Addon registered (Might register your addon if you become my friend!)
OnReciveData(tag, b0, b1, b2, isLocalPlayerOwner): tag is the name of the sender, b0, b1 and b2 are the bytes, isLocalPlayerOwner is a boolean (true if player is the sender)
function lib:RegisterUnsafeChannel(channelNumber, OnReciveData)
channelNumber: Number between 0 and 255, if the number is already registered or being in use, chat will print an error
OnReciveData(tag, b0, b1, b2, isLocalPlayerOwner): tag is the name of the sender, b0, b1 and b2 are the bytes, isLocalPlayerOwner is a boolean (true if player is the sender)
function lib:UnregisterUnsafeChannel(channelNumber)
Stop listening channel number
function lib:UnregisterSafeChannel(addonName)
Stop listening registered addon name
function lib:SendSafeData(addonName, b0, b1, b2)
Send data using a registered addon, b0, b1, b2 are bytes to send
function lib:SendUnsafeData(channelNumber, b0, b1, b2)
Send data using a channel number, b0, b1, b2 are bytes to send
You can use the unsafe functions for your addons if you wish to use this library, but if you wish to use your addon's name to send data, and ensure that no one will use your channel's number, you may have to friend me.
Optional Files (0)


Post A Reply Comment Options
Unread 11/03/19, 10:05 PM  
Drako-Ei
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 4
Originally Posted by Baertram
Why don't you use the exisitng lib then and just use the settings to turn it on?
What's the purpose of installing another addon or library instead of enabling the settings of an exisitng one?

Now yo uneed to throttle all the map pings (and it does not matter which map it uses, it matters how many pings are done in total over all addons) on several libraries and addons.

This is the wrong way imo, and only leads to another problem with server kicks due to message spam.
Thank you for the feedback.

The problem are other addons... try to use an addon that relies on lib group socket with hodor reflexes installed, you will realize that it wont work.

I wish i could use the library, implemented lib group socket, but then my addon was not working, i turned off all my addons and the addon started working again.

I searched my addon's LUA and realized some of them turn off other addons map ping events, even when they are not being used. Hodor reflexes for example, is a great addon, every good player has it, but it disables all other map ping listeners, even when you are not raiding. There is a work around, which is overriding the functions that hodor uses for disabling other addons. And the reason is because those addons are NOT using a lib group socket library, the are using raw map pings events... so for avoiding collisions, they just disable other addons in their code... Trust me, i wish i could use lib group socket.

Dont worry, i made sure that this library doesnt interfiere with hodor reflexes.
Last edited by Drako-Ei : 11/03/19 at 10:10 PM.
Report comment to moderator  
Reply With Quote
Unread 11/03/19, 09:52 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5989
Uploads: 78
Why don't you use the exisitng lib then and just use the settings to turn it on?
What's the purpose of installing another addon or library instead of enabling the settings of an exisitng one?

Now yo uneed to throttle all the map pings (and it does not matter which map it uses, it matters how many pings are done in total over all addons) on several libraries and addons.

This is the wrong way imo, and only leads to another problem with server kicks due to message spam.
Last edited by Baertram : 11/03/19 at 09:53 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: