collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Planning to setup relay between two bots  (Read 4231 times)

0 Members and 1 Guest are viewing this topic.

Offline Riccarr

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Planning to setup relay between two bots
« on: October 08, 2010, 01:23:40 am »
I've read as many posts here I could find on  the topic, as well as the "Linking Bots" documentation online here.

I'm planning/wanting to create a second bot for a second guild, and relay chat between the two.

Simple put ... what is the most successful well functioning approach?

I will be using the same AoC account (my account) to run both bot accounts. I will also be running both bots on the same computer server. I can either share the DB or create and use a second if there is advantage to doing so.

Each bot however, will be connecting to a guild on a different Age of Conan server. They are both game servers, not test servers.

The two viable options I read seem to be the DB shared mode or the Private channel relay bot approach.

From reading each, I'm learning towards the private channel relay bot approach; it seems more robust and faster.

Question. Is the dedicated relay bot approach working properly with Age of Conan and its chat channels?

Anyone have success or failure stories to let me know about to help decide?

Do both approaches allow for the guild chat to easily pass from one guild chat to the other; this happens automatically to chat just typed into guild chat? Don't want to have to /tell bot name.

Any tips or comments would be appreciated.

Offline Riccarr

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #1 on: October 09, 2010, 11:50:52 pm »
Ok, so still planning this and haven't made the jump to start yet; but I do have a question I hope someone will popu off a quickly reply to, please.

Do any/all of the org relay approaches (shared DB, IRC, or relay bot) ... do they all automatically echo guild-chat from one guilds chat to the other guilds chat, or do you specifically have to use a ! command to send chat to other guild chat?

The automatic echo is really what I want; it seems like the IRC version would do that. I see in the documentation about the relay-bot version there is reference to using the "!gcr" command and this has me thinking that to send chat to other guild's chat you need to use the !gcr command to send the chat ... and I do not want to do this.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #2 on: October 10, 2010, 06:18:56 am »
Yes, the relay is automatic.  In the background it uses the grc command, that is not seen in guild chat.  I have only set up one relay and used the tells type.  It seems to be working fine although it can only be used to relay between 2 guilds.

http://bebot.link/wiki/org_relay?s[]=relay

Offline Riccarr

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #3 on: October 10, 2010, 11:30:32 pm »
thanks, Kyr;

I've started the DB Share option actually. Not getting talking to occur yet even though I've followed all the steps.

I am short on one step however, the "member add" step; so this is where I realize maybe this approach will not work because these bots are each for guilds on different servers and so when I try the !member add command obviously it tells me there is no such user (and thats correct because that user is on another server).

So it appears the DB Share approach is only workable for bots on that same game server?
« Last Edit: October 11, 2010, 02:37:50 am by Riccarr »

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #4 on: October 11, 2010, 05:40:11 am »
I wouldn't know for sure as I've never tried it, but maybe you could create those characters on each of the other servers and it might just work since its a shared DB.

~Kyr

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #5 on: October 17, 2010, 10:57:26 pm »
Did you ever get this working?  I am trying to set up a relay with a shared DB.  The guilds are on the same server and it is spamming log on messages but not what people say.  Online is correctly showing who is online from both guilds too.

~Kyr

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #6 on: October 18, 2010, 02:21:31 am »
I got this working.  Even though you use type DB, you have to set the relay to something.  I set mine to None on both bots and it worked.

In case any bug fixer reads this post the bug is in the function relay_to_gc, line 390, where it checks for relay != ""
Code: [Select]
if ($this -> bot -> core("settings") -> get("Relay", "Relay") != '' &&
($this -> bot -> core("settings") -> get('Relay', 'Priv') == "Both" || $this -> bot -> core("settings") -> get('Relay', 'Priv') == "Relaybots"))

If we are using type DB there won't be any relay bot.

Offline TBK

  • BeBot User
  • **
  • Posts: 26
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #7 on: November 21, 2010, 02:40:04 pm »
I wanna do the same but across two dimensions (Crom and Hyrkania).

Which relay solution is best? And can I use the same binary folder or do I need to have two copies?

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #8 on: November 22, 2010, 02:12:54 am »
I started setting up something like this but I was doing it on the testlive server and the bot doesn't seem to like running there.

My theory is that DB will be the only method that would work because the other method requires the sending of tells to the other bot.  You cannot send a tell from one server to the other.  I was trying to set up a DB relay. 

~Kyr

Offline Riccarr

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: Planning to setup relay between two bots
« Reply #9 on: November 28, 2010, 05:02:01 am »
Sorry, been away from the forum, didn't see more replies.

Yes, I did get this work; I am using DB share approach, running two bots on same computer sharing same DB. Each bot connects to a difference game server (Wicanna and Cimmeria). The guild chat on each server is relayed back to the other.

To be honest, it was not simple straightforward. I debugged a lot using a debugger to walk the code. I ended up tweaking a few lines here and there simple because I could not figure out why the conditions were failing, so I forced them.

There is a help FAQ in the doc section here, it lists the basic get started steps.

Several settings to sets, these are several I think that will impact success ...

Online - OtherBots (each others bot name)
Relay - Inc - Guildchat
Relay - Org - Relaybots
Relay - Orgnameon - Guildchat
Relay - Priv - Relaybots
Relay - Status - true
Relay - Type - DB

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 115
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal