Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(67 Kb)
Download
Updated: 12-11-11 02:42 PM
Pictures
File Info
Updated:12-11-11 02:42 PM
Created:unknown
Downloads:21,653
Favorites:148
MD5:

PartySpotter  Popular! (More than 5000 hits)

Version: v5.17.70000
by: spiel2001, Telic

Telic has been kind (crazy) enough to allow me to take over the care and feeding of this beast. Please be patient with me a bit while I get up to speed on the code. I'll get regular updates going as soon as I can. In the meantime, please feel free to visit PartySpotter's official technical support forum in the "Support" section at http://forums.nUIaddon.com for any questions or comments you may have on this addon.

Summary

Small, standalone Modification that adds extra information to the Party/Raid dots and tooltips (compatible with BG Raid groups).
Compatible with WorldMap, BattlefieldMinimap, AlphaMap (including AlphaMap Battleground maps).

Has Multiple viewing modes - just use the provided key binding or Left-Click on the WorldMap PartySpotter button to cycle through them when in a Raid/Battleground and see which mode you find most useful.

Default mode displays player dots as numbered icons showing the Raid Group they belong to, and are also coloured based on the character class of that player.

Rings around player dots will also indicate when players are :
Corpses (Black ring)
Ghosts (Grey ring)
AFK/Inactive (Pink ring)
In Combat (Red ring)

Now integrated with both the Raid Frame, and the Battlefield Score Board
: mouse over players to flash their position on the map.
: mouse over Class buttons to highlight all players of that class on the map.
: Alt-Click on Players to permanently highlight them and track them via the minimap

Individual groups can be highlighted on the map by clicking on that group number in the PartySpotter Map Key (Map Legend).

Chat messages can be prefixed with the number of the Raid Group a player is in, and/or they can be coloured based on the Raid group the player is in if viewing Coloured Raid group dots.

Can also highlight Friends or Ignores or Guild Mates in the Raid. Key binding or WorldMap Button can be used to cycle through the different highlighting modes.

Use a key binding or <Control>-Left-Click on the WorldMap PartySpotter button to show/hide Map Keys.

Can also track the Raid Leader via slash command

USE "/pspot" FOR A STATUS REPORT AND A FULL LIST OF SLASH COMMANDS.



IMPORTANT KEY BINDINGS INTENDED AS THE MAIN / EASIEST WAY TO CHANGE PARTYSPOTTER BEHAVIOUR
------------------------------------------------------------------------------------------

- Key binding to highlight your Party members only so you can check where they are
Press again to go back to the viewing mode you were using previously

- Key binding to cycle through the main PartySpotter modes
1.) Show Numbered Raid sub-groups coloured by Character Class
2.) Show Differently Coloured Raid sub-groups
3.) Show Numbered Raid sub-groups
4.) Show Player dots Coloured based on Character Class
5.) Show All Other Raid sub-groups in the same colour
NOTE: Left-Click on the WorldMap PartySpotter Button to cycle through the above viewing modes


- Key binding to cycle through the PartySpotter highlighting functions
1.) Friends
2.) Ignores
3.) Guild mates
4.) No Highlighting
NOTE: Right-Click on the WorldMap PartySpotter Button to cycle through the highlighting modes


- Key binding to Show/Hide the Map Keys
NOTE: <Control>-Left-Click on the WorldMap PartySpotter Button to Show/Hide the Map Keys



Slash Commands
--------------

/pspot : Displays the status of PartySpotter, and this list of Commands

/pspot 0 : Disable PartySpotter (i.e. /pspot followed by a zero)

/pspot <1 - 10> : Enable PartySpotter and set the delay between WorldMap Updates in seconds.
Default value at install is 10.
PartySpotter is now mainly event driven, so I'd suggest "/pspot 10" is the best way to enable PartySpotter if previously disabled.
(It is possible to use a decimal point and set this vaue to 0.5, or 3.6 for example)

/pspot showgroups combined : If in a Raid, then player dots will show the Raid Group number they belong to, AND the dots will be coloured based on the character's Class

/pspot showgroups icons : If in a Raid, then people in different sub-groups will be represented by different coloured icons

/pspot showgroups numbers : If in a Raid, then people in different sub-groups will be represented by icons clearly marked with their group number

/pspot showgroups off : If in a Raid, then people in different sub-groups will be represented by the same Orange icon. Your local Party/group members are still highlighted differently as Blue

/pspot showclasses : If in a Raid, then Player dots will be coloured based on their Character Class as per the colours in the Blizzard Raid Frame

