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

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

Author Topic: AOChat: not expecting login.  (Read 71313 times)

0 Members and 1 Guest are viewing this topic.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #60 on: January 28, 2008, 02:12:06 am »
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: [Select]
`--> 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: [Select]
`--> 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: [Select]
`--> 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.
Luuv  Bot-Keeper of Vengeance ^^*

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #61 on: January 28, 2008, 02:20:38 am »
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.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #62 on: January 28, 2008, 12:31:31 pm »
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.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #63 on: January 28, 2008, 04:38:27 pm »
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, 04:40:56 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #64 on: January 28, 2008, 04:51:31 pm »
You may run into trouble with the extended messages, like tower spam, org joins/leaves, and similar stuff. Otherwise all should be in there.

Offline Sary

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #65 on: January 29, 2008, 12:09:07 am »
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 29, 2008, 12:18:25 am by Sary »

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #66 on: March 27, 2008, 11: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 :/

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #67 on: March 28, 2008, 01:53:07 am »
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 28, 2008, 02:03:20 am by Blueeagle »
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #68 on: March 28, 2008, 02:19:07 pm »
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 :D

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #69 on: March 28, 2008, 04:24:48 pm »
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.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #70 on: March 28, 2008, 04:31:12 pm »
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?

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #71 on: March 29, 2008, 01:27:39 am »
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.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #72 on: March 29, 2008, 02:06:34 am »
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?

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.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #73 on: March 29, 2008, 02:31:55 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.

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #74 on: March 29, 2008, 05:35:44 pm »
hehe my issue was a wrong username ^^

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 682
  • 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