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

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

Author Topic: Error/cannot start bot  (Read 4084 times)

0 Members and 1 Guest are viewing this topic.

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Error/cannot start bot
« on: July 19, 2011, 01:25:05 pm »
i cannot start the bot also with screen goes not
pls help me what i mae wrong???

Quote
l:/home/bebot> ./StartBot.php
./StartBot.php: line 1: ?php: No such file or directory
./StartBot.php: line 2: /aquota.group: Permission denied
./ChangeLog.txt: line 1: -------------: command not found
./ChangeLog.txt: line 2: Version: command not found
./ChangeLog.txt: line 3: -------------: command not found
./ChangeLog.txt: line 4: -: command not found
./ChangeLog.txt: line 5: -: command not found
./ChangeLog.txt: line 6: -: command not found
./ChangeLog.txt: line 7: -: command not found
./ChangeLog.txt: line 8: -: command not found
./ChangeLog.txt: line 9: -: command not found
./ChangeLog.txt: line 10: -: command not found
./ChangeLog.txt: line 11: -: command not found
./ChangeLog.txt: line 12: -: command not found
./ChangeLog.txt: line 15: -------------: command not found
./ChangeLog.txt: line 16: Version: command not found
./ChangeLog.txt: line 17: -------------: command not found
./ChangeLog.txt: line 18: -: command not found
./ChangeLog.txt: line 19: -: command not found
./ChangeLog.txt: line 20: -: command not found
./ChangeLog.txt: line 26: -: command not found
./ChangeLog.txt: line 27: -: command not found
./ChangeLog.txt: line 28: -: command not found
./ChangeLog.txt: line 29: -: command not found
./ChangeLog.txt: line 30: -: command not found
./ChangeLog.txt: line 31: -: command not found
./ChangeLog.txt: line 32: -: command not found
./ChangeLog.txt: line 83: syntax error near unexpected token `)'
./ChangeLog.txt: line 83: `- Changed help for !aliasadmin (which didn't exist) to !alias admin'
./ChangeLog.txt: line 1: -------------: command not found
./ChangeLog.txt: line 2: Version: command not found
./ChangeLog.txt: line 3: -------------: command not found
./ChangeLog.txt: line 4: -: command not found
./ChangeLog.txt: line 5: -: command not found
./ChangeLog.txt: line 6: -: command not found
./ChangeLog.txt: line 7: -: command not found
./ChangeLog.txt: line 8: -: command not found
./ChangeLog.txt: line 9: -: command not found
./ChangeLog.txt: line 10: -: command not found
./ChangeLog.txt: line 11: -: command not found
./ChangeLog.txt: line 12: -: command not found
./ChangeLog.txt: line 15: -------------: command not found
./ChangeLog.txt: line 16: Version: command not found
./ChangeLog.txt: line 17: -------------: command not found
./ChangeLog.txt: line 18: -: command not found
./ChangeLog.txt: line 19: -: command not found
./ChangeLog.txt: line 20: -: command not found
./ChangeLog.txt: line 26: -: command not found
./ChangeLog.txt: line 27: -: command not found
./ChangeLog.txt: line 28: -: command not found
./ChangeLog.txt: line 29: -: command not found
./ChangeLog.txt: line 30: -: command not found
./ChangeLog.txt: line 31: -: command not found
./ChangeLog.txt: line 32: -: command not found
./ChangeLog.txt: line 83: syntax error near unexpected token `)'
./ChangeLog.txt: line 83: `- Changed help for !aliasadmin (which didn't exist) to !alias admin'
./StartBot.php: line 5: Age: command not found
./StartBot.php: line 6: syntax error near unexpected token `('
./StartBot.php: line 6: `* Copyright (C) 2004 Jonas Jax'
./ChangeLog.txt: line 1: -------------: command not found
bot@euve25219:/home/bebot> ./ChangeLog.txt: line 2: Version: command not found
./ChangeLog.txt: line 3: -------------: command not found
./ChangeLog.txt: line 4: -: command not found
./ChangeLog.txt: line 5: -: command not found
./ChangeLog.txt: line 6: -: command not found
./ChangeLog.txt: line 7: -: command not found
./ChangeLog.txt: line 8: -: command not found
./ChangeLog.txt: line 9: -: command not found
./ChangeLog.txt: line 10: -: command not found
./ChangeLog.txt: line 11: -: command not found
./ChangeLog.txt: line 12: -: command not found
./ChangeLog.txt: line 15: -------------: command not found
./ChangeLog.txt: line 16: Version: command not found
./ChangeLog.txt: line 17: -------------: command not found
./ChangeLog.txt: line 18: -: command not found
./ChangeLog.txt: line 19: -: command not found
./ChangeLog.txt: line 20: -: command not found
./ChangeLog.txt: line 26: -: command not found
./ChangeLog.txt: line 27: -: command not found
./ChangeLog.txt: line 28: -: command not found
./ChangeLog.txt: line 29: -: command not found
./ChangeLog.txt: line 30: -: command not found
./ChangeLog.txt: line 31: -: command not found
./ChangeLog.txt: line 32: -: command not found
./ChangeLog.txt: line 83: syntax error near unexpected token `)'
./ChangeLog.txt: line 83: `- Changed help for !aliasadmin (which didn't exist) to !alias admin'

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #1 on: July 19, 2011, 02:05:23 pm »
You will not get any help before you give more info.

Atleast provide us with:
* OS being used
* PHP version
* Everything setup? (MySQL user+password, config in bot)
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #2 on: July 19, 2011, 03:43:36 pm »
sorry i forgot gives more info
linux opensuse
php 5.4
mysql 5.0.45

bot.conf
Quote
   These are the general settings of the bot:
  */

  $ao_username = "charname";               // Account username
  $ao_password = "mypw";               // Account password (optional, will request on running of Bot if not entered here)
  $bot_name = "fairy";                  // Name of the bot-character
  $dimension = "Rage";                 // The name of the server you play on, or (1, 2 or 3 for AO)
  $guild = "gname";                     // Name of the guild running the bot (AOC only)

/*
    Suggested values for owner and super_admin:
    We suggest that the owner should be the main characer on the
    account for $ao_username.
    super_admis should be alts on the same account.

    Defining a superadmin in the config file prevents their removal and banning.
    You are able to add more superadmins with the ingame interface.
    Superadmins defined in game are able to be removed and banned.
*/
  $owner = "charname";                     // Owner of the bot.
  // $super_admin["Superadmin1"] = true;// Bot superadmins.
  // $super_admin["Superadmin2"] = true;


mysql.conf
Quote
?php
   /*
   Database name
   */
   $dbase = "bebot";

   /*
   Database username
   */
   $user = "bebot";

   /*
   Database password
   */
   $pass = "bebot";

   /*
   Database server (usually localhost)
   */
   $server = "localhost";

   /*
   Database table prefix
   The bot will use <botname> as prefix on default, you only need to change this entry if you
   want a different prefix or none at all, in which case you have to set it to an empty
   string ("").
   If you want a different or no prefix you will have to uncomment the line below by removing
   the // in front of it and set it to the wished value.
   you may also use <botname> as part of the string and it will be replaces with the botname in lowercase
   */
   // $table_prefix = "";

   /*
   If you have $table_prefix Defined your tables will be prefixed as above with a _ added on
   if you dont want the _ added uncomment below
   */
   //$nounderscore = TRUE;

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #3 on: July 19, 2011, 11:03:49 pm »
Do the .php files start with:
Quote
<?php

Was abit confused on the "l:/home/bebot> ./StartBot.php" in start of first post, looked like a mix of windows and linux with disk letters in start...
But you can'tuse  "./" aka "bash/sh" a .php file...
Use this to start: "php StartBot.php BOTNAME"
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #4 on: July 20, 2011, 03:00:56 pm »
hmmm first get this error

Quote
:/home/bebot> php StartBot.php name
PHP Warning:  PHP Startup: mm_create(0, /var/lib/php5/session_mm_cli1004) failed, err mm:core: failed to acquire shared memory segment (Invalid argument) in Unknown on line 0
PHP Warning:  shell_exec(): Cannot execute using backquotes in Safe Mode in /home/bebot/StartBot.php on line 68
PHP Notice:  Undefined property: Conf::$cf in /home/bebot/Sources/Conf.php on line 70

and then when confugiere the conf get this
Quote
.MySQL.conf and MySQL.conf Does not Exist
 What do you want to do?
(r=Retry, n=new, q=quit)
Select: n

Creating MySQL Conf File
Would u like to use botname like botname.MySQL.conf  (y/yes or n/no)
PHP Notice:  Undefined variable: filename in /home/bebot/Sources/Conf.php on line 273
Use Botname:y
MySQL Details:
Database name:bebot
Username:bebot
Password:bebot
Database server (usually localhost) Enter nothing for localhostServer:localhost
The bot will use  as prefix on default, Do you want to use Default? (y/yes or n/no)
PHP Notice:  Undefined variable: prefix in /home/bebot/Sources/Conf.php on line 291
Use default prefix:y
The bot will use _tablenames for tablename table on default, Do you want to use Default? (y/yes or n/no)
PHP Notice:  Undefined variable: mt in /home/bebot/Sources/Conf.php on line 306
Use default prefix:y
PHP Warning:  fopen(./conf/.MySQL.conf): failed to open stream: Permission denied in /home/bebot/Sources/Conf.php on line 362
PHP Warning:  fwrite(): supplied argument is not a valid stream resource in /home/bebot/Sources/Conf.php on line 363
PHP Warning:  fclose(): supplied argument is not a valid stream resource in /home/bebot/Sources/Conf.php on line 364
.MySQL.conf Created
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error/cannot start bot
« Reply #5 on: July 20, 2011, 03:03:22 pm »
try to make the php safe mode off ....

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #6 on: July 20, 2011, 03:28:57 pm »
and now get i only this error i try start with php5 StartBot.php then php StartBot.php and with php StartBot.php botname

Quote
PHP Warning:  PHP Startup: mm_create(0, /var/lib/php5/session_mm_cli1004) failed, err mm:core: failed to acquire shared memory segment (Invalid argument) in Unknown on line 0
PHP Notice:  Undefined property: Conf::$cf in /home/bebot/Sources/Conf.php on line 70

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error/cannot start bot
« Reply #7 on: July 20, 2011, 04:52:26 pm »
do u have a diretory php and php5 ??? if not just creat one .... mybee this would help

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #8 on: July 20, 2011, 09:12:53 pm »
you means in bebot folder???

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error/cannot start bot
« Reply #9 on: July 20, 2011, 09:14:09 pm »
nope i mean in the etc folder ......

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #10 on: July 20, 2011, 09:21:23 pm »
i have a php5 folder in etc

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #11 on: July 20, 2011, 09:42:20 pm »
i have in etc php and php5 but i still this error why i cannot star the bot

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error/cannot start bot
« Reply #12 on: July 20, 2011, 11:25:19 pm »
Does /usr/lib/php5 exist? or /usr/lib/php .... if not create both folder .... maybe this would help ... so i hope ^^ also try to create php an php5 folder in /usr/lib64 if it isn't existing
« Last Edit: July 20, 2011, 11:27:02 pm by Drizzurdeen »

Offline deluxe

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Error/cannot start bot
« Reply #13 on: July 20, 2011, 11:57:33 pm »
drizz sorry but all is exist i have all hmmmm what can be the problem

:/home/bebot> php StartBot.php
PHP Warning:  PHP Startup: mm_create(0, /var/lib/php5/session_mm_cli1004) failed, err mm:core: failed to acquire shared memory segment (Invalid argument) in Unknown on line 0
PHP Notice:  Undefined offset:  1 in /home/bebot/Sources/Conf.php on line 47
PHP Notice:  Undefined property: Conf::$cf in /home/bebot/Sources/Conf.php on line 70
PHP Notice:  Undefined offset:  1 in /home/bebot/StartBot.php on line 74
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /php5: No such file or directory
« Last Edit: July 21, 2011, 12:14:26 am by deluxe »

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error/cannot start bot
« Reply #14 on: July 21, 2011, 11:28:45 am »
Quote
sh: /php5: No such file or directory

seems that u haven't a directory like php5 ....
pls have a look in /usr/lib if there is a directory called php5 if not create one ...

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 507
  • 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