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

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

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

0 Members and 3 Guests are viewing this topic.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #15 on: March 17, 2006, 03:01:03 am »
They are, however they are still MySQL 4.0.x or lower as they do not support the MySQL 4.1 and higher authentication changes. And most people will be downloading MySQL 5.0
BeBot Founder and Fixer Kingpin

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #16 on: March 18, 2006, 09:10:39 pm »
Got this error on Fbsd5.4 after upgrade of php from 4.3.7 to 4.4.2
Tried aokex workaround with both gmp and ssl implementations. Didn't helped.
P.S.: system is 32-bit
P.P.S.: It produces these lines in output all 3 ways under 4.4.2, working now fine without aokex at php4.3.7 till it will be solved.
[LOGIN] [STATUS]        Connecting
[LOGIN] [STATUS]        Authenticateing
[LOGIN] [RESULT]        Error
[LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

« Last Edit: March 18, 2006, 09:45:22 pm by kuznechik »
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Lokki

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #17 on: March 23, 2006, 10:46:57 am »
I have the same problem. Anyone found a solution for this? Using 4.4.2 and dont want to use the older 4.3...

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #18 on: March 23, 2006, 11:38:44 am »
Wondering if it's connected to 64-bit integer handling message I've got when making php4.4.2
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Jasper2002

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #19 on: April 10, 2006, 05:51:27 pm »
Does anyone have a link for downloading the Dev version of PHP 5.0.4-10.5 or has anyone a copy of aokex.so compiled under PHP 5.0.4-10.5 that they can link so I can download it, I cannot find the dev versions on the PHP website (needed to use PHPIZE command) and Aokex has not been added to the PHP repository at http://pecl.php.net :(

This is the only bit that I am struggling with now, I think, in getting BeBot running on my dedicated server.

Help please ;D

ps, Also getting these errors

PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 724
[2006-04-10 15:52:07]   [LOGIN] [STATUS]        Authenticateing
[2006-04-10 15:52:07]   [LOGIN] [RESULT]        Error
[2006-04-10 15:52:07]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.
PHP Notice:  Undefined variable: os_windows in /home/bebot/main.php on line 67
Connected to MySQL
PHP Notice:  Undefined variable: bot_version in /home/bebot/main.php on line 148

I think the first 5 lines is what gets fixed when Aokex is running, it is the other 3 that I am not too sure about  ???

another edit
From the instructions in the install file with aokex it says
  % phpize
  % ./configure --with-aokex=shared
  % make
  % make install

Now, phpize doesn't come with standard PHP, just the dev version, but it can be installed with Pear instead, apparently. The ./configure command does nothing just says that there is no such directory. I think the ./ bit tells it to use the current directory to find configure, do I need to copy it there as it was not in the download.

As you may have guessed i am a little new to Linux, and went out and got a dedicated server running Fedora Core 3. I would really like to make this work tho, so I will keep on trying. Just very confused about the configure and phpize things as they don't seem to work for me :(
« Last Edit: April 10, 2006, 06:35:38 pm by Jasper2002 »

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #20 on: April 11, 2006, 10:06:03 am »
phpize will create ./configure for you.

So far I was unsuccessful with starting bebot 2.3 under php >4.3.7 (Now have php5.1.2/mysql5.0.19)
Tried aokex with ssl and gmp variations. Also tried fix proposed at hackersquest http://hackersquest.org/boards/viewtopic.php?t=6226&highlight=aochat+expecting+login
Same - both with bcmath and gmp used.
Tried last version of AOChat.php from Auno...
Not working :( Still not expecting login :(
Tried:
FreeBSD 6.0/php5.1.2/mysql5.0.19
FreeBSD5.4/php4.4.2/mysql4.0.20
If php version >= 4.4.0 - bebot won't work :(
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Jasper2002

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #21 on: June 14, 2006, 09:58:21 pm »
Hi, downloaded and updated latest version on my server and still getting

Quote
[2006-06-14 19:38:56]   [LOGIN] [STATUS]        Connecting
[2006-06-14 19:38:56]   [LOGIN] [STATUS]        Authenticateing
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
PHP Warning:  unpack(): Type H: outside of string in /home/bebot/AOChat.php on line 718
[2006-06-14 19:38:56]   [LOGIN] [RESULT]        Error
[2006-06-14 19:38:56]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

Is there any possible way around this?

I thought that it was something that was fixed by Aokex, but obviously not as the Aokex req has been fixed in the updated download.

I am confused.

I am as always at your pleasure.....

I would like to thank Khalem for his help this evening. He saved me from hours of trail and testing and got my bot working. Many, many thanks, from me and the Cerbs :)
« Last Edit: June 15, 2006, 12:32:28 am by Jasper2002 »

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #22 on: June 15, 2006, 08:54:37 am »
Ehm, so how to fix it?
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #23 on: June 15, 2006, 11:09:34 am »
Worked with Jasper on this ingame.

The warning can be ignored, its a cosmetical error and is a confirmed bug in the 5.0 version of php he is using.
However it does appear that php 5.0 simply is incapable of producing correct login keys trough the functions the AOChat library uses, as such, the aokex php extention is still needed for these versions.
From all my testing so far however, php 4.3/4.4/5.1 should now work fine.
BeBot Founder and Fixer Kingpin

Offline Lucid

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #24 on: June 29, 2006, 04:43:44 am »
I've recently been trying to get BeBot working on my server from home.  I'm running a hardened gentoo box and have compiled and installed the aokex module for php.  It seems like the key generated by aokex is being rejected somehow.  I think it might have something to do with the hardening patches but I'm not sure.  The box is running PHP 5.1.4.
The login error is the same as a lot of the others.

[2006-06-29 02:15:11]   [LOGIN] [STATUS]        Connecting
[2006-06-29 02:15:11]   [LOGIN] [STATUS]        Authenticateing
[2006-06-29 02:15:11]   [LOGIN] [RESULT]        Error
[2006-06-29 02:15:11]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

Offline Badger

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #25 on: June 29, 2006, 09:58:53 am »
make sure you compiled gmp with the php.. I ran into the same problem on my Centos box. I needed to have the aokex as well..
   It turned out that even though alot of things claimed it was there it was not installed with php in the compile.
   --with-gmp'   as well as all of the other strings to compile it fully.
php -m  will tell you if the module is there. And making a phpinfo page to see what is loading as well wouldnt hurt.  can  see that is there that way as well.

Offline Lucid

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #26 on: June 30, 2006, 03:16:53 am »
Quote
make sure you compiled gmp with the php..
gmp is enabled in the compile, it's a gentoo box so I have control over the use flags for the compile.  I compiled aokex with the ssl extention this time round aswell.  Bcmath, mcrypt and sockets are also included in the php compile

I know the settings are fine in the conf's since the same setup runs and logs in on a windows box.
« Last Edit: June 30, 2006, 03:19:34 am by Lucid »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #27 on: June 30, 2006, 10:26:42 am »
What usually happens is that aokex is simply not being loaded.

Try adding the following code at the top of main.php or AOChat.php after <?php
Code: [Select]
if (!extension_loaded("aokex"))
{
if (!dl("aokex.so"))
        {
               die("aokex failed to load");
        }
}

This way you can be sure that AOKex is actually being loaded and get a better look at the actual error.
BeBot Founder and Fixer Kingpin

Offline Lucid

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #28 on: July 01, 2006, 03:54:47 am »
I added the extension as a dynamic module to the php.ini file so it's being loaded just fine.  I added the check at the top of AOChat anyway but it still runs and gives the same error.  Since posting I've also checked the compiled options in the php version included for the windows version and recompiled php with a few more options added.  Since it works in windows the only differences I can think of are the extensions compiled into php or the environment used to create the aokex module.  So:

- BeBot version is 0.2.5
- aokex version is 0.1 (the only one available)
- aokex compiles fine, is intalled on the system and added to the cli php.ini
- the only issue I can see with the aokex compile is in the configure where there is a warning
Code: [Select]
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
- aokex has been compiled with both openssl and gmp to no avail
- PHP version is 5.1.4 the only module differences I can see are
Code: [Select]
calender
com_dotnet
iconv
odbc
SimpleXML
wddx
xmlreader
xmlwriter
- aokex is definitly being loaded and used; adding in an echo of the key just after
Code: [Select]
$key = aokex_login_key($this->serverseed, $username, $password);returns a key string in the output.

Not sure what else I can add in that would useful.
« Last Edit: July 01, 2006, 04:03:53 am by Lucid »

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #29 on: July 01, 2006, 05:19:33 am »
Why do we keep using that awfull aokex, if we can do without?

People keep having problems getting Bebot to run cause of Aokex, people have to recompile their PHP installation over and over..

Some time ago a fix to all this was posted, which made it possible for Bebot/AOChat to run without aokex.

I can't find that post anymore, seems removed or i was searching for the wrong thing, but the fix included an addition of some functions, and a change to some AOChat code.. and it works flawless! I'm using it on 4 active Bebot installations now.

Grab the working AOChat.php here: http://www.onedot.nl/AOChat.phps

And please.. please stop using Aokex, cause with Aokex, Bebot has just a limited future.

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

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