Addon Name: SnaFu
Author: Theondry, Perenolde Alliance
Version: 1.8
Home: http://www.wowinterface.com/downloads/fileinfo.php?id=5259 (download location and portal. Report bugs here.) http://svn.wowace.com/files/ (bleeding edge download location)
Dependencies: None - plugs into FuBar 2.0 if present.
Note, this is an Ace2 addon, but does not have any external
requirements. (That's what the libraries are for.)
Description:
SnaFu purports to track soulstones on members in your current grouping.
SnaFu also provides minor pet command capability for Warlocks.
Current Functionality:
Provides the user with the number of soulstones in place on members of the current
grouping (party, raid, solo).
Provides the name and class (via colouring) as well as time left on the stones (subject to limitations).
Provides a rough estimate (to within 15 seconds) of the cooldown on other warlocks soulstones.
This info is only shared amoungst other users of SnaFu v1.4 and higher.
Provides an audio, splash, and text notification on soulstone buff loss (either from death or expiration).
FuBar text can be toggled to show number of soulstones in place, or time to expiration of the oldest stone (subject to Known Limitations on timers)
For the warlock user, it also provides a keybinding to access pet skills in a dumb fashion.
Voidwalker - Sacrifices pet if the pet's health is below 11%
Felhunter - Attempts to Devour Magic on the target, player, (in that order), or
Attempts to Spell Lock the target. (zero spell detection. No, I won't code that in.)
/snafu togfhspell
Succubus - Seduces target if a humanoid (very VERY limited reseduction support.)
Imp - Plays a sound. (the imp is so noisy!)
I don't expect to provide very much configurability or logic here. It's purpose is to remove the bloat left by Graguk's Servitude in his absence, as well as Blizzard's hamstringing of functions. After awhile, I may strip this out into it's own addon.
Chat channel (should be unaffected by drunkeness)
/SnaFu chat <message>
/snc <message>
Misc. other functions I think.
Known bugs: None
Known limitations:
Not compatible with SnaFu 1.3. All SnaFu users in a raid must either have 1.4 or higher,
*OR* 1.2 or lower. (1.2 has no communcation function, and so is unaffected.)
1.3 was a quick hack to learn to use the comms. :)
Seduction support is incomplete. Does not properly reset when targets change. I'm not sure
how to deal with this, for now, so it just resets after a minute. For right now, if you want
to autoreseduce a new target more frequently than that, you're on your own.
Scanned SS timers set to 30 minutes on first detection of stones (i.e., from logging in, joining a raid, etc.)
If they have SnaFu, it'll be fine, though.
Timer *is* accurate for stones the player possess.
Planned Activities:
More robust seduction support, obviously. :)
Conquer world and institute an iron-fisted regime with myself as soul ruler. (James Brown, baby! YOW!)
Well... it gives boolean output, now. (1 for soulstone, 0 for none)
I'm not sure how to get the addon to update on it's own; it will only change the value if I toggle display of the icon or text via normal FuBar methods.
Please feel free to look at it, provide insight into where I'm screwing up, and even encourage me to stick it on the svn (though that I don't know how to do.)
(waiting a half hour between soulstones *really* sucks.)
self:Update should probably be self.Update, I haven't used Metrognome, but generally when you're passing a method you wanna use the table form, and then pass itself as the first arg. (That's what the : operator does, passes itself)
self:Update is telling lua that it should be a method, but is missing the (), so it tosses up an error.
I'm not sure, but I think WH makes it's own frame. (I'm looking at 2.0.) It also does something with SCT and MSBT, but I can't figure that out.
For now, I think I'll stay with a simple chatframe message and maybe a sound file, since that's much easier for me to figure how to do. :)
----
On the other hand, I'm not sure how to create an empty table that I can populate and depopulate with names and times.
Right now, I check the raid person by person, and return true if they have a stone. Then I add up all the trues and I have a number.
What I'd like to do now is add a guy's name to a list (and soon an Nx2 matrix to include times) so I can just dimension the matrix to get the number of stones in the raid. I think I can then use the matrix with Tablet to make the mouseover tooltip informative.
Problems with this:
I don't know how to make an empty table that persists beyond local functions.
I don't know how to append stuff to a table.
Oh, and I'm going out of town tomorrow morning. =p
Stick it on the SVN!! ^^ (edit: Oh, you already did it,cool)
Nice work Theondry, really....
(Did you see my 'bugreport' in the Fubar2 thread?
I am getting errors with the 'PURPLE' crayon lib call. I changed the .lua entries from purple to gold and got no more errors):)
Stick it on the SVN!! ^^ (edit: Oh, you already did it,cool)
Nice work Theondry, really....
(Did you see my 'bugreport' in the Fubar2 thread?
I am getting errors with the 'PURPLE' crayon lib call. I changed the .lua entries from purple to gold and got no more errors):)
That thread is too long for me to read.
The purple is a local thing for the version of crayon I'm messing with. once I figure out what color "warlock purple" is (in hex values), I'll pester CKK to see if it's okay that I update CrayonLib with it.
Until then, I think people are going to be suffering with that... I'll edit the top post with that.
ok, we'll try to keep this thread small for readablity :)
For now, SnaFu does only work 'at half' for me.
It shows when a soulstone has been created, but when the SS has been used on a person in raid/party it does not update in FuBar.
Got Stones? working
"StonedGuy" not updating
"ex-StonedGuy""click to restone" not updating
For now, SnaFu does only work 'at half' for me.
<snip>
Any idea?
Please refer to the functionality listed in the program so far. What you say it does is all it does so far. Also, notice that the title of the mouseover frame is "Teaser crap". The best idea I can offer is to please wait until I've programmed that functionality in. (Have you tried clicking on the icon, yet? :)
Also, Kyahx, please note that the other thread is for FuBar 2.0 on the trunk. SnaFu isn't a relevant topic over there so people shouldn't be sticking bug reports in there. (Yes, I know I mention SnaFu there... I'll edit that post and put something into the thread about it, just to cover my ass.)
Author: Theondry, Perenolde Alliance
Version: 1.8
Home: http://www.wowinterface.com/downloads/fileinfo.php?id=5259 (download location and portal. Report bugs here.)
http://svn.wowace.com/files/ (bleeding edge download location)
Dependencies: None - plugs into FuBar 2.0 if present.
Note, this is an Ace2 addon, but does not have any external
requirements. (That's what the libraries are for.)
Description:
Felhunter - Attempts to Devour Magic on the target, player, (in that order), or
Attempts to Spell Lock the target. (zero spell detection. No, I won't code that in.)
/snafu togfhspell
Succubus - Seduces target if a humanoid (very VERY limited reseduction support.)
Imp - Plays a sound. (the imp is so noisy!)
/snc <message>
Known bugs: None
Known limitations:
1.3 was a quick hack to learn to use the comms. :)
to autoreseduce a new target more frequently than that, you're on your own.
Planned Activities:
I'm not sure how to get the addon to update on it's own; it will only change the value if I toggle display of the icon or text via normal FuBar methods.
Please feel free to look at it, provide insight into where I'm screwing up, and even encourage me to stick it on the svn (though that I don't know how to do.)
(waiting a half hour between soulstones *really* sucks.)
edit:
yes, I'm dumb... I found Metrognome.
returns an error of
Am I doing something wrong? (and what does the final "self" argument do? I saw in the API docs that it's supposed to be a great place to put it.)
self:Update is telling lua that it should be a method, but is missing the (), so it tosses up an error.
I thought periods meant variables and colons were for functions. (I mentioned I don't actually know how to code in these languages, right?)
Thanks.
The addon finally has minimal functionality. I just need to figure out how to do a splash kind of thingie to tell people when soulstones are gone.
For now, I think I'll stay with a simple chatframe message and maybe a sound file, since that's much easier for me to figure how to do. :)
----
On the other hand, I'm not sure how to create an empty table that I can populate and depopulate with names and times.
Right now, I check the raid person by person, and return true if they have a stone. Then I add up all the trues and I have a number.
What I'd like to do now is add a guy's name to a list (and soon an Nx2 matrix to include times) so I can just dimension the matrix to get the number of stones in the raid. I think I can then use the matrix with Tablet to make the mouseover tooltip informative.
Problems with this:
I don't know how to make an empty table that persists beyond local functions.
I don't know how to append stuff to a table.
Oh, and I'm going out of town tomorrow morning. =p
Stick it on the SVN!! ^^ (edit: Oh, you already did it,cool)
Nice work Theondry, really....
(Did you see my 'bugreport' in the Fubar2 thread?
I am getting errors with the 'PURPLE' crayon lib call. I changed the .lua entries from purple to gold and got no more errors):)
That thread is too long for me to read.
The purple is a local thing for the version of crayon I'm messing with. once I figure out what color "warlock purple" is (in hex values), I'll pester CKK to see if it's okay that I update CrayonLib with it.
Until then, I think people are going to be suffering with that... I'll edit the top post with that.
Hooray for search!
For now, SnaFu does only work 'at half' for me.
It shows when a soulstone has been created, but when the SS has been used on a person in raid/party it does not update in FuBar.
Got Stones? working
"StonedGuy" not updating
"ex-StonedGuy""click to restone" not updating
Any idea?
Please refer to the functionality listed in the program so far. What you say it does is all it does so far. Also, notice that the title of the mouseover frame is "Teaser crap". The best idea I can offer is to please wait until I've programmed that functionality in. (Have you tried clicking on the icon, yet? :)
Also, Kyahx, please note that the other thread is for FuBar 2.0 on the trunk. SnaFu isn't a relevant topic over there so people shouldn't be sticking bug reports in there. (Yes, I know I mention SnaFu there... I'll edit that post and put something into the thread about it, just to cover my ass.)
Not the fabled timers, yet... but getting close.
Could you please format your commits in the svn:
FuBar_SnaFU: I changed something blah...
You commit messages don't mention your addon, and that's not how the rules say you should commit :p
Please prepend your addon name.
-Ammo
Note, I'm still working on this, but please grab it and provide suggestions. (both coding and features.)
Oh, and no bugs (on my system) :)
You can check out the tsvn:logtemplate keyword for that, as well...