RealID Toons
Adds the current character name of your Real ID and BattleTag friends to the Battle.net alert informing you they have come online. Information is added to both the inline chat notification and the popup Toast window.
Alerts are populated with information based on the format string replacements you choose.
The following replacements are available:
- $t - Character Name, uncolored
- $T - Class Colored Character Name
- $c - Class name
- $C - Class Colored class name
- $s - Realm (server) Name (only if different than the player's)
- $S - Realm (server) Name (Always)
- $f - Faction symbol (only if different from player, or on another server)
- $F - Faction symbol (Always)
- $l - Character level
- $L - Character level (difficulty colored)
- $r - Character race
- $n - Friend note (only shown in Chat alerts)
- $N - Friend note (always shown)
These options are available in the Interface Options, or by typing /ridt
Examples
A format string of $t - $l $r $c would expand to something like: Warriordude - 85 Human Warrior
Using the colored substitutes (i.e. $T - $L $r $C) would expand to, if you were on your level 1 bank toon: Warriordude - 85 Human Warrior
FAQs
Q: My friend's character name is colored gray, what happened?
A: Some times the server is overloaded and will not return all the information about your friends, since the addon does not know what class your friend is playing the name is colored gray.
Q: My friend's character name is colored like they are on their previous toon, what happened?
A: Similar to the above question. Sometimes the wrong information is returned during periods of high load. I haven't been able to force this to happen, although I have seen it happen. I am working on trying to solve the issue efficiently.
Q: Your addon threw an error!
A: Please post a ticket, but first check to see if your problem has already been reported and that you are using the current version. Remember, being as detailed as possible in your report will help me fix it faster.
Changes
Version 2.3.0
-Fixes for updates to the Battle.Net platform
Version 2.2.0
-Fixes for supporting Twitter Integration
See Older Changes
Just installed the 7.2 3/28/17 version today and am receiving this error:
Date: 2018-11-11 17:33:09
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\RealIDToons\Core.lua line 312:
hooksecurefunc(): BNToastFrame_Show is not a function
Debug:
[C]: hooksecurefunc()
RealIDToons\Core.lua:312: in main chunk
Locals:
AddOns:
MoncaiCompare, v7.2.0
Swatter, v8.0.6162 (SwimmingSeadragon)
AtlasLoot, vv8.08.02
AtlasLootBattleforAzeroth, vv8.08.02
AtlasLootBurningCrusade, vv8.08.02
AtlasLootCataclysm, vv8.08.02
AtlasLootClassic, vv8.08.02
AtlasLootLegion, vv8.08.02
AtlasLootMistsofPandaria, vv8.08.02
AtlasLootWarlordsofDraenor, vv8.08.02
AtlasLootWrathoftheLichKing, vv8.08.02
AutoRepair, v
GuildCheck, vv 2.5.1
GuildSkadaHighScore, vv1.0.15
MuffinFactionizer, v8.0.0.04
QuestGuru, v2.5.13
RealIDToons, v2.3.5
BlizRuntimeLib_enUS v8.0.1.80000 <none>
(ck=231)
dunno if anybody but me is confused of that u can not click the links anymore
anyway.. here is a fix to get a clickable link (ingame wow) on same faction.. Bnet whispers doesnt work.,. i look on that too.
Use notepad++ to get line numbers
Interface\AddOns\RealIdToons\Core.lua
Line 87-93
replace current with:
-- tiny off-- if isChat and canCoop then
--if same server and faction the characterName name should be a playerLink
-- tiny fmtTable.T = format("|Hplayer:%s|h|cff%02x%02x%02x%s|r|h", characterName, r, g, b, characterName)
fmtTable.T = format("|Hplayer:%s|h|cff%02x%02x%02x%s|r|h", characterName .."-" .. realmName, r, g, b, characterName .."-" .. realmName)
-- tiny off-- else
-- tiny off-- fmtTable.T = format("|cff%02x%02x%02x%s|r", r, g, b, characterName)
-- tiny off-- end
Regarding the lack of Toast popups... that looks like a Blizzard bug. Based on their interface code the BN Toasts are using the old "friend login" event.
For reference they removed this event and are using a single "info changed" event now.
I got a toast when a BTag friend logged off Bnet. As usual it also printed to chat, but this time it was followed by "toast frame show" in white. Some debug stuff perhaps?
Newest version should have fixed the debug prints (2.3.1). I uploaded that about an hour ago.
Thx, I'll have a look at that. Seems the toasts suddenly work for people logging into the desktop app, but not WoW. Unsure about other games.
Update:
That takes care of the debug text. Looks like the toasts work only with the desktop app, other games show nothing.
Guess we'll have to wait for Blizzard then, no point in fixing it now as they're only going to break it again when Legion launches. :P
Just noticed a friend of mine logged on with some WoW characters I've never seen before. The only thing that showed up was the characters name in gray, no other information such as faction, level, class, race, realm etc. Perhaps that's just the first time a new character is seen?
Yeah, the BNet functions can still be a little flaky. During my testing I saw them return no information about somebody who just switched characters. And I've seen the update event fire, but not include any friend as the one that changed.
So I just try to do the best I can with what Blizzard gives me.
No worries, the text display in the chat window is more than enough for now. :)
I've notice it keeps popping up every now and then without any relogging, but it's not really often enough to be annoying. :)
Edit:
Looks like the new system is just responding to the slightest change. If you go away from your computer long enough for the Desktop app to change your state to away all your friends are informed the second you sit back down again by popping a "...has come online..." message.
"Is that the rustling of tinfoil hats I'm hearing?" :P
Not really much you can do about that when they are using one event for everything, guess we'll just have to wait and hope they put some kind of filtering into their software.
Edit2:
The grey names and lacking info seems to be something broken on Blizzards end. Any character first seen after 6.2.4 seems to stay that way. You'll see the same in the friends list where new names are grey, but old names aren't properly colored either, they're just standard yellow.
I tried to put some smart caching into RealID Toons to ignore most of the AFK/DND spam messages... but it looks like the App sends separate updates if you sit long enough, so it looks like you changed clients from my addon's perspective.
I might try to make the caching even smarter as time permits. Hopefully this is considered "good enough" given the drastic (and silly) design choices Blizzard made in replatforming BNet.
FYI:
/tickets/20-thundercats-are-go/
Let us know how it works out.
I would like to thankyou for doing this in you spare time as well and fixing it when you. It's a great (small) multi game app.
Hi everyone, I know this needs updates because of recent BNet changes. I'm trying to work on the needed updates, but I don't have that much free time at the moment.
I apologize for the inconvenience, if anyone wants to submit a patch to resolve the issues, that would be awesome. Otherwise I'll try to get this fixed once.work calms down a little.
Found some time and a friend to help me test. Hopefully 2.3.0 works like everyone expects. Blizzard changed the events related to BNet logins... there is now one event that fires for any change related to a friend on BattleNet.
Hopefully I added some smart caching so nobody gets spammed. Please file a ticket or leave a comment with bug reports/feature requests. (A ticket is preferred...)
http://www.wowace.com/addons/realid-toons/tickets/
No need to apologize, real life considerations must come first. :)
Oh, and sorry for dumping all those error logs in your comment section, that's just me being lazy. :P
Thanks for the quick fix, I'll get to trying it out right away. Now if only someone would actually log in... :P
First results are in. It seems to print to chat, no toast popup. :/
Other than that it seems to work though, no more errors.
That was someone also in my guild logging out of WoW and back to the Bnet.net desktop app. Perhaps that's not meant to generate a toast, to avoid spamming from people changing characters?
Update:
Had more people log in now, and it only prints to the chat frame, there is no toast popup or sound.
See my other comment regarding toasts. It looks like the Blizzard toast code is using the old (removed) event.
Get this whenever RealID/BTag friends log in:
Date: 2016-04-09 01:33:20
ID: -6
Error occured in: Global
Count: 4
Message: ..\AddOns\RealIDToons\Core.lua line 61:
attempt to call global 'BNGetToonInfo' (a nil value)
Debug:
RealIDToons\Core.lua:61:
RealIDToons\Core.lua:59
RealIDToons\Core.lua:205: ?()
RealIDToons\Core.lua:174:
RealIDToons\Core.lua:172
Locals:
toonID = 23
presenceID = 17
isChat = true
(*temporary) = nil
(*temporary) = 23
(*temporary) = "attempt to call global 'BNGetToonInfo' (a nil value)"
fmtTable = <table> {
}
select = <function> defined =[C]:-1
format = <function> defined =[C]:-1
GRAY = 160.65
reverseClassLookup = <table> {
Warrior = "WARRIOR"
Paladin = "PALADIN"
Shaman = "SHAMAN"
Monk = "MONK"
Rogue = "ROGUE"
Mage = "MAGE"
Warlock = "WARLOCK"
Priest = "PRIEST"
Hunter = "HUNTER"
Druid = "DRUID"
Death Knight = "DEATHKNIGHT"
}
MYREALM = "Moonglade"
gsub = <function> defined =[C]:-1
RealIDToons, v2.2.1
Date: 2016-04-10 13:41:25
ID: 8
Error occured in: Global
Count: 1
Message: ..\AddOns\RealIDToons\Core.lua line 63:
attempt to call global 'CanCooperateWithToon' (a nil value)
Debug:
RealIDToons\Core.lua:63:
RealIDToons\Core.lua:59
RealIDToons\Core.lua:277:
RealIDToons\Core.lua:263
[C]: BNToastFrame_Show()
..\FrameXML\BNet.lua:247: BNToastFrame_OnUpdate()
[string "*:OnUpdate"]:7:
[string "*:OnUpdate"]:1
Locals:
toonID = 24
presenceID = 17
isChat = false
_ = true
toon = "Removedname"
_ = "WoW"
realm = "Moonglade"
_ = 1085
faction = "Horde"
race = "Blood Elf"
class = "Priest"
_ = ""
_ = "Frostfire Ridge"
level = "100"
note = "#Removednote"
(*temporary) = nil
(*temporary) = 24
(*temporary) = "attempt to call global 'CanCooperateWithToon' (a nil value)"
fmtTable = <table> {
}
select = <function> defined =[C]:-1
format = <function> defined =[C]:-1
GRAY = 160.65
reverseClassLookup = <table> {
Warrior = "WARRIOR"
Paladin = "PALADIN"
Shaman = "SHAMAN"
Monk = "MONK"
Rogue = "ROGUE"
Mage = "MAGE"
Warlock = "WARLOCK"
Priest = "PRIEST"
Hunter = "HUNTER"
Druid = "DRUID"
Death Knight = "DEATHKNIGHT"
}
MYREALM = "Moonglade"
gsub = <function> defined =[C]:-1
Date: 2016-04-10 13:09:23
ID: 5
Error occured in: Global
Count: 1
Message: ..\AddOns\RealIDToons\Core.lua line 312:
bad argument #3 to 'SetFormattedText' (string expected, got nil)
Debug:
[C]: SetFormattedText()
RealIDToons\Core.lua:312:
RealIDToons\Core.lua:263
[C]: BNToastFrame_Show()
..\FrameXML\BNet.lua:247: BNToastFrame_OnUpdate()
[string "*:OnUpdate"]:7:
[string "*:OnUpdate"]:1
Locals:
(*temporary) = BNToastFrameTopLine {
0 = <userdata>
}
(*temporary) = "%s - %s"
(*temporary) = "|Kf11|kRemoved Name|k"
(*temporary) = nil
(*temporary) = "string expected, got nil"