And everything was going so well until this error cropped up...
So what is causing this?
It would seem that later versions of php (5.0.x and later in particular) have had changes done which breaks backwards compactibilities. In addition 64bit CPU systems also display this behaviour.
Basically, the key generated by PHP for the login is invalid. Auno currently have no plans on fixing AOChat.php, but have provided a workaround using a C based PHP Extention.
Unfortunately, no one has yet compiled this extention for Windows, so unless you run *nix your still sol.
Start by grabbing the aokex extention from
http://auno.org/dev/aochat/php-aokex-0.1.tar.gz or from the bottom of this post for a local mirror.
Please note that you will need the phpize program which is by default not installed on most Linux distros. The package that provides this for RPM based distros is php-devel.
Fedora and CentOS uses can simply issue as root:
yum install php-devel
Follow the instructions included in the archive for compiling aokex. Once compiled, you can normally do:
make install
This will install aokex to the system wide extention location.
The important step is to add the following line to the top of your AOChat.php:
dl("aokex.so");
Save and fire up your bot. Provided the aokex extention resides where php can find it, that should do the trick and your bot should now work
