BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Shakor on June 14, 2009, 09:12:56 pm

Title: Authentication failed Challenge failed
Post by: Shakor on June 14, 2009, 09:12:56 pm
botname [2009-06-14 16:47:14]   [LOGIN] [STATUS]        Connecting
botname [2009-06-14 16:47:14]   [LOGIN] [STATUS]        Authenticating
botname [2009-06-14 16:47:17]   [LOGIN] [RESULT]        Error
AOChat: Authentication failed: Challenge failed

Anyone knows why this is happening? username and passwd are correct in the config.
Title: Re: Authentication failed Challenge failed
Post by: Temar on June 15, 2009, 05:58:56 am
what Game?
if AO have u updated as the chat server details have changed
Title: Re: Authentication failed Challenge failed
Post by: Shakor on June 15, 2009, 06:21:56 am
AoC
Title: Re: Authentication failed Challenge failed
Post by: Temar on June 15, 2009, 07:33:47 am
64 bit server?
Title: Re: Authentication failed Challenge failed
Post by: Temar on June 15, 2009, 08:14:06 am
anyway if so this is prob the solution

if not it still might be the solution

http://bebot.link/bebot-0-6-support/running-bot-on-freebsd-64/msg12500/#msg12500
Title: Re: Authentication failed Challenge failed
Post by: Shakor on June 15, 2009, 12:35:58 pm
Yeah its a Gentoo 64Bit server :)

Thanks will try it out tonight when I am home.
Title: Re: Authentication failed Challenge failed
Post by: screwy on June 16, 2009, 06:39:14 pm
Hey all!

Exactly the same problem.
But the diff listed here is for some older (maybe ancient) version.
Could someone point me to the correct version of aocchat for this diff or post a patched one somewhere?

Pretty please.
With nano on top.

-Screwy.
Title: Re: Authentication failed Challenge failed
Post by: screwy on June 16, 2009, 07:30:28 pm
Ah.

The beaut of self-replying.
For the archive: This works:

Code: [Select]
  // On linux systems, unpack("H*", pack("L*", <value>)) returns differently than on Windows.
  // This can be used instead of unpack/pack to get the value we need.
  function SafeDecHexReverseEndian($value)
  {
    $result = "";
    $hex   = dechex($this -> ReduceTo32Bit($value));
    $len   = strlen($hex);

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

    $bytes = str_split($hex, 2);
    $bytes = unpack("H*", pack("L*", $value));

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

    return $result;
  }
SimplePortal 2.3.7 © 2008-2025, SimplePortal