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

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

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

0 Members and 3 Guests are viewing this topic.

Offline Hurtig

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #45 on: November 28, 2006, 02:50:16 am »
Ok, I got both the GMP and the OpenSSL solution to compile and run.

When I print the generated key from AOChat it looks ok, but now I get the not-expected-login error again when AOChat tried to connect:

Code: [Select]
[2006-11-28 00:02:07]   [LOGIN] [STATUS]        Connecting
[2006-11-28 00:02:08]   [LOGIN] [STATUS]        Authenticating
Using AOKex for login key generation
Generated key: 5692F15408C2B4E90CB5857606266BFA22B4579yaddayadda
2006-11-28 00:02:08]   [LOGIN] [RESULT]        Error
[2006-11-28 00:02:08]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

The GMP and OpenSSL keys differ when I generate them. Are the supposed to be the same?


Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOChat: not expecting login.
« Reply #46 on: January 25, 2007, 04:56:19 pm »
Can someone explain all this to me in lamens terms?

This is my first time using linux and i juts bought a VPS serve rot run all this on plus some websites..

It runs centos-4
I got the bot installed but get this AOChat error, i downloaded the aokex and its sitting on my pc.

Someone please explain in lamens terms what to do next?
do i upload it and ssh in and run some commands or what?

Thanks for helping me out i am not used ot linux at all so be gentle with me :)

Offline Barvaz

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #47 on: February 16, 2007, 04:01:26 am »
Quote from: Linux HOWTO
cd ~

wget http://auno.org/dev/aochat/php-aokex-0.1.tar.gz
tar zxf php-aokex-0.1.tar.gz
cd php-aokex
phpize
./configure
make
cp -p modules/aokex.so ..

check with php -m that you got all the needed modules installed.

ADD dl("aokex.so"); in the start of aochat.php


start the bot in the background:
screen -A -m -d -S redbot php start.php

view the bot console:
screen -r redbot

get bot back to background:
ctrl+a d

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #48 on: February 16, 2007, 08:37:14 am »
No more need for aokex with the 2.11 bot.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Galdethi

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #49 on: December 02, 2007, 09:35:34 pm »
I've been trying to get my bot running on an ubuntu server, i've gone through all the fixes posted in this thread and I still get the not expecting login crap, any way to save my bot? I no longer have a windows based server to host it off.

Im running the latest php mysql and bot.
« Last Edit: December 02, 2007, 09:54:09 pm by Galdethi »

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #50 on: December 03, 2007, 08:35:49 am »
I am running the latest bot off Ubuntu 6.10 with no problem.

Please note that it should in theory run as long as you've installed php and mysql. However be sure that you install php5-cli as the command line interface is not installed with the php5 meta-package nor with libapache-mod-php5.

Are you sure you've set up the configuration correctly in the conf directory?
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Galdethi

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #51 on: December 03, 2007, 01:32:07 pm »
Sadly positive, I guess ill rerun all the php mysql installs again see if anything changes :-\

Offline Galdethi

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #52 on: December 06, 2007, 12:14:36 pm »
Ok ive reinstalled everything several times and I still get the unexpected login error, anyone got any clue what I can try next?

[edit]Tried going through all this again, reinstalled the lot and when I add the aokex bit I now get this error

 [LOGIN] [STATUS]        Connecting
/usr/bin/php: symbol lookup error: ./php_extension/aokex.so: undefined symbol: __gmp_set_memory_functions


I've reinstalled the gmp recompiled and messed about with it till im blue in the face :-\
« Last Edit: December 06, 2007, 12:33:11 pm by Galdethi »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #53 on: December 06, 2007, 02:03:33 pm »
Which version of bebot are you trying to run?

The newest version 0.4.3 should run without any need for aokex under linux. It just needs bcmath now, which is included in all php versions of the last years per default.

Offline Galdethi

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #54 on: December 06, 2007, 03:54:01 pm »
The latest version, thats why im so damn puzzled :-\

Server is:

Dual core 3800+
4gb ram
Ubuntu 6.10
latest php
latest mysql
« Last Edit: December 06, 2007, 03:58:13 pm by Galdethi »

Offline Galdethi

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #55 on: December 06, 2007, 04:31:52 pm »
Ok after leaving the damn bot running for ten mins saying the same not expecting login error, it connected, id love to know what the hell is going on though.

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #56 on: January 27, 2008, 01:56:18 am »
i have tried everything i can think of.

Im trying to run my bot on a fresh install of slackware 12.0

i get the following message when trying to start it though.

AOChat class needs PHP version >= 5.2.0 to work.


any ideas?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #57 on: January 27, 2008, 11:56:36 am »
Update to php 5.2 or change the version string in AOChat.php.

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #58 on: January 27, 2008, 08:56:25 pm »
thats whats weird about all of this.....im using 5.2.3

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #59 on: January 28, 2008, 12:07:37 am »
Do you have different php versions on your system and the bot is using a wrong one?

Worst case look for the line "AOChat class needs PHP version" in Sources/AOChat.php and simply comment the if ((float)phpversion() < 5.2) line out as well as the block inside {} directly afterwards.

If you got the right version there won't be any trouble - and right now the bot will run on any php version of the last few years.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

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