statistics
People Online: 11
Today's Visitors: 198
Total Visitors: 4,050,933
June 19, 2013, 07:47:34 AM
Shoutbox
   
 
[DevTeam] [lothaer]: Posted a new download in the skins forum check it out
[DevTeam] [lothaer]: Zeke, Maziel, Pazza, Nachonut, sylvanaar, Kaidenn, Astaldo where are you?
[DevTeam] [lothaer]: It would be a real shame if WIM was left to die.
[DevTeam] [lothaer]: i think these forums are dead, Sylvanaar dosnt post on them as he only bug fixes when possible. WIMs future isnt very bright
[Guest] [justgiz]: Yea, its rather sad.
[Guest] [silvercola]: I wish it had skype
[DevTeam] [lothaer]: noy possible for a addon to do.
[DevTeam] [lothaer]: ...........
[Guest] [elzershark]: where is the download file?
lothaer beckons everyone over to you.
[DevTeam] [lothaer]: has anyone been able to take WIM to the beta yet?
[DevTeam] [lothaer]: PTR*
[DevTeam] [Maziel]: *sticks head up and looks around*
lothaer cries.
[DevTeam] [lothaer]: who the hell flagged my post as spam?
[Guest] [primalforce]: Hey guys
[DevTeam] [lothaer]: hello Primalforce.
[DevTeam] [lothaer]: PAZZA COME BACK!!!
[DevTeam] [Nachonut]: Ahhh memories
[Guest] [Ignis]: wtb update
[DevTeam] [lothaer]: soooo.....
Pazza starts to complain... Kinda reminds you of Sloans dont it?
[Guest] [Hentaya]: No more wiki?
[Guest] [Hentaya]: All the wiki links seem to bring me to the forums.
[Guest] [menace97]: the latest wim (3.5.9) i download still reads in-game as 3.4.2. ?
[Guest] [Hentaya]: Good thing the shoutbox doesn't have timestamps.
[Guest] [ravensong]: Is WIM going to be updated for the new patch? It gets a LUA error every time people log on bnet or pst me, because "
[Guest] [ravensong]: "surname" is now a nil value.
[Guest] [Dethedrus]: Since WiM is obviously quite dead, is there ANYTHING else out there that even comes close to replicating it's functionality?
[Guest] [Harshmage]: So the "surname" can be removed from the realID detection, in WIM.lua
[Guest] [Harshmage]: but fixing the tutorial popup and other errors is probably not going to happen without a major rework
[Guest] [menace97]: quite dead?
[Guest] [Nytetears]: I am trying out tell track I wish WIM would update I much prefer it but there are too many errors to try and use it now
[Guest] [Erudan]: Wim is being updated on Curse.
[Guest] [Chiaki]: Hello guys! I'm the one who did the German translation of WIM. The translation is somewhat old so tell me where to provide a new version .
[DevTeam] [lothaer]: Check out my new post in the General Discussion. Please report any errors as I can't check them myself.
lothaer pokes Pazza. Hey!
lothaer is overcome with boredom. Oh the drudgery!
lothaer roars with bestial vigor. So fierce!
lothaer cries.
lothaer falls asleep. Zzzzzzz.
lothaer , in quiet contemplation, mourns the loss of the dead.
lothaer tells a joke.
lothaer yawns sleepily.
[DevTeam] [lothaer]: Sylvanaar
[DevTeam] [lothaer]: 22/10/12
[DevTeam] [lothaer]: updated the download
[DevTeam] [lothaer]: check out my new post in the Skin thread
[DevTeam] [lothaer]: 11/11/12
[DevTeam] [lothaer]: 23/2/13
 
   
   
News: World of Warcraft v4.0.1
 
Pages: [1]
Print
Author Topic: WIM and Chat Alias Lite  (Read 2503 times)
Beaudine
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
« on: November 08, 2008, 08:19:42 AM »

I recently started using an addon named Chat Alias Lite (CAL), and it works fine substituting any string in any channel, except in whispers, which WIM intercept. I tested, and it works fine if WIM is not enabled, but I can't live without WIM! Cheesy

CAL works in the manner that if I write i.e. "%name, %level %class %race" (no quotes), it will replace that with "Arlyn, 70 Hunter Blood Elf". WIM however, does not let CAL substitute the aliases. Sad

Is there a way to let CAL and WIM work together? I don't see how editing anything in CAL can make this possible, as WIM seem to have its own hooks into the whisper function in WoW... Can you please help? Undecided

Thanks for any reply...
Logged
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #1 on: November 09, 2008, 05:53:45 PM »

ok so here's the deal:

The bad news:
WIM is sending content ONLY through ChatThrottleLib:SendChatMessage, since CTL sends messages from their to its own saved copy of the global SendChatMessage the hooks never run (As CTL is likely loaded first). In the current state anything that hooks SendChatMessage won't neccesarily work with WIM. Pazza, any thoughts on how to fixxor this?

The worse news:
CAL is badly coded and generates a throwaway table for every single chat message sent (:O naught coder)

The good news:
I've written a rough hack:
http://www.stewartatkins.org/wim/ChatAliasLite.lua
This hooks both SendChatMessage and ChatThrottleLib:SendChatMessage, (didn't fix any of the naught coding, its 2am). I make no guarantees about how well this is going to work, but it worked for me, so /shrug
Logged
Beaudine
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
« Reply #2 on: November 09, 2008, 06:14:09 PM »

The sad news is that your jerryrigged code of CAL didn't work here. No errors, works like before, still not working with WIM... Sad Thanks for trying though.
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #3 on: November 09, 2008, 09:17:51 PM »

CTL hooks SendChatMessage soley to measure data being sent for throttling purposes. It doesn't actually hook it to modify anything but rather it is a post hook. or at least should be. The purpose of CTL's hook is solely to metrics so it knows how to throttle.  if i remember correctly. I will have to look at the code again...
Logged

My hobbies consume way too much time :-).
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #4 on: November 09, 2008, 09:22:01 PM »

For reference ChatThrottleLib.ORIG_SendChatMessage is a pointer to the origional function. You could hook this if needed.
Logged

My hobbies consume way too much time :-).
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #5 on: November 10, 2008, 05:54:08 AM »

Ok try that link again, i've put some new code in there. But if that doesn't work then i give up

Pazza: I think the problem is that CTL is taking its pointer to SendChatMessage before everything else hooks it, and when WIM calls CTL:SCM the message goes straigt to CTL's original SendChatMessage bypassing all the hooks after CTL was loaded
Logged
Beaudine
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
« Reply #6 on: November 11, 2008, 02:51:50 PM »

Thanks, Stewart! This time it worked perfectly. Thanks a billion! Cheesy I will add a link to your fixed code to CAL's page at WoWInterface (most recent version, the one on Curse is old!).
Logged
Pages: [1]
Print
Jump to:  

You must be logged in to send a message to the shout box.
     
  test stamp