BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: Tom on July 05, 2008, 02:01:50 am

Title: AOChat: not expecting login.
Post by: Tom on July 05, 2008, 02:01:50 am
I am playing on Bloodbrand(Ahriman) it will change soon to Bloodbrand but the previous name is Ahriman.
I have tried both Ahriman and Bloodbrand as a combination.
What am I doing wrong?


Vanitybot [LOGIN]       [STATUS]        Connecting
Vanitybot [LOGIN]       [STATUS]        Authenticating
Vanitybot [LOGIN]       [RESULT]        Error
Vanitybot [LOGIN]       [STATUS]        Logging in
AOChat: not expecting login.

I double, tripple and doublechecked the login, password and botname and it seems fine.
Should i write something else rather than:

  $dimension = "Ahriman";                // Dimension number (1, 2 or 3)
Title: Re: AOChat: not expecting login.
Post by: mist on July 05, 2008, 02:11:31 am
Are you trying to run the bot from 64 bit linux?
Title: Re: AOChat: not expecting login.
Post by: Tom on July 05, 2008, 03:47:39 am
No, 64bit Windows Vista.
Running it locally at the moment.
Title: Re: AOChat: not expecting login.
Post by: mist on July 05, 2008, 04:04:20 am
Not sure about 64bit windows, but in 64bit linux I had to change the following function in sources/aochat.php .

Code: [Select]
        function SafeDecHexReverseEndian($value)
        {
                $result = "";
                $hex   = dechex($this -> ReduceTo32Bit($value));
                $len   = strlen($hex);

                while($len < 8)
                {
                        $hex = "0$hex";
                        $len++;
                }

                if (!function_exists("str_split"))
                {
                        $bytes = $this -> my_str_split($hex, 2);
                }
                else
                {
                        $bytes = str_split($hex, 2);
                }

                for($i = 3; $i >= 0; $i--)
                $result .= $bytes[$i];

                return $result;
        }

to

Code: [Select]
        function SafeDecHexReverseEndian($value)
        {
                $result = "";
                $hex   = dechex($this -> ReduceTo32Bit($value));
                $len   = strlen($hex);

                while($len < 8)
                {
                        $hex = "0$hex";
                        $len++;
                }

                if (!function_exists("str_split"))
                {
                        $bytes = $this -> my_str_split($hex, 2);
                }
                else
                {
                        $bytes = str_split($hex, 2);
                }

                $bytes = unpack("H*", pack("L*", $value));
                for($i = 3; $i >= 0; $i--)
                $result .= $bytes[$i];

                return $result;
        }
Title: Re: AOChat: not expecting login.
Post by: Tom on July 05, 2008, 04:08:25 am
Didn't work  :-\

Is there any file where you see the server IP's your connecting too?
Or am I doing right in just putting "Ahriman" there?

Title: Re: AOChat: not expecting login.
Post by: mist on July 05, 2008, 05:21:09 am
sources/Bot.php

Code: [Select]
// EU Servers
                        case "Ahriman":
                                $server = "proddm07.ams.ageofconan.com";
                                $port = 7021;
                                break;

Looks like your server is in there. Or in the latest revision anyway.
Title: Re: AOChat: not expecting login.
Post by: Tom on July 05, 2008, 06:11:25 am
reinstalled everything.
removed all the tables.

Now it works.
thanks for your help.
Title: Re: AOChat: not expecting login.
Post by: Vain on July 12, 2008, 09:59:55 am
I had the same problem.

The cause for me was I replaced the ./Source/Bot.php with one that was supposed to have backward compatibility for older modules.

I had to modify the Bot.php to include the AOC connections.
It was trying to connecto to AO chat servers.
SimplePortal 2.3.7 © 2008-2025, SimplePortal