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
-
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.
-
what Game?
if AO have u updated as the chat server details have changed
-
AoC
-
64 bit server?
-
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
-
Yeah its a Gentoo 64Bit server :)
Thanks will try it out tonight when I am home.
-
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.
-
Ah.
The beaut of self-replying.
For the archive: This works:
// 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;
}