Download
(8Kb)
Download
Updated: 11-21-08 12:52 PM
Pictures
File Info
Updated:11-21-08 12:52 PM
Created:10-23-08 11:38 AM
Downloads:3,267
Favorites:40
MD5:

AntiSocial

Version: 3.0.3-1 alpha
by: ShaneSveller [More]

This LDB addon will block:

  • Duel requests (on by default)
  • Party invites (off by default)
  • Guild invites (off by default)
  • Petitions (guild/arena) (on by default)
  • Trade requests (off by default)

Each can be toggled by clicking on the LDB display. The tooltip lists the click- and key-combinations to do so. Simple and no-frills. Only notifies you, no polite whisper. Uses about 15KiB of memory for me.

I wrote this to replace the blocking functionality of LeaveMeAlone for a ~95% memory usage savings and getting rid of FubarPlugin-2.0.

In order to use this addon you'll need a LibDataBroker display like Fortress or ButtonBin.

3.0.2-1b -> 3.0.3-1a
-----------------------

* Will not process party invites or trade requests from friends or guildies
From frayol's suggestions:
* Fixed Duel-blocking - thanks for pointing out the missing RegisterEvent, frayol, was already fixed in my local copy
* Changed wording on tooltip to used colored "Blocked" or "Unblocked"

TODO: Allow trade invites, etc. from party members
Post A Reply Comment Options
Unread 06-20-09, 11:01 PM  
WackyLisa
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Broker Anti-Social & Docking Station

I'm another Docking Station user.
I went to enable duel requests today and couldn't find Antisocial on my bottom right bar so I went into my DS settings...
Well, AntiSocial is listed for me by it is grayed out for some reason. (Minimap Button Frame is as well but is obviously still running as I have the box on my screen.)
Despite being grayed out my old settings are still there: enabled, pane 2, position right.
I made sure that everything is up to date and the situation is the same on my new toon and my main.
Ideas?
Thanks.
Report comment to moderator  
Reply With Quote
Unread 06-11-09, 03:42 AM  
Borrie
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 16
File comments: 43
Uploads: 5
Originally posted by Frayol
That sounds like you don't have "load out of date addons" enabled in the blizz options. You can either enable the loading of out of date addons or else, if you really want, change the interface number. To do that, go into the Broker_AntiSocial folder and open Broker_AntiSocial.toc in the text editor of your choice (notepad will do fine). The first line reads as:

Code:
## Interface: 30000
change it to:

Code:
## Interface: 30100


To do that, open (again in any text editor) core.lua and the first few lines will look like this:

Code:
local ldb = LibStub("LibDataBroker-1.1"):NewDataObject("AntiSocial", {
	icon = "Interface\\GossipFrame\\PetitionGossipIcon.blp",
	label = "AntiSocial"
})
Change it to:

Code:
local ldb = LibStub("LibDataBroker-1.1"):NewDataObject("AntiSocial", {
	type = "data source",
	icon = "Interface\\GossipFrame\\PetitionGossipIcon.blp",
	label = "AntiSocial"
})
Hope that helps.
I do have "load out of date addons" enabled.
Thanks for the reply, I'll be trying that when I get home from work this evening.

Greetings
Borrie
Report comment to moderator  
Reply With Quote
Unread 06-11-09, 03:26 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 127
Uploads: 4
Originally posted by Borrie
It doesn't show up in the options of Dockingstation so I can't enable it.
That sounds like you don't have "load out of date addons" enabled in the blizz options. You can either enable the loading of out of date addons or else, if you really want, change the interface number. To do that, go into the Broker_AntiSocial folder and open Broker_AntiSocial.toc in the text editor of your choice (notepad will do fine). The first line reads as:

Code:
## Interface: 30000
change it to:

Code:
## Interface: 30100
I tried to use this
Code:
type = "data source",
but since I don't exactly know where to put that line it didn't work for me.
To do that, open (again in any text editor) core.lua and the first few lines will look like this:

Code:
local ldb = LibStub("LibDataBroker-1.1"):NewDataObject("AntiSocial", {
	icon = "Interface\\GossipFrame\\PetitionGossipIcon.blp",
	label = "AntiSocial"
})
Change it to:

