collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: login failure  (Read 3085 times)

0 Members and 1 Guest are viewing this topic.

Offline captainwinky

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
login failure
« on: January 04, 2006, 04:54:36 am »
hi.
i am having a very similar (if not the same) problem as Sputnik.
when i try to log in, i get 'AOChat: Not expecting login.'
i have tried the aokex work-around, but it would seem that aokex will not compile for me, for whatever reason.
i am trying to run BeBot under linux (debian).  i have a bit of experience with linux, but not with programming in any language.
i'm pretty sure i have all the dependencies set up correctly, and i have double-checked that i edited start.php, Bot.conf, and MySQL.conf appropriately.
any help with this matter would be greatly appreciated.
-CW

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: login failure
« Reply #1 on: January 04, 2006, 05:57:19 am »
can you post start.php, Bot.conf and MySQL.conf (with the passwords/usernames removed)

and did you create a character with the name you are trying to login with?

Offline captainwinky

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
Re: login failure
« Reply #2 on: January 04, 2006, 06:33:08 am »
start.php:

<?
/*
* start.php - Starts and restarts the bot
*
* BeBot - An Anarchy Online Chat Automaton
* Copyright (C) 2004 Jonas Jax
*
* Developed by Blondengy (RK1)
* Special thanks goes out to Khalem (RK1) for his support.
*
* File last changed at $LastChangedDate: 2005-12-13 01:34:04 +0100 (Tue, 13 Dec 2005) $
* Revision: $Id: start.php 37 2005-12-13 00:34:04Z shadowmaster $
*/


/*
Edit the following two lines:
*/
$php_bin = "/usr/bin/php4";
$main_php = "/path-to/BeBot_v0.2.2/main.php";

/*
Configuration for Windows with bot and php.exe in the same directory
you're staring the bot from

$php_bin = "php.exe";
$main_php = "main.php";
*/

/*
Configuration for Windows with bot and php.exe different directorys

$php_bin = "C:\php\php.exe";
$main_php = "C:\BeBot\main.php";
*/

while (true)
{
   $last_line = system($php_bin . " " . $main_php);

   if (preg_match("/^The bot has been shutdown/i", $last_line))
   die();
   else
   sleep(1);
}


?>



Bot.conf:

<?
  /*
    These are the general settings of the bot:
  */

  $ao_username = "****";               // Account username
  $ao_password = "****";               // Account password
  $bot_name = "****";                  // Name of the bot-character
  $dimension = "1";                // Dimension number (1, 2 or 3)


  $super_admin["****"] = true;// Bot superadmins
  $super_admin["****"] = true;   // Bot superadmins
  $super_admin["****"] = true; // Bot Superadmins


  $other_bots["Somebot"] = true;   // All other bots that are guildmembers/raidbotmembers
  $other_bots["Otherbot"] = true;  // All other bots that are guildmembers/raidbotmembers


  $guildbot = false;                // false if its a raidbot.
  $guild_name = "";                // only if its a guildbot.
  $guild_id = 0;                   // only if its a guildbot.


  $tell_color = "#dddddd";         // Color of a standard tell.
  $group_color = "#abd95b";        // Color of a group message (Guildchat and privategroup).


  $log = "chat";                   // logging all/chat/off
  $log_path = "./log";             // relative/absolut path of logfiles


  $command_prefix = "!";           // Please make sure this is in a Reg-Exp format... (exampe: for "." use "\.")


  $cron_delay = 30;                // Number of seconds before the cron jobs get executed the first time.
  $tell_delay = 2222;              // Number of miliseconds between tells. (anti-flooding)
  $reconnect_time = 60;            // Time to wait for auto reconnect after an error has accured.
  $max_blobsize = 5500;            // Maximum size of text blobs in byte.
?>



MySQL.conf:


<?
    $dbase = "menagerie";
    $user = "****";
    $pass = "****";
    $server = "localhost";
?>



yes, the required character does exist :).

a little system info i would have included earlier if i wasn't tired:
kernel 2.6.13
gcc (GCC) 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
PHP 4.4.0-4 (cli)
mysql  Ver 14.7 Distrib 4.1.15
BeBot_v0.2.2 (tried with v0.3.1 and got same result)


-CW

Offline captainwinky

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
Re: login failure
« Reply #3 on: January 04, 2006, 07:32:38 am »
Just found Khalem's info regarding the need for GMP :)

compiling now.  will be back to whine some more if things don't work from here :p

-CW

Offline captainwinky

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
Re: login failure
« Reply #4 on: January 04, 2006, 07:52:01 am »
have made some progress, but now getting:

[2006-01-04 06:47:24]   [LOGIN] [STATUS]        Connecting
/usr/bin/php4: symbol lookup error: /usr/lib/php4/20050606/aokex.so: undefined symbol: __gmp_set_memory_functions
[2006-01-04 06:47:25]   [LOGIN] [STATUS]        Authenticateing

going to see if i can find any info, but any suggestions would be appreciated :)

-CW

Offline captainwinky

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
Re: login failure
« Reply #5 on: January 04, 2006, 09:33:52 am »
okay, bit of success here (many thanks to my programmer brother :P )

i am not certain whether there is a small bug in the aokex makefile, or if in my noobness i missed a step, but a workaround for the undefined symbol error is, when doing 'make' in php-aokex, this:

make AOKEX_SHARED_LIBADD=-lgmp

my understanding of this is, unfortunately, not complete :) but i hope this information helps someone else.

looking forward to making good use of your great bot in my preferred OS,
CW.

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: login failure
« Reply #6 on: January 04, 2006, 09:43:57 pm »
try getting the stuff you need as debian packages

http://www.debian.org/distrib/packages

then use

apt-get install package-name

its easier than compiling and has a better chance of working

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 229
  • 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