I had actually started an ace3 rewrite of this but then I saw you picked it up so I stopped. Can have the code I have if you want not sure it will help though. Most dewdrop stuff can easily be moved to aceconfig with more frequently needed options accessed through a clickable libqtip tooltip. It already has LDB as well you just need to strip out the fubar stuff. Most of the transition was easy main changes were with acecomm and how zeksie called the modules but should be easy enough for you:)
Traced a weird bug back to xperl tonight. When I reloadUI I hear the bugsack error sound but when the game finished loading there is no error. Only happens on reloadui. Also traced a problem with the raid portion of the social frame back to xperl. On every RAID_ROSTER_UPDATE the raid frame (in the social pane) would go totally blank. I disabled all xperl_raid addons and everything went back to normal (including no bug)
function Whisp:BNChatEventIncoming(msg, plr, id)
Whisp:UpdateChatHistory(msg, plr, plr, true)
Whisp:SendMessage("WHISP_MESSAGE")
end
function Whisp:BNChatEventOutgoing(msg, plr, id)
Whisp:UpdateChatHistory(msg, plr, UnitName("player"), false)
Whisp:SendMessage("WHISP_MESSAGE")
end
function Whisp:UpdateChatHistory(msg, plr, snd, incoming, info)
if not plr then return end
if Whisp:HideAddonMessage(msg, plr) then return end
--plr = Whisp:ToName(plr)
--snd = Whisp:ToName(snd)
if snd == UnitName("player") then Whisp.sincereply = 0
else Whisp.sincereply = Whisp.sincereply + 1 end
-- Update player class cache
local localizedClass, class, localizedRace, englishRace, sex
if info then localizedClass, class, localizedRace, englishRace, sex = GetPlayerInfoByGUID(info) end
Whisp.db.realm.playerClass[plr] = class
Whisp.lastSender = plr
-- Insert new message
if not Whisp.db.realm.chatHistory[plr] then
Whisp.db.realm.chatHistory[plr] = {sender = {}, message = {}, time = {}, incoming = {}}
end
tinsert(Whisp.db.realm.chatHistory[plr].sender, snd)
tinsert(Whisp.db.realm.chatHistory[plr].message, msg)
tinsert(Whisp.db.realm.chatHistory[plr].incoming, incoming)
tinsert(Whisp.db.realm.chatHistory[plr].time, time())
end
local nameCache = {}
setmetatable(nameCache, {__mode = "kv"})
-- Normalise a name to capital-lower format, pick name from cache if available
function Whisp:ToName(plr)
if not nameCache[plr] then
nameCache[plr] = strutf8upper(strutf8sub(plr, 1,1))..strutf8lower(strutf8sub(plr,2))
end
return nameCache[plr] or plr
end
If I comment out the calls to Whisp:ToName() all is fine but if I let them go through any BNET name (first last) always ends up returning plr as something like f8000000. May not be UTF8 but I am not real good with metatables either *whistles*
Yeah that seems to be a problem with LibUTF8 not liking the space in people real names (I think) so I have disabled the conversion for now which could possibly cause problems with special chars in names. But I believe WOW SV are in UTF8 format now so I can probably remove that code. Currently testing.
I have it mostly updated already including realID etc but again I can't post it because even though I am an author on it it won't authorize my patch. I will do a couple other quick fixes (that appeared last night) and just post a totally new version again.
0
0
0
0
0
0
0
0
0
First the BN events:
If I comment out the calls to Whisp:ToName() all is fine but if I let them go through any BNET name (first last) always ends up returning plr as something like f8000000. May not be UTF8 but I am not real good with metatables either *whistles*
0
0
0
0
local _, _, difficultyIndex, _, maxPlayers, dynamicHeroic, isDynamic = GetInstanceInfo()
dynamicHeroic is always 0 in ICC no matter if I test it on 10/10H/25/25H? Anyone have a way around it?
0
0