/pspot showfriends : to TOGGLE the highlighting of Friends

/pspot showignores : to TOGGLE the highlighting of Ignores

/pspot showguild : to TOGGLE the highlighting of Guild mates

/pspot -l : to TOGGLE the highlighting of your Raid leader (Marked by a Red "1")

/pspot -t <name> : will highlight the specified individual(s), so that you don't have to mouse over lots of icons to find one single person (Marked by a red "X")
Right-Click Menu option when clicking on a Party/Raid Portrait or Chat frame Name to Highlight a player will also do the same thing.
Highlighted Players will be tracked in the Minimap
The slash command has been extended and can accept multiple names separated by a comma and/or spaces)
To remove an individual player's highlighting, simply highlight them again to toggle them off.
To clear the entire list, use the "/pspot -t" slash command with no name parameter.

/pspot -t : leaving the name blank, will cancel the highlighting of any highlighted player(s)

/pspot -c : to TOGGLE coloured BattleGround/Raid messages when showing different coloured map icons

/pspot -n : to TOGGLE Raid Group Numbered Chat Messages

/pspot -s < 8 - 36 > : to adjust the size of the PartySpotter Icons (Default 18)

/pspot reset : reset all defaults, and anchor the map keys to the default map positions

Changed in v5.17.70000
---------------------------------------
- toc update for 4.3 patch

Changed in v5.17.60000
---------------------------------------
- toc update for 4.2 patch

Changed in v5.17.50000
---------------------------------------
- toc update for 4.1 patch

Changed in v5.17.40000
---------------------------------------
- fixed arg1 nil value error at line 829

Changed in v5.16.40000
---------------------------------------
- fixed TOC for WoW 4.0

- fixed event handlers for API changes in 4.0

Changes in v5.15.30102
---------------------------------------

- given the change in the ADDON_LOADED
implementation and that it is no longer
guaranteed that the addon's variables
have been loaded when VARIABLES_LOADED
fires, changed the mod to use the
ADDON_LOADED event instead

Changes in v5.16.30301
---------------------------------------

- Fixed a packaging error

Changes in v5.16.30300
---------------------------------------

- Verified function and Updated TOC for Patch 3.3

Changes in v5.16.30100 from v5.15.30100
---------------------------------------

- fix to unit right click menu support



hanges in v5.15.30100 from v5.14.30100
---------------------------------------

- fix to mouseover tooltip error


Changes in v5.14.30100 from v5.12.30100
---------------------------------------

- fix to Rotating Minimap support in 3.1
(NOTE: This version is backward compatible with 3.0.9 - but must Load Out of Date AddOns)


Changes in v5.12.30100 from v5.12.30000
---------------------------------------

- toc update for WoW Patch 3.1
(NOTE: This version is backward compatible with 3.0.9 - but must Load Out of Date AddOns)
Archived Files (14)
File Name
Version
Size
Author
Date
v5.17.60000
67kB
spiel2001
06-27-11 09:18 PM
v5.17.50000
67kB
spiel2001
04-26-11 06:31 PM
v5.17.40000
66kB
spiel2001
10-24-10 09:22 PM
v5.16.40000
66kB
spiel2001
10-24-10 05:02 PM
v5.16.30302
66kB
spiel2001
04-30-10 07:55 PM
v5.16.30301
63kB
spiel2001
01-09-10 04:47 PM
v5.16.30100
59kB
spiel2001
07-09-09 10:50 AM
v5.15.30100
59kB
Telic
06-27-09 10:05 AM
v5.14.30100
59kB
Telic
04-13-09 12:58 PM
v5.12.30100
59kB
Telic
04-13-09 05:16 AM
v5.12.30000
60kB
Telic
02-04-09 06:45 AM
v5.11.30000
60kB
Telic
02-01-09 07:16 AM
v5.10.30000.Bet
60kB
Telic
01-29-09 09:37 AM
v5.09.30000
59kB
Telic
10-25-08 09:55 AM


Post A Reply Comment Options
Unread 02-08-09, 12:12 PM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Originally posted by Magicfire
Thank you! /cheer

(You might want to fix your version number in Constants.lua. It still says 20400, instead of 30000)

Now they tell me. Pff!
Telic is offline Report comment to moderator  
Reply With Quote
Unread 02-05-09, 07:22 AM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Originally posted by Telic
I'll release the fix and include your extra bits, thanks.
Thank you! /cheer

