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?
November 22, 2008, 01:22:50 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Helpful posts > Topic: AOChat: not expecting login.
Pages: 1 ... 3 4 [5] 6   Go Down
« previous next »
Print
Author Topic: AOChat: not expecting login.  (Read 8601 times)
0 Members and 1 Guest are viewing this topic.
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: AOChat: not expecting login.
« Reply #60 on: January 27, 2008, 08:12:06 PM »

Back to AO after being away for a while...
Downloaded BeBot 4.3, but can't get it to start on my linux box.

Code:
`--> php -v
#PHP 5.2.5-pl1-gentoo (cli) (built: Dec 18 2007 01:49:06)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Code:
`--> php -m
[PHP Modules]
aokex
bcmath
bz2
calendar
ctype
date
dba
dom
filter
ftp
gd
gettext
gmp
hash
iconv
imap
libxml
mbstring
mcrypt
mysql
mysqli
ncurses
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
readline
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zlib

[Zend Modules]


Code:
`--> php -c ./ StartBot.php

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

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

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

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

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

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

         An Anarchy Online Chat Automaton

             v.0.4.3 - PHP 5.2.5-pl1-gentoo

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

Connected to MySQL

...
<snip lots of successful module loads>
...
Vbot [2008-01-28 00:01:41]      [MOD]   [LOAD]  Target.php
Vbot [2008-01-28 00:01:41]      [LOGIN] [STATUS]        Connecting
Vbot [2008-01-28 00:01:41]      [LOGIN] [STATUS]        Authenticating
Vbot [2008-01-28 00:01:42]      [LOGIN] [RESULT]        Error
Vbot [2008-01-28 00:01:42]      [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

Sorry, anything obvious that I did wrong? Am I missing any modules? Or should I remove aokex? I thought it wouldnt interfere.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: AOChat: not expecting login.
« Reply #61 on: January 27, 2008, 08:20:38 PM »

Additional info: old bot is still running. That was a 2.11 BeBot, I think, but I never got that one to work without aokex, so I am not sure if it uses the original 2.11 AOChat.php. Probably not. If I copy the aochat that is working in the old bot over to the new ones, it still wont log in. Says it is trying to log in via GMP and fails.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Re: AOChat: not expecting login.
« Reply #62 on: January 28, 2008, 06:31:31 AM »

Do you have a php version without aokex and gmp? Perhaps that is causing your troubles? I'm just making guesses here though, I don't know what your problem really is.
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: AOChat: not expecting login.
« Reply #63 on: January 28, 2008, 10:38:27 AM »

Gentoo linux, so, yeh, removing those is no prob. Will give it a try this evening. Sorry for not having thought of trying something this obvious first. ^ ^

Edit: Does it matter for the bot, which AOChat.php I use? I mean, if I manage to get the bot to log in with an old version, is that inviting trouble, or doesn't it matter?
« Last Edit: January 28, 2008, 10:40:56 AM by pusikas » Logged

Luuv  Bot-Keeper of Vengeance ^^*
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Re: AOChat: not expecting login.
« Reply #64 on: January 28, 2008, 10:51:31 AM »

You may run into trouble with the extended messages, like tower spam, org joins/leaves, and similar stuff. Otherwise all should be in there.
Logged
Sary
Freshman
*
Offline Offline

Posts: 1


Re: AOChat: not expecting login.
« Reply #65 on: January 28, 2008, 06:09:07 PM »

I just downloaded BeBot 0.4.3 as well, and I'm getting the exact same problems that Pusikas is having.
I triple-checked the config, that all seems correct. I also don't have any aokex leftovers. Having gmp or not doesn't make a difference either. (I think it only uses bcmath anyway)

php -v
PHP 5.2.5-pl1-gentoo (cli) (built: Jan 28 2008 21:09:55)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

php -m
[PHP Modules]
bcmath
bz2
ctype
curl
date
dba
dom
ftp
gettext
gmp
hash
libxml
mbstring
mcrypt
mysql
ncurses
openssl
pcre
readline
session
sockets
standard
xml
zlib

[Zend Modules]


Running Gentoo Linux as well. (Hardened, but this shouldn't matter for PHP.)
« Last Edit: January 28, 2008, 06:18:25 PM by Sary » Logged
lazarus
Rookie
**
Offline Offline

Posts: 25


Re: AOChat: not expecting login.
« Reply #66 on: March 27, 2008, 05:59:58 PM »

dammit... I had to reinstall my box, and now this is giving me a hard time :/

Could a friendly soul help us out?

server:/home/bebot# php5 -v
PHP 5.2.0-8+etch10 (cli) (built: Jan 18 2008 18:52:58)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

server:/home/bebot# php5 -m
[PHP Modules]
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip

I did also try with the php 4.4.x but that gave the same result :/
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login.
« Reply #67 on: March 27, 2008, 07:53:07 PM »

We'll need the entire output from the console to be able to debug this me thinks.

I have not seen that error in a long while and I cannot fathom why it should just appear now.
« Last Edit: March 27, 2008, 08:03:20 PM by Blueeagle » Logged

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

Posts: 25


Re: AOChat: not expecting login.
« Reply #68 on: March 28, 2008, 08:19:07 AM »

ok I just did a test installation on my xp. with the new released 0.4.3 and the bebot php bundle 5.2.3
it give the same error.

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

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

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

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

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

         An Anarchy Online Chat Automaton         

             v.0.4.3 - PHP 5.2.3     

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

Connected to MySQL

bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Security.php
bot [2008-03-28 12:10:07]   [SETTINGS]   [LOAD]   Loaded settings from database.
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Settings.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   AccessControl.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Alts.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   BotHelp.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Colors.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   FlexibleSecurity.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   FunFilters.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Logon_Notifies.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Notify.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   OnlineDB.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   PlayerNotes.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Professions.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Queue.php
bot [2008-03-28 12:10:07]   [SETTINGS]   [SAVED]   schemaversion for module members set to 3 as datatype int
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Roster.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   ShortCuts.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   StringFilter.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Time.php
bot [2008-03-28 12:10:07]   [SETTINGS]   [SAVED]   schemaversion for module timer set to 3 as datatype int
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Timer_Core.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   User.php
bot [2008-03-28 12:10:07]   [CORE]   [LOAD]   Whois.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   About.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   AccessControlGUI.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   AFK.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Alts.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   AutoInv.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   BanManager.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Bid.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Blacklist.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Calc.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Callers.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   ColorConfig.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Countdown.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   FlexibleSecurityGUI.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Glyph_RAID.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   History.php
bot [2008-03-28 12:10:07]   [MOD]   [LOAD]   Identify.php
bot [2008-03-28 12:10:07]   [SETTINGS]   [SAVED]   connected for module irc set to FALSE as datatype bool
bot [2008-03-28 12:10:07]   [SETTINGS]   [UPDATE]   Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only  buddies logging on, only joins to the chatgroup or both?
bot [2008-03-28 12:10:07]   [SETTINGS]   [UPDATE]   Set defaultoptions for setting [Irc][AnnounceWhat] to none;buddies;joins;both
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   IRC.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Is.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Items.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   LandControlZones.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   LeadEcho_RAID.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Level.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   MassMsg.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   News.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Notify.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Oe.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   OnlineCount.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   OnlineDisplay.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   PB.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   PlayerNotesUI.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Points.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   PrivGroup.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Raffle.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Raid.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Rally.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Roll.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Roster.php

bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Say.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Server.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   SettingsInterface.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   ShortCutsGUI.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Shutdown.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   StringFilterInterface.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Target.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Teams.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Tier2.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   TimerGUI.php
 
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Tokens.php
bot [2008-03-28 12:10:08]   [SETTINGS]   [SAVED]   SchemaVersion for module TowerAttack set to 2 as datatype int
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   TowerAttack.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   Whois.php
bot [2008-03-28 12:10:08]   [MOD]   [LOAD]   loot.php
bot [2008-03-28 12:10:08]   [LOGIN]   [STATUS]   Connecting
bot [2008-03-28 12:10:08]   [LOGIN]   [STATUS]   Authenticating
bot [2008-03-28 12:10:10]   [LOGIN]   [RESULT]   Error
bot [2008-03-28 12:10:10]   [LOGIN]   [STATUS]   Logging in
AOChat: not expecting login.

if I can somehow get ur more info. please guide me Cheesy
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login.
« Reply #69 on: March 28, 2008, 10:24:48 AM »

Quote from: lazarus on March 28, 2008, 08:19:07 AM
bot [2008-03-28 12:10:08]   [LOGIN]   [STATUS]   Authenticating
bot [2008-03-28 12:10:10]   [LOGIN]   [RESULT]   Error

Seems to me you've mis-typed the username and/or password. The AO-server returns an error when you attemtp to authenticate.

In my opinion the bot should have thrown a fatal error on authentication failure.
Logged

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

Posts: 126


Re: AOChat: not expecting login.
« Reply #70 on: March 28, 2008, 10:31:12 AM »

Quote from: Blueeagle on March 28, 2008, 10:24:48 AM
Quote from: lazarus on March 28, 2008, 08:19:07 AM
bot [2008-03-28 12:10:08]   [LOGIN]   [STATUS]   Authenticating
bot [2008-03-28 12:10:10]   [LOGIN]   [RESULT]   Error

Seems to me you've mis-typed the username and/or password. The AO-server returns an error when you attemtp to authenticate.

In my opinion the bot should have thrown a fatal error on authentication failure.


I had this too yesterday.  I was trying to run 5 bots from the same dir.  I did diff config files for each bot.

#1 ran fine
#2 got a login error
#3 ran fine
#4 ran fine
#5 got a login error

Since it was the same dir, I assumed something was wrong in a config file.  Sure enough I had misspelled the bot name.  Made changes and tried to start the error'd bots again.

Still got login error.

deleted the config files and tables from DB

sent new config files and ran the bots... essentially "starting fresh"

something is cached somewhere, as those last two still gave me login errors.

Outside of a reboot (taking down all bots,) what can one do to recover from a failed login?
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: AOChat: not expecting login.
« Reply #71 on: March 28, 2008, 07:27:39 PM »

Have you tried logging in those players with the regular anarchy client?

FunCom have wiped characters before and that might have happened again, but such whipes are usually announced. Other than that I cannot see how you're getting an invalid login.

If you're logging in many bots simultaneously you might hit a flood barrier perhaps?

You could try annonymizing the configuration files and post them here and we can see if we can make sense of them.
Logged

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

Posts: 1077


Re: AOChat: not expecting login.
« Reply #72 on: March 28, 2008, 08:06:34 PM »

The only time I ran into the Not expecting login error was when I had a wrong password. Maybe it's some different reason.

Try adding some debug output to Main.php after reading the config file, perhaps php gets some wrong values?

Quote from: Blueeagle on March 28, 2008, 07:27:39 PM
If you're logging in many bots simultaneously you might hit a flood barrier perhaps?
The limit is somewhere around 20 for RK2, doubt many reach it.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Re: AOChat: not expecting login.
« Reply #73 on: March 28, 2008, 08:31:55 PM »

Quote from: Dracutza on March 28, 2008, 10:31:12 AM
something is cached somewhere, as those last two still gave me login errors.

Outside of a reboot (taking down all bots,) what can one do to recover from a failed login?
There shouldn't be any cache outside of the php instance. And even in there all logon data besides the actual character name is whiped after the AOChat class is logging in.

Check for php instances using the misbehaving bots as command line argument, if some still exist just kill them. Though this problem can only really happen if you use some method to put the output of the bots into background.
Logged
lazarus
Rookie
**
Offline Offline

Posts: 25


Re: AOChat: not expecting login.
« Reply #74 on: March 29, 2008, 11:35:44 AM »

hehe my issue was a wrong username ^^
Logged
Pages: 1 ... 3 4 [5] 6   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Helpful posts > Topic: AOChat: not expecting login.
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 17
Total: 17

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.449 seconds with 29 queries. (Pretty URLs adds 0.039s, 4q)
Loading...