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 6374 times)

0 Members and 1 Guest are viewing this topic.

Offline Tom

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
AOChat: not expecting login.
« 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)

Offline mist

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #1 on: July 05, 2008, 02:11:31 am »
Are you trying to run the bot from 64 bit linux?

Offline Tom

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #2 on: July 05, 2008, 03:47:39 am »
No, 64bit Windows Vista.
Running it locally at the moment.

Offline mist

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #3 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;
        }

Offline Tom

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #4 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?


Offline mist

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #5 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.

Offline Tom

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #6 on: July 05, 2008, 06:11:25 am »
reinstalled everything.
removed all the tables.

Now it works.
thanks for your help.

Offline Vain

  • BeBot User
  • **
  • Posts: 57
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #7 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.

 

* 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: 396
  • 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