(You might want to fix your version number in Constants.lua. It still says 20400, instead of 30000)
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 02-04-09, 04:30 AM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Originally posted by Magicfire
Excellent!

Your code DOES handle the problem of the special characters successfully, but if the command line isn't just right, it throws an error. (EDIT: Using the command line with no parameters had stopped working. )

Here is your code:
Code:
        pList = string.lower(pList);
        local t2 = string.sub(pList, 1, 2);
        local nCap = 4;
        local tCap = string.sub(pList, 4, nCap);
        local tstC = string.byte(tCap);
        if ( tstC > 194 ) then
                nCap = 5;
                tCap = string.sub(pList, 4, nCap);
        end
        local tRest = string.sub(pList, nCap+1);
        local style = string.sub(pList, 4);
My change trims the spaces around the parameters and does some 'nil' handling before processing:
Code:
        pList = strlower(strtrim(pList));
        local t2 = string.sub(pList, 1, 2);
        local tArg2 = strtrim(string.sub(pList, 4));
        local nCap = 1;
        local tCap = string.sub(tArg2, 1, nCap);
        local tstC = string.byte(tCap);
        if ( tstC ) then
                if ( tstC > 194 ) then
                        nCap = 2;
                        tCap = string.sub(tArg2, 1, nCap);
                end
        end
        local tRest = string.sub(tArg2, nCap+1);
        local style = tArg2;

OK

I'm surprised it works really - I can only think my out of game testing isn't a fair comparison. I'm running on a 10 year old lap top with Win2K, and the version of Lua that runs on it has problems with things like #table for fetching the number of entries, and a smaller limit on upvalues.... so maybe the string.upper routine is also limited - or limited by the character set of the OS...

Anyway, I'll release the fix and include your extra bits, thanks.

Telic,
Telic is offline Report comment to moderator  
Reply With Quote
Unread 02-03-09, 01:10 PM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Originally posted by Telic
Does the fix in PartySpotter v5.11.30000 work if you try to highlight your friend from the menus now ?
What do the debug messages say in chat when you highlight them from Target right click menu ?

EDIT:
Mmm, having done some non-game testing, I don't think my 'fix' will have worked. I don't think the error is happening in the capitalisation section of the code, and there doesn't seem to be an easy way to capitalise those characters anyway.

I can only think that the name is corrupted before being passed to the slash handler routine, and I'm really not sure why. If you do any debugging and spot anything, then let me know.
Excellent!

Your code DOES handle the problem of the special characters successfully, but if the command line isn't just right, it throws an error. (EDIT: Using the command line with no parameters had stopped working. )

Here is your code:
Code:
        pList = string.lower(pList);
        local t2 = string.sub(pList, 1, 2);
        local nCap = 4;
        local tCap = string.sub(pList, 4, nCap);
        local tstC = string.byte(tCap);
        if ( tstC > 194 ) then
                nCap = 5;
                tCap = string.sub(pList, 4, nCap);
        end
        local tRest = string.sub(pList, nCap+1);
        local style = string.sub(pList, 4);
My change trims the spaces around the parameters and does some 'nil' handling before processing:
Code:
        pList = strlower(strtrim(pList));
        local t2 = string.sub(pList, 1, 2);
        local tArg2 = strtrim(string.sub(pList, 4));
        local nCap = 1;
        local tCap = string.sub(tArg2, 1, nCap);
        local tstC = string.byte(tCap);
        if ( tstC ) then
                if ( tstC > 194 ) then
                        nCap = 2;
                        tCap = string.sub(tArg2, 1, nCap);
                end
        end
        local tRest = string.sub(tArg2, nCap+1);
        local style = tArg2;
Last edited by Magicfire : 02-03-09 at 06:48 PM.
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 02-02-09, 07:23 AM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Originally posted by Magicfire
Well, I don't use Notepad, but the fix does relate to the first character, and only the first character, in the name being mangled. Everything else seems to be fine.

I was able to put the correct character sequence of "Ê" in place of the "" in the WTF version of PartySpotter.lua and now I see my friends spot with the correct symbol on the map. (Not just a colored circle, but the black circle with the red X.)

In my opinion, that is progress!

Does the fix in PartySpotter v5.11.30000 work if you try to highlight your friend from the menus now ?
What do the debug messages say in chat when you highlight them from Target right click menu ?


EDIT:
Mmm, having done some non-game testing, I don't think my 'fix' will have worked. I don't think the error is happening in the capitalisation section of the code, and there doesn't seem to be an easy way to capitalise those characters anyway.

I can only think that the name is corrupted before being passed to the slash handler routine, and I'm really not sure why. If you do any debugging and spot anything, then let me know.
Last edited by Telic : 02-02-09 at 11:22 AM.
Telic is offline Report comment to moderator  
Reply With Quote
Unread 02-01-09, 12:44 PM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Originally posted by Telic
Even if I can think of a fix at this level, I think there will still be some minor problems that I mentioned before....

So in other words, you may need to upgrade your text editor to something that can properly display UTF encoding before you can properly read these Saved Variable files - this is not something people tell you when they say you can edit LUA with Notepad
Well, I don't use Notepad, but the fix does relate to the first character, and only the first character, in the name being mangled. Everything else seems to be fine.

I was able to put the correct character sequence of "Ê" in place of the "" in the WTF version of PartySpotter.lua and now I see my friends spot with the correct symbol on the map. (Not just a colored circle, but the black circle with the red X.)

In my opinion, that is progress!
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 02-01-09, 06:34 AM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Originally posted by Magicfire


Well, it turns out that the .lua functions change the name:
xtc
into:
xôtîc
Every special character in the name gets mangled.

EDIT: This information is kept in the SavedVariables version of the "PartySpotter.lua" file (in the WTF folder). I found it in the "singleOut" section of the code.

What a mess!

You can't trust the information in the SavedVariables file if viewing it with a simple text editor like Notepad (or especially with a word processor like Wordpad).

The problem is that WoW uses UTF encoding, while Notepad uses simple ANSI encoding. If you are using a decent programming code editor like an IDE, or UltraEdit, or Notepad++ then you can select the text formatting and the above nonsense could be transformed in to a perfectly good name.
(I use Notepad++ which is an excellent little code editor and is available for free if you google it.)

Effectively these 'special' characters use 2 characters instead of 1, and a string.length function on the name xtc will actually tell you that it is 9 characters long, NOT 6. Its just that when using UTF encoding, you only see 6 characters...

For example, î is actually the correct ANSI way of spelling ....
And ô is actually the correct ANSI way of spelling ...
However, your example does show that is NOT the way of spelling
should be spelt Ê
The lowercase special character should be spelt ê
So it looks like the process of trying to capitalise xtc has failed, because I strip away only the first character of a 2-character special...
Or because it has been mangled in a substring process that fetched the name in the first place...

I will attempt a fix and post it just on this web site first...
Lets see if the string.upper function works properly on the 2-character special as a whole...

The hard part is how to tell the difference between a 2-character special that needs capitalising as a whole, and 2 normal characters where only the first one needs capitalising, which is obviously the most common case.
This should be clear from debugging using the messages I provided, as you should receive a version of the name as fetched in the first place, and a version of the name after it has been captialised... If you can see what's happening with the debug messages turned on, it could be helpful.



Even if I can think of a fix at this level, I think there will still be some minor problems that I mentioned before....

So in other words, you may need to upgrade your text editor to something that can properly display UTF encoding before you can properly read these Saved Variable files - this is not something people tell you when they say you can edit LUA with Notepad

Thanks,
Last edited by Telic : 02-01-09 at 06:59 AM.
Telic is offline Report comment to moderator  
Reply With Quote
Unread 02-01-09, 12:04 AM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Originally posted by Telic
You'll have to be a bit more explicit if you've actually seen a fixable error that I can release a patch for ... ?
Sorry, Telic.

I would have been more explicit in my last post, but I needed to wait until the player logged back into WoW so that I could highlight them. I'm trying to debug the problem step-by-step, but my friend, xtc, is not always available.

Well, it turns out that the .lua functions change the name:
xtc
into:
xôtîc
Every special character in the name gets mangled.

EDIT: This information is kept in the SavedVariables version of the "PartySpotter.lua" file (in the WTF folder). I found it in the "singleOut" section of the code.

What a mess!
Last edited by Magicfire : 02-01-09 at 12:13 AM.
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 01-31-09, 12:08 PM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Originally posted by Magicfire
Yes. That's it! The .lua functions are messing up the case conversion of those special characters.

Thanks for the tip, Telic.

You'll have to be a bit more explicit if you've actually seen a fixable error that I can release a patch for ... ?
Last edited by Telic : 01-31-09 at 12:08 PM.
Telic is offline Report comment to moderator  
Reply With Quote
Unread 01-30-09, 05:34 PM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Originally posted by Telic
if you're interested in investigating, I've tried to introduce some debug messages in the 5.10 beta version of PartySpotter.

Enter the following slash command in chat :

/script pspotDebug = true

And then, whenever you try to track someone with PartySpotter, then you should get a couple of messages in the chat frame reporting the 'Name' that the AddOn is trying to work with... should help to see what's going on exactly.
Yes. That's it! The .lua functions are messing up the case conversion of those special characters.

Thanks for the tip, Telic.
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 01-29-09, 09:40 AM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Re: Special Character case conversion

Hi Magicfire,

if you're interested in investigating, I've tried to introduce some debug messages in the 5.10 beta version of PartySpotter.

Enter the following slash command in chat :

/script pspotDebug = true

And then, whenever you try to track someone with PartySpotter, then you should get a couple of messages in the chat frame reporting the 'Name' that the AddOn is trying to work with... should help to see what's going on exactly.


Telic,




Originally posted by Magicfire
It fails when using the right click menu.

I've never tried using the command line version. I thought that it might have something to do with case conversion of special characters, but I wasn't sure. The fact that you think it is case conversion makes me feel a little more confident in attempting a work-around for the problem. I guess I'll try a few things and see how it goes.

Thanks for the information and the quick response.
Telic is offline Report comment to moderator  
Reply With Quote
Unread 01-26-09, 10:53 AM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Special Character case conversion

Originally posted by Telic
Does it fail to work from the right click menu?

Again, I think it should work from MOST of the Right click menus, e.g. player name in chat (?), and I think from the Unit frames like the Target frame.

However, I think there might be some cases where it won't work like right clicking on names on the Raid frame... (?)
This is again due to a limitation of the Lua core code, which won't recognise these special characters as letters, and therefore screws the code a little - sorry, but I'm not sure there's much I can do in this case.
It fails when using the right click menu.

I've never tried using the command line version. I thought that it might have something to do with case conversion of special characters, but I wasn't sure. The fact that you think it is case conversion makes me feel a little more confident in attempting a work-around for the problem. I guess I'll try a few things and see how it goes.

Thanks for the information and the quick response.
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 01-25-09, 07:32 AM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Re: Re: Thank You.

Actually, can you describe in more detail what the problem is ?


I imagine it will fail from the command line if you enter something like the following :

/pspot -t xtc

Because the standard Lua function for converting lower case letters to upper case letters just doesn't work for 'special' characters.

Similarly it would probably not be able to highlight :

/pspot -t xtc

This would fail because, again, Lua and the WoW program, can not change the accented capital to a lower case . And then the player name won't be found.


However, if you use the correct cases when typing the name yourself, then I think Partyspotter should be working... i.e. :

/pspot -t xtc

This should be OK I think.


In other words the standard Lua functions can correctly change the first letter of 'extc' to 'Extc', but will fail to change 'xtc' to 'xtc'.


Its a bit of a pain trying to code around this limitation of standard Lua, so I've left it up to the player to use the correct cases for special characters when using slash commands.



Does it fail to work from the right click menu ?

Again, I think it should work from MOST of the Right click menus, e.g. player name in chat (?), and I think from the Unit frames like the Target frame.

However, I think there might be some cases where it won't work like right clicking on names on the Raid frame... (?)
This is again due to a limitation of the Lua core code, which won't recognise these special characters as letters, and therefore screws the code a little - sorry, but I'm not sure there's much I can do in this case.




Originally posted by Magicfire
I really like PartySpotter! It's been a real help for me.

I have noticed that PartySpotter has a problem when trying to Highlight toons that have names beginning with or containing special characters like:
xtc
any ideas on a fix for that?
Last edited by Telic : 01-25-09 at 01:02 PM.
Telic is offline Report comment to moderator  
Reply With Quote
Unread 01-23-09, 06:14 PM  
Magicfire
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
Re: Thank You.

I really like PartySpotter! It's been a real help for me.

I have noticed that PartySpotter has a problem when trying to Highlight toons that have names beginning with or containing special characters like:
xtc
any ideas on a fix for that?
Magicfire is offline Report comment to moderator  
Reply With Quote
Unread 01-23-09, 05:28 PM  
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 431
Uploads: 17
Thank You.

I shall release this fix - thanks Magicfire


Originally posted by Magicfire
To fix the problem caused by Patch 3.0.8 replace:
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU);
with:
local dropdownFrame = UIDROPDOWNMENU_INIT_MENU;
Wherever it is used in Partyspotter.lua
Telic is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: