BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: hobbes on March 24, 2007, 01:48:43 pm

Title: Still trouble with AOChat: not expecting login.
Post by: hobbes on March 24, 2007, 01:48:43 pm
Hi alls,

Trying to run BeBot on Linux + still have trouble with "AOChat: not expecting login."...

Tried both PHP4.4.2 and 5.1.2, both have BCMath enabled. AOchat.php when run doesn't give me any errors - which it should if anything was missing (and if I understand the code correctly), right? Every other thread here seems to be pre-2.11 or related to other issues.

Any other ideas?

(I'm not going to use AOkex, as this bot is meant as a backup only, for the few times our orgbot is down, as it is now, someone else is running a bot on a windows machine...)

Any quick pointers would help. Thanks guys!
H

Title: Re: Still trouble with AOChat: not expecting login.
Post by: pusikas on March 24, 2007, 05:57:23 pm
The current version of the bot does not need aokex, so I do not really know what you are talking about. Sure you downloaded the 0.2.11 version?
Title: Re: Still trouble with AOChat: not expecting login.
Post by: hobbes on March 25, 2007, 02:03:20 pm
Yes, I'm sure I have version 0.2.11, and one reason I chose BeBot was that it doesn't need AOkex. Still, here's the output I get:


         An Anarchy Online Chat Automaton

             v.0.2.11 - PHP 5.1.2

[... other output...]
[2007-03-25 11:38:09]   [LOGIN] [STATUS]        Connecting
[2007-03-25 11:38:09]   [LOGIN] [STATUS]        Authenticating
[2007-03-25 11:38:10]   [LOGIN] [RESULT]        Error
[2007-03-25 11:38:10]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.


Bot has created database tables, so that seems to be ok, BCMath is enabled, I checked the username and password for the bot toon several times... What else could be the problem?

Should I try the development version?

Thanks for any help!
H
Title: Re: Still trouble with AOChat: not expecting login.
Post by: pusikas on March 25, 2007, 05:20:02 pm
Actually, the development version is much more likely to give you headaches, unless you are a decent programmer with too much time at your hands... ;)

I vaguely remember that username and password may both be case-sensitive. AO itself doesn't mind if you write the first letter of your username in lowercase, but AOChat does. So make sure that your account name starts uppercase, and that the rest of the letters in the account name are lowercase. Also make sure you got the right dimension.

I had some trouble with php under linux. What I did, in the end, was download the bot with windows php. First get it to start with that. If the supplied php allows you to connect, but linux doesnt want to start the bot with the self same config files, then the problem may be your linux php. You can start the windows php with "php -m" to see what modules are compiled in. I had to recompile my linux php with different settings, till it showed the same, or at least similar modules. Then things started to work for me. :) I even started with getting the exact php version number, and only tried to use newer verisions after I got the bot to run with that.
Title: Re: Still trouble with AOChat: not expecting login.
Post by: Blueeagle on March 25, 2007, 05:32:50 pm
Are you using the cli version of php? This will not work with mod_php or php-gci afaik.

To check run: php5 --version
It should read something similar to
Quote
PHP 5.1.6 (cli) (built: Mar  7 2007 12:48:25)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Also you might want to double check file access file permissions and ownership on your conf directory and the files contained within. If you copied them over as root and attempt to read them as an ordinary user you will get access denied.

And check the spelling and casing of username/passwords. I got that error when I had misspelled my login name. :)
Title: Re: Still trouble with AOChat: not expecting login.
Post by: hobbes on March 26, 2007, 12:48:46 am
Thanks for the suggestions guys!

I checked login and password more than twice, because I'm likely to produce typos when tired, but that should not be it.

CLI version of PHP is running, and also needed to run PHP from the console, afaik. I'll definitely check the file permissions, that's a good idea!

If that doesn't help, Ill set it up on Windows like pusikas suggests. The Linux box is a live webserver, so I'm not sure I'm happy about changing PHP versions and stuff :P But it should at least rule out trivial problems like typos for sure, and then we'll see.

Thanks again guys for the helpful comments!
H
Title: Re: Still trouble with AOChat: not expecting login.
Post by: Khalem on April 07, 2007, 04:03:25 pm
Could you provide some more detail about the OS and platform?

Which linux distribution and version, and which platform architecture is it running on?

If you are 100% sure you have the right username and password, for some reason keys are not being generated correctly on your system for some unknown reason.
SimplePortal 2.3.7 © 2008-2024, SimplePortal