Code:
local ldb = LibStub("LibDataBroker-1.1"):NewDataObject("AntiSocial", {
	type = "data source",
	icon = "Interface\\GossipFrame\\PetitionGossipIcon.blp",
	label = "AntiSocial"
})
Hope that helps.
Report comment to moderator  
Reply With Quote
Unread 06-11-09, 01:29 AM  
Borrie
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 16
File comments: 43
Uploads: 5
Originally posted by Frayol
First up, have you enabled it? IIRC DockinStation sets the default state for everything to off in order to avoid a cluttered initial display. If that isn't it, then also see the below from Wizardling as that may have some bearing. I've been testing out several alternate LDB displays recently (thinking about changing from Fortress) and it's worked with ever single one. I should however note that my own copy of AntiSocial has already been modified to specify a type setting so if that is an issue with DockingStation (or any other LDB display for that matter) I would have missed it.



Personally I disagree with one aspect of this as I think that the data source should be set to "launcher". There is no actual data provided and it is really just a launcher, but either way it would resolve the issue.
It doesn't show up in the options of Dockingstation so I can't enable it.

I tried to use this
Code:
type = "data source",
but since I don't exactly know where to put that line it didn't work for me.
Report comment to moderator  
Reply With Quote
Unread 06-11-09, 01:12 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 127
Uploads: 4
Originally posted by Borrie
Broker_AntiSocial no longer shows up in DockingStation (Display).

Any idea how to put it back in there?
First up, have you enabled it? IIRC DockinStation sets the default state for everything to off in order to avoid a cluttered initial display. If that isn't it, then also see the below from Wizardling as that may have some bearing. I've been testing out several alternate LDB displays recently (thinking about changing from Fortress) and it's worked with ever single one. I should however note that my own copy of AntiSocial has already been modified to specify a type setting so if that is an issue with DockingStation (or any other LDB display for that matter) I would have missed it.

Originally posted by Wizardling
===================================
File: Carousel
Commenter: Astromech
Subject: Re: Broker_AntiSocial's feed no longer shows up in Data Feeds
-----------------------------------

I just looked at Broker_AntiSocial's code, and it doesn't set a type for its broker feed. Carousel only displays plugins which have type "data source" or "launcher" (this is because, there were some other types being created which would not be compatible with Carousel).

It's an easy fix. The author just needs to add

Code:
type = "data source",
Personally I disagree with one aspect of this as I think that the data source should be set to "launcher". There is no actual data provided and it is really just a launcher, but either way it would resolve the issue.
Report comment to moderator  
Reply With Quote
Unread 06-03-09, 02:33 PM  
Borrie
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 16
File comments: 43
Uploads: 5
Broker_AntiSocial no longer shows up in DockingStation (Display).

Any idea how to put it back in there?

Thanks.

Greetings
Report comment to moderator  
Reply With Quote
Unread 05-06-09, 01:02 PM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar
Premium Member

Forum posts: 0
File comments: 119
Uploads: 0
Exclamation Re: No longer seems to work with Carousel.

Originally posted by Wizardling
Broker_AntiSocial no longer shows up in Carousel's 'Data Feeds' settings tab.
===================================
File: Carousel
Commenter: Astromech
Subject: Re: Broker_AntiSocial's feed no longer shows up in Data Feeds
-----------------------------------

I just looked at Broker_AntiSocial's code, and it doesn't set a type for its broker feed. Carousel only displays plugins which have type "data source" or "launcher" (this is because, there were some other types being created which would not be compatible with Carousel).

It's an easy fix. The author just needs to add

Code:
type = "data source",
at line 2.

-----------------------------------
Link: http://www.wowinterface.com/download...10295#comments
Report comment to moderator  
Reply With Quote
Unread 05-06-09, 11:16 AM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar
Premium Member

Forum posts: 0
File comments: 119
Uploads: 0
Unhappy No longer seems to work with Carousel.

Broker_AntiSocial no longer shows up in Carousel's 'Data Feeds' settings tab.
Report comment to moderator  
Reply With Quote
Unread 04-15-09, 02:18 PM  
FarseerLolotea
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 97
Uploads: 1
The zip archive for this file seems to be corrupted; it won't install. Luckily, I had another copy on file.
Report comment to moderator  
Reply With Quote
Unread 01-10-09, 12:58 AM  
ShaneSveller
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 2
Re: Alternative

Originally posted by Mera
Mod alternative
If you want an alternative mod that does AntiSocial stuffs with more features give a try to mine EasyDND now has AntiParasites features. The benefits you have near an addon like AntiSocial, ASSBlock, etc , is that I do it with hooks not with crap events, so in addition to block the same events this addon acts on, mine block actions before their events are executed by the client, also does block sounds and deny these events to automatically close the Auction House, mail etc windows when they are open. Who has not been harassed by a bitch throwing you petitions that closes the AH, everyone! Give a try to mine is a full silence guaranteed
While a cursory glance at Mera's addon will show that it will do everything he/she has said, I feel that my addon is a much more lightweight solution to the core of the issue. I don't want or need Ace2, or FuBar/Titan support, in my addon. In fact, I consider Ace2 to be outdated and inferior in comparison to its successor, Ace3. Still, feel free to give his/her addon a try.

Just for comparison's sake, though, his/her code clocks in at about 75kb of code plus 32kb of embedded images and 655kb of embedded libs, while my addon includes about 19kb of code with the necessary libs included in that total.

While it is really a matter of programmer preference as to whether it is more efficient to hook your functions or use an event-driven model, I feel that event-driven tends to be perfectly functional and light on resource usage, particularly CPU.

The one facet Mera's addon is certainly superior in, is that my addon is not localized anywhere but the enUS locale and is not coded to be easily translated. EasyDND is also localized for the French language.
Report comment to moderator  
Reply With Quote
Unread 01-09-09, 09:17 PM  
Mera
Retired of WoW, In ESO :)
 
Mera's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 331
File comments: 121
Uploads: 7
Alternative

Mod alternative
If you want an alternative mod that does AntiSocial stuffs with more features give a try to mine EasyDND now has AntiParasites features. The benefits you have near an addon like AntiSocial, ASSBlock, etc , is that I do it with hooks not with crap events, so in addition to block the same events this addon acts on, mine block actions before their events are executed by the client, also does block sounds and deny these events to automatically close the Auction House, mail etc windows when they are open. Who has not been harassed by a bitch throwing you petitions that closes the AH, everyone! Give a try to mine is a full silence guaranteed
__________________
If you need to reach me I'm in ESO, @class101 or "Fathis Ules i"
addons: SpamBayes, BrokerCPU
projects: ThunderBayes
Mera[xeh]? - La CroisadeEcarlate (wow)
Last edited by Mera : 01-09-09 at 09:18 PM.
Report comment to moderator  
Reply With Quote
Unread 11-23-08, 10:02 AM  
ShaneSveller
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 2
I did make changes to my local copy though, but nothing drastic. Just changed the click layout so that left and right clicks were for group and trade respectively as these are the two I change most often. I rarely bother with any of the others, but that is personal preference and it shouldn't have any impact on the testing I did since I made no other changes. [/b]
I may add a configuration page for that in the Blizz options, similar to how BankStack does it. It's just a series of drop-downs that allow you to pick and choose which functionality is bound to which hotkey and mouse button combo.

That would come after the party/raid member functionality, though.
Report comment to moderator  
Reply With Quote
Unread 11-23-08, 04:42 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 127
Uploads: 4
Originally posted by ShaneSveller
Please test it as soon as you're able and give me some feedback, as I don't have WotLK loaded on my laptop here with me, so I can't log in until I get home this evening.

EDIT: It may be necessary to rename is_guildie to is_guildmate on line 22 of core.lua. Sorry folks! [/b]
Have tested and all seems to be working as intended. Annoying group invites blocked and guild mates able to send invites, very nice. You were correct, the change in the code was required although your change note made it sound as if they would be blocked no matter what! Just the way I interpreted it on initial read "Will not process party invites or trade requests from friends or guildies". I took me a moment to realise what you meant.

The inclusion of a toggle all was a nice touch too, saves a lot of time turning everything to blocked. I did make changes to my local copy though, but nothing drastic. Just changed the click layout so that left and right clicks were for group and trade respectively as these are the two I change most often. I rarely bother with any of the others, but that is personal preference and it shouldn't have any impact on the testing I did since I made no other changes.
Report comment to moderator  
Reply With Quote
Unread 11-21-08, 12:56 PM  
ShaneSveller
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 2
I've updated a somewhat-drycoded patch that fixes and incorporates frayol's suggestions. It should also automatically allow through trades and party invites from guildies/friends and ginvites from friends.

Please test it as soon as you're able and give me some feedback, as I don't have WotLK loaded on my laptop here with me, so I can't log in until I get home this evening.

Nice work, frayol.

EDIT: It may be necessary to rename is_guildie to is_guildmate on line 22 of core.lua. Sorry folks!
Last edited by ShaneSveller : 11-21-08 at 02:10 PM.
Report comment to moderator  
Reply With Quote
Unread 11-21-08, 12:28 PM  
ShaneSveller
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 2
Terribly sorry to all you folks, I haven't been watching this page whatsoever, especially what with the WotLK release. I'll look over your comments shortly, and look over my code thereafter, but I know some things are broken with both the version I have and this uploaded version.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: