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

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

Author Topic: Slaves  (Read 97394 times)

0 Members and 4 Guests are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #30 on: May 21, 2009, 08:55:49 pm »
Version now 1.5

Offline Sudoka

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Slaves
« Reply #31 on: August 25, 2009, 10:25:50 am »
My bot in AoC has reached 1k buddys, so I thought I would try out this module.
However I get this error:

Fatal error: Call to undefined method AOChat::authenticate() in .../main/02_Slaves.php on line 481

I'm running 0.6.3..   


Edit: Tried it with 0.6.4, and the problem now, is that it tries to logon the slave bot too fast.

So, how can I make it wait for about 2 minutes before it logs on slave bot?
« Last Edit: August 25, 2009, 12:22:37 pm by Sudoka »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Slaves
« Reply #32 on: August 25, 2009, 09:11:40 pm »
The slaves module will likely not work because of the reason you stated. However it should be possible to change the way it operates by changing the connect routine to be triggered by a cronjob running 5 minutes after the bot starts or so.

I don't have time to look into it atm however.
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #33 on: August 27, 2009, 05:25:38 am »
should be easy to change to that, it always worked fine as it was now for my bots and others i know of for AO
so im guess its todo with AoC

i issue i see with having them connect at cron instead is the stuff that react to buddy actions, like new being sent. it may send news to people on bot start

also need to make sure it logs them in before other stuff like roster or they might be other problems

the module interacts directly with the main while() function of the bot, being a delay can be added with out use of cron
« Last Edit: August 27, 2009, 05:28:45 am by Temar »

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #34 on: October 05, 2009, 11:59:58 am »
Thanks for update! (1.7)
« Last Edit: October 05, 2009, 12:02:56 pm by Dochere »

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #35 on: October 05, 2009, 12:57:48 pm »
I am getting this error on only one of the bots that I am running, and this particular bot isn't even using a slave..
Code: [Select]
fatal error: call to a member function update_buddy_cache() on a non-object in 02_slaves.php on line 2462
Any ideas what could be causing it?

nevermind...found my issue, had an old version of slaves....just odd that only one bot had a problem
« Last Edit: October 05, 2009, 01:08:57 pm by clashbot »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #36 on: October 06, 2009, 02:45:26 am »
i will double check that the module is properly disabled when no slaves

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #37 on: April 04, 2010, 08:20:05 pm »
Im having a slight problem getting this to run on my new server, if its cause its x64 or that i need to open any ports i dont know, or could it be PHP thats blocking the script from running more concurrent connections?


Code: [Select]
MAIN [2010-04-04 18:39:31]     [LOGIN] [STATUS]        Connecting to ao server chat.d1.funcom.com:7101
MAIN [2010-04-04 18:39:31]     [LOGIN] [STATUS]        Authenticating MAIN
MAIN [2010-04-04 18:39:32]     [LOGIN] [STATUS]        Logging in MAIN
MAIN [2010-04-04 18:39:32]     [LOGIN] [RESULT]        OK
SLAVE [2010-04-04 18:39:32] [LOGIN] [STATUS]        Connecting to  server chat.d1.funcom.com:7101
SLAVE [2010-04-04 18:39:32] [LOGIN] [STATUS]        Authenticating SLAVE
SLAVE [2010-04-04 18:39:33] [LOGIN] [RESULT]        Error
AOChat: Authentication failed: Challenge failed
« Last Edit: April 04, 2010, 08:42:23 pm by Dochere »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #38 on: April 05, 2010, 03:15:35 am »
its working fine on tnet
the account your logging into is ok right?

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #39 on: April 05, 2010, 01:55:26 pm »
Yeah, but this is only on my new server.


Exact same bot (copy) runs perfect on my old server.


So question is could it be firewall or maybe that php / apache not configured right?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Slaves
« Reply #40 on: April 05, 2010, 03:12:20 pm »
Funcom is refusing your authentication attempt.

Verify your username and password for the slave(s).
BeBot Founder and Fixer Kingpin

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #41 on: April 05, 2010, 08:59:53 pm »
Yeha that was my first thought also, if i switch MASTER and SLAVE master will login like above but not the slave.
(i'we also tried with same account but 2 chars, aswell as 2 different account's)


I also tried trying wrong password just for the heck of it, i then geat a clear error saying wrong username or password.

Code: [Select]
AOChat: Authentication failed: Illegal alias or password



EDIT: I'we also tried adding a sleep so which it does not try to connect instantly after the other bot. (and while i still am struggling im only trying to use 1 slave)



EDIT2: On my desktop machine running WAMP its also running perfect.
« Last Edit: April 05, 2010, 09:17:52 pm by Dochere »

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #42 on: April 05, 2010, 09:26:49 pm »
Since its a VDS / VPS i will reset it to windows 2008 and try with WAMP on it, ill be back with feedback on how it goes :)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Slaves
« Reply #43 on: April 05, 2010, 10:25:55 pm »
Odd.

It would seem there is something system specific then which is causing issues only with the slaves module.
BeBot Founder and Fixer Kingpin

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Slaves
« Reply #44 on: April 05, 2010, 11:44:35 pm »
Yes, it seems so, i now setup my Windows 2008 R2 with WAMP and bot runs as it should cept im getting so manny warnings its not even funny.


Im guessing iwe gotten a few thousand warnings already and bot has then only been running for a little while. "Notice: Undefined property: ...." But those are PHP debug warnings? (i started bot with Main.php)

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 195
  • 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