L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:18:35 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: AOChat: not expecting login (again)
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: AOChat: not expecting login (again)  (Read 1006 times)
0 Members and 1 Guest are viewing this topic.
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


AOChat: not expecting login (again)
« on: June 25, 2008, 05:12:32 PM »

I decided to move my org bot across from the Windows PC to a *nix box. The *nix box is running PHP v5.2.5 (cli version), MySQL and has Bebot 0.4.3 copied across to it.

Everything connects properly to the SQL database, a php -m shows BCMath etc loaded, but again I see that horrible message "AOChat: not expecting login" popping up.

Start up the Windows one, everything is fine, switch back, same error. I have looked at every thread on this here, tried all suggestions relevant to my versions, but to no avail.

What could possibly be causing this?
« Last Edit: June 25, 2008, 06:38:41 PM by Zeephonz » Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login (again)
« Reply #1 on: June 25, 2008, 08:35:32 PM »

The instant suspect is conf/Bot.conf

Not that, unlike windows, *nix filenames are case sensitive so bot.conf is not the same file as Bot.conf. If the file is all lower case it will never be loaded.

Also check the file permissions.

I will look at adding fatal errors when config files are not found or cannot be loaded, but for now you'll just have to double check the files manually.

Never mind that. That file is required so it should be fatal if not found.

Need to do a bit more research.

But please do double check the username and password that is in conf/Bot.conf

Also please include distro, kernel, architecture and build version of PHP.
« Last Edit: June 25, 2008, 09:14:10 PM by Blueeagle » Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: AOChat: not expecting login (again)
« Reply #2 on: June 25, 2008, 09:41:07 PM »

unless u are right but he uses multi bots but its loading the default file because of cant find argument.Bot.conf
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: AOChat: not expecting login (again)
« Reply #3 on: June 25, 2008, 10:55:51 PM »

I run the bot from the directory it's installed in, and it's the only bot on this machine.

Here's the main load of information you are looking for...

Bebot 0.4.3 - installed
MySQL 5.0.51b

> php -v
PHP 5.2.4 (cli) (built: Aug 31 2007 23:57:08)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

> php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dbase
dom
exif
fbsql
filter
ftp
gd
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
memcache
mhash
ming
mssql
mysql
mysqli
oci8
odbc
OpenBase Module
openssl
pcntl
pcre
pdf
PDO
pdo_mysql
PDO_OCI
pdo_pgsql
pdo_sqlite
pgsql
posix
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

> Starting the bot gives...

_/_/_/      _/_/_/  _/_/_/      _/_/        _/_/   

         An Anarchy Online Chat Automaton         

             v.0.4.3 - PHP 5.2.4     

===================================================

Connected to MySQL

