statistics
People Online: 15
Today's Visitors: 456
Total Visitors: 3,727,966
February 07, 2012, 06:40:58 PM
Shoutbox
   
 
[Guest] [joshmiller83]: Can we get an Astrolabe fix please? Or has WIM stopped being developed?
[DevTeam] [Astaldo]: You can disable wim2wim for now or visit the forum thread where you originally posted the issue
[DevTeam] [Zeke]: Yay for spam!
[DevTeam] [Zeke]: ....
[DevTeam] [Zeke]: I love that I get emailed when someone reports spam on the boards, but I can't do anything about it.
[DevTeam] [Nachonut]: lol i got you
[DevTeam] [Astaldo]: How about "hide email address from public checked" and it's still visible in all my posts...
[DevTeam] [Astaldo]: I'd delete my account on this site, but by the time I realized the problem half the spambots on the planet had it already
[Developer] [Pazza]: Astaldo if you log out and view your profile with a refresh you'll see that your email is hidden.
[Developer] [Pazza]: Your user level on the forums permit you to see emails even though they are marked hidden.
[DevTeam] [Astaldo]: Ah.. thanks for the clarification and apologies for "crying wolf" in that case :
[DevTeam] [Kaidenn]: PAZZA! i miss you.
[DevTeam] [Nachonut]: Lol, it's funny how it takes spam message reports to get me to come back
[DevTeam] [sylvanaar]: Check out the beta tester forum. Need alpha testers and feedback so I can come up with a maintenance plan.
[Developer] [Pazza]: loaded some new spam prevention modules... lets see if this stops the bastards.
[DevTeam] [Maziel]: Thought I'd check in and say Howdy Doody from Australia
[DevTeam] [Maziel]: Yeah the spam from shoes salesmen was becoming insane
[Guest] [Delakando]: What ever happened to the ability to track friend's location by wim? Other then just showing their general zone location.
Zeke pokes his head around the corner.
[DevTeam] [Zeke]: Anybody home?
[Guest] [Theillur]: I would like to know if it is just me.
[Guest] [Theillur]: http://www.wimaddon.com/forums/index.php/topic,1796.0.html
[Guest] [Nev]: I'm here
[Guest] [Nev]: I don't think anyone else is though
[Guest] [tomasio]: great site [url=http://freeonlinemusicvideos.net].[/url] [url=http://freepeopleclothing.org].[/url]
[Guest] [Theillur]: Nev it is not working for Zeke as well.
[DevTeam] [lothaer]: im here
[DevTeam] [lothaer]: ...
lothaer yawns sleepily.
[DevTeam] [lothaer]: sooooooooooooooooo
[Guest] [j3ff]: Hello. It is very quiet. I would love a response to my thread directly below your "Been very quiet" thread!
[DevTeam] [lothaer]: Check out my new post in the Skins forum
[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!!!
 
   
   
News: World of Warcraft v4.0.1
 
Pages: [1]
Print
Author Topic: Guild2Guild Integration  (Read 3448 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