BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: deluxe 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???
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'
-
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)
-
sorry i forgot gives more info
linux opensuse
php 5.4
mysql 5.0.45
bot.conf
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
?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;
-
Do the .php files start with:
<?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"
-
hmmm first get this error
:/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
.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
-
try to make the php safe mode off ....
-
and now get i only this error i try start with php5 StartBot.php then php StartBot.php and with php StartBot.php botname
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
-
do u have a diretory php and php5 ??? if not just creat one .... mybee this would help
-
you means in bebot folder???
-
nope i mean in the etc folder ......
-
i have a php5 folder in etc
-
i have in etc php and php5 but i still this error why i cannot star the bot
-
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
-
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
-
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 ...
-
drizz i have the folder i have all i have bcmath and php5sockets install i have all bu i can not understand why my bot get error
can you me send your bebot folder i will try wit them i change only the conf
-
ok here is the basic bot i use .... maybe this would help
just unzip into u botfolder ....
there is a bot.sh either ... with this u kan start the bot ... ./bot.sh start ./bot.sh stop and ./bot.sh status
u have to customice the bot.sh with the homedirectory of ur bot ... than it should work
-
its say bot is started but i get this
PHP Warning: PHP Startup: mm_create(0, /var/lib/php5/session_mm_cli1006) 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/BeBot/StartBot.php on line 68
is that a error:
PHP Notice: Undefined variable: pw in /home/Basisbot/BeBot/StartBot.php on line 100
EDIT:i found my problem because the PHP version is buged i get always this error