Botname [2008-06-26 03:36:46]  [CORE]  [LOAD]  Security.php
Botname [2008-06-26 03:36:46]  [SETTINGS]      [LOAD]  Loaded settings from database.
(all the otherstuff in between loads here cleanly)
Botname [2008-06-26 03:36:50]  [LOGIN] [STATUS]        Connecting
Botname [2008-06-26 03:36:51]  [LOGIN] [STATUS]        Authenticating
Botname [2008-06-26 03:37:15]  [LOGIN] [RESULT]        Error
Botname [2008-06-26 03:37:15]  [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

... then goes into startup loop, trying again.

Anything else you need?
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login (again)
« Reply #4 on: June 26, 2008, 01:56:24 AM »

Quote from: Zeephonz on June 25, 2008, 10:55:51 PM
Botname [2008-06-26 03:36:50]  [LOGIN] [STATUS]        Connecting
Botname [2008-06-26 03:36:51]  [LOGIN] [STATUS]        Authenticating
Botname [2008-06-26 03:37:15]  [LOGIN] [RESULT]        Error
Botname [2008-06-26 03:37:15]  [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

... then goes into startup loop, trying again.

Anything else you need?

I need you to check the user name and password one more time. Also you need to check that the name of the player that the bot assumes is correct.
And if you still think the username/password/toon is right log in to that accout using your regular anarchy client.
And if it still fails after you've corrected the username/password/toon then I'll need a copy of your bot directory after you've removed the username and passwords from your Bot.conf and MySQL.conf files zipped up and sendt here so I can rule out that it's not infact a typo.

Also read this previous post
« Last Edit: June 26, 2008, 02:00:50 AM by Blueeagle » Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: AOChat: not expecting login (again)
« Reply #5 on: June 26, 2008, 02:23:18 AM »

Everything verified as per your request, here are the files...

As an update, this is a direct copy of my Windows bot, which works fine, the only difference being the clarification of the PHP binary in StartBot.php

Windows runs, I stop it, *nix version fails, and I can restart the Windows one again no problem.

I don't profess to being a *nix person, but followed the guidelines as per all documentation. Frustrating, but I'm sure you gods can sort it out Wink
« Last Edit: June 26, 2008, 02:40:08 AM by Zeephonz » Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: AOChat: not expecting login (again)
« Reply #6 on: June 26, 2008, 06:44:41 AM »

looking at the log it seems to be the username / password
not the Char as the Error is before it tries that
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Slacklin
Rookie
**
Offline Offline

Posts: 30


Re: AOChat: not expecting login (again)
« Reply #7 on: June 26, 2008, 01:41:20 PM »

One thing that got me when I used a linux system was the username is case sensitive. That might be another place to look.
Logged
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: AOChat: not expecting login (again)
« Reply #8 on: June 26, 2008, 03:51:55 PM »

Quote from: jakethegamer on June 26, 2008, 01:41:20 PM
One thing that got me when I used a linux system was the username is case sensitive. That might be another place to look.

Ya, I was reading earlier threads on that, and have tried a mix of all lowercase, all uppercase, first upper-rest lower etc. But that was consistent tries between all parts.

I'll try mixing up the case options with each one e.g name lower case, password mixed case etc, in case one is ok and it's failing on the other.

Is there any code that could be inserted into one of the PHP files that could copy the packet being sent to a file, or something like that, that could be analysed to see what is actually going out?
« Last Edit: June 26, 2008, 03:54:11 PM by Zeephonz » Logged
Slacklin
Rookie
**
Offline Offline

Posts: 30


Re: AOChat: not expecting login (again)
« Reply #9 on: June 26, 2008, 04:57:58 PM »

Just do a simple output of what the variable is that is being sent, should be pretty easy to see it.
Logged
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: AOChat: not expecting login (again)
« Reply #10 on: June 26, 2008, 05:21:05 PM »

Quote from: jakethegamer on June 26, 2008, 04:57:58 PM
Just do a simple output of what the variable is that is being sent, should be pretty easy to see it.

errr ummm.... someone wanna tell me how?

I'm no PHP coder kinda dude, more of a copy/paste kinda dude.  Grin


Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login (again)
« Reply #11 on: June 26, 2008, 11:49:47 PM »

Quote from: Zeephonz on June 26, 2008, 02:23:18 AM
Everything verified as per your request, here are the files...
Well I put my username and password in bot.conf and mysql.conf and it connected as it should.

What may be an issue is character encoding if you use some special characters. Try removing the lines in the conf files and type them up from scratch.

It may (in theory) be that your php and bcmath is broken. If that is the case re-building php and bcmath from source is an option.

Which distribution are you working with?

Edit: Have you tried all lower-case username?
Edit: When I pourpously enter the wrong username I get the error message you got.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AOChat: not expecting login (again)
« Reply #12 on: June 27, 2008, 03:33:30 AM »

If his PHP is generating invalid keys to send to the server, he will be getting the same error as you since his password will be wrong on account of PHP messing it up.

I'll see if i can get the time to add some debug strings to the AOChat library later.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login (again)
« Reply #13 on: June 27, 2008, 06:30:30 AM »

Which architecture is the bot running on? It could be caused by 64-bit intigers not overflowing like 32-bit ones. (ie. they will not).
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Zeephonz
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: AOChat: not expecting login (again)
« Reply #14 on: June 28, 2008, 04:21:19 AM »

OK, the architecture is 32-bit, but it's a Mac G4 (PPC).

Both the Darwin flavour (Mac OSX 10.4.11), and the Debian distro I just installed, come up with the same error.

Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: AOChat: not expecting login (again)
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.3 seconds with 29 queries. (Pretty URLs adds 0.028s, 4q)
Loading...