statistics
People Online: 12
Today's Visitors: 367
Total Visitors: 4,051,102
June 19, 2013, 07:36:49 PM
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: Guild2Guild Integration  (Read 6987 times)
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« on: June 12, 2010, 10:35:40 AM »

Hi,

I`m not the g2g author but I`m using both addon and got some coding experience in the past (CosmosUI team member, CharactersViewer, Pawnshop, RaidAwareness, FearWardHelper and a few other prototype.

The addond G2G allow 2 guilds to talk together in a single channel, using a relay.
The relay repeat in the guild channel, so message are displayed like this for people not using G2G:

[Relay]: [Relayed] Relayed Message.

People using the addon get their guildchat hijacked input, and the addon parse the message from the official relay and remove calculate the real sender to fake the following message in the Guildchat tab:
[Relayed]: Relayed Message.

I'm trying to find where to try to include the code to trim the relay name and fake the real sender as the relayed person in WIM.

I looked at the WIM code but i'm a bit lost.

The hotfix could probably be done in WIM, G2G or I could even develop an addon with WIM and G2G as a depedency to do the job but I can't find where guild message are handled in WIM.

If you can point me to the right place I could probably try to ingegrate a fix and discuss the solution here.

Thank's.
Thank's for your assistance.
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #1 on: June 17, 2010, 08:01:03 AM »

I'm a little confused on how you are doing this. If you explain to me exactly what you need for this to work, I might be able to add an API for you. I have quite a few API's in WIM already but i never got around to documenting them. What you need might already exist, if not, I can certainly look into adding something.

In a little more detail, explain how g2g works as your previous message i'm not following too well.
Logged

My hobbies consume way too much time :-).
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #2 on: June 17, 2010, 01:23:59 PM »

Ok, here is how G2G work.

I'll use the following setup for the explanation:

GuildA:
   Alpha (player using G2G, relay)
   Amazon (player using G2G)
   Archimonde

GuildB:
   Boya (player using G2G, relay)
   Bingo (player using G2G)
   Bravo


G2G evaluate 'who' will be considerd the relay on each guild according to multiple parameter, then decided Alpha and Boya.

When Anyone from guild A speak, Alpha will repeat the  text to a normal, hidden channel used to communicate between the 2 guild.
When text is seen from that specific channel by Boya, he repeat this text to is own guild chat.

Example of what is really happening:

Amazon say the following in the guild chat: "Hello",
Alpha read the guild channel and see "[Amazon]: Hello"
Alpha will  say to the hidden channel: "[Amazon]: Hello"
Boya will read from the hidden channel and retransmit to is own guild channel: "[Amazon]: Hello"

Bravo player, from the second guild, will see "[Boya]: Amazon: Hello"
However, Bingo, who use G2G,  will check on every guild chat message if it come from the official relay, and if yes, will trim the relay name and 'fake' the following message: "[Amazon]: Hello" in the normal chat tab.

G2G hook the regular chat function and simply replace the speaker name or id in the hook.

Now, when we use WIM, the trim and replace still happen in the regular windows, but WIM doesn't take that in account so we see the relay name as the speaker, and the original speaker in the text message. 

you can contact me on gtalk at flisher@gmail.com, or flisher@hotmail.com for more information.
Note that I'm not the G2G author, but can try to find the nicest fix, either in WIM, G2G or standalone plugin.
Logged
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #3 on: June 17, 2010, 01:41:50 PM »

Here is trimmed down version of the code of G2G (removed all the check and config thing)

Code:
local found, realSender, msg
found,_,realSender,msg = string.find(arg1, "%[([^%]]*)%]: (.*)")
if (found) then
arg1 = Guild2Guild_Vars.color..msg
arg2 = realSender -- to see if setting the global variable helps
guid = Guild2Guild_Vars.CachedPlayerIDs[arg2];
if (guid) then
arg12 = guid
else
arg12=""
end
end
-- Call the original ChatFrame_OnEvent function for default handling of the event.
G2GOldChatHandler(self, event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);

Basicaly, if I knew how or where the "print" job is called in WIM I could give you the real code to implement the correct job.
Another way would be for me to convince the G2G author to add the fix in is code, or create a separate addon having WIM and Guild2Guild as a depedency and hook the proper thing.

Thank for your interest.

Sidenote: here is a screenshot on picasa showing the difference:
http://picasaweb.google.com/lh/photo/0JhP57p_JqkoVLKqOrPWtSZQkWi7wVgXObBxLiw4APg?feat=directlink
Logged
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #4 on: June 17, 2010, 07:25:08 PM »

Ok, here is a simpler way to request the help Smiley

I need to find a way to intercept the event and replace arg1 (msg), arg2(sender) and sometime 12(guid) from the the guild chat and officer chat event.

By handling those parameter before WIM start to do is usual job, everything would be fine.
Logged
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #5 on: June 18, 2010, 05:33:30 PM »

You can find my first integration plugin, called Guild2GGuild_WIM and available on curse.com

http://wow.curse.com/downloads/wow-addons/details/g2g_wim.aspx

The only limitation seem to come from the fact that there seem to be some restriction when using GUID to retrieve the class information, but I don't think there is any workaround(using cached GUID for people that your client didn't saw anywhere directly).
Logged
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #6 on: June 18, 2010, 06:57:02 PM »

GUID class data is only available for people whom you have seen since logging in, either directly or in chat. By routing the chat between guilds, this information isn't propagated to the second guild, unless you pass it along with the chat message.
Logged
Flisher
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #7 on: June 18, 2010, 09:37:58 PM »

Found that limitattion about the GUID.
G2G use a caching system so I can reverse-enginer the GUID from the cached information when available.  however, the GetPlayerInfoByGUID won't return anything following the limitation you just explained.

I'll check if I can hook the GetPlayerInfoByGUID function to return cached information as well.  At this point, it's only a minor esthetic fix and I might skip this step.
Logged
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #8 on: June 19, 2010, 09:59:41 AM »

That would taint a large portion of the UI most likely
Logged
Pages: [1]
Print
Jump to:  

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