BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: stee01 on November 20, 2010, 02:44:19 pm

Title: Bebot and Xampp help
Post by: stee01 on November 20, 2010, 02:44:19 pm
Hi guys, Im having trouble with getting bebot to run with Xampp. I have edited all the conf files, set up the database with phpmyadmin and edited the startbot.php file including pointing php bin to c:/xampp/php/php.exe.

I also made sure host file was pointing 127.0.0.1 and localhost to each other

I even tried dropping the directory into htdocs, but still no joy.

Has any successfully done this? Any help or links to tutorials (I couldnt find any through search. Would be greatly helpful.

Thanks

Stee
Title: Re: Bebot and Xampp help
Post by: Drizzurdeen on November 20, 2010, 06:03:21 pm
would be easier for us when u post the errorlog
Title: Re: Bebot and Xampp help
Post by: stee01 on November 20, 2010, 06:09:51 pm
Of course.

The logs themselves are clean. It doesn't actually initialise i dont think.

Here is the error message

(http://i54.tinypic.com/35kobpt.png)

I suspect it's a pebkac error on my end, but I genuinely have no idea how to start this up from xampp
Title: Re: Bebot and Xampp help
Post by: TBK on November 21, 2010, 01:20:11 am
If you wanna run it from the command line, then cd to the folder first at then fire "php startbot.php".
Title: Re: Bebot and Xampp help
Post by: stee01 on November 21, 2010, 05:24:21 pm
If I cd to the Bebot directory (c:\xampp\htdocs\Bebot) I cannot run any php commands because php resides in c:\xampp\php. Hence the reason I am running from the php directory and pointing to StartBot.php in htdocs\xampp.

I found that by changing ./Sources/Conf.php on line 73 I could progress a little further. However It now fails to recognise the conf files in the Conf folder.

Screenshot below

(http://i54.tinypic.com/349ayci.png)

Im going to temporarily remove xampp and follow the normal method. If anyone has actually got this working with xampp in windows and can actually help please let me know.

Thanks

Stee
Title: Re: Bebot and Xampp help
Post by: TBK on December 16, 2010, 02:26:52 pm
I'm running it on Windows with Zend Server.

When PHP is correctly setup, you will have PHP added to the system environments variables and be able to use PHP CLI (command line interface) (Windows - http://windows.fyicenter.com/view.php?ID=60).

The way I run it is with Task Schedule (Cron job):
Program: "C:\....path to php.exe"
Add arguments: StartBot.php
Start in: C:\..... (without a \ at the end) - is set to the directory where the bot files are located.

Replace $php_args = " -c ./ " with  $php_args = " ", if you don't want the bot PHP instance to look for a php.ini file in the directory where PHP is located.


You need to tell PHP to "start" from the bot dir, otherwise the relative paths in the code won't work.

To see it in action, open cmd, cd to the bot dir and type php StartBot.php, or use the .bat files (remember to edit them and remove the -c ./ variable first, otherwise PHP will look for a php.ini file in the bot dir).
SimplePortal 2.3.7 © 2008-2025, SimplePortal