BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: MAGE on March 06, 2012, 12:14:42 pm

Title: Bebot on external IIS server
Post by: MAGE on March 06, 2012, 12:14:42 pm
Hi,

I'm trying to use bebot on IIS webserver.

the bot is able to login but connection is lose after some minutes.

(after 5min) my browser show some errors like :
Code: [Select]
BotName [LOGIN] [STATUS] Authenticating
[Conan Login Server] Could not connect to aoc-eu-um.live.ageofconan.com:7000 Notice:
Could not connect to the Loginserver (aoc-eu-um.live.ageofconan.com:7000) in C:\inetpub\wwwroot\bot.cripi.org\www\bot\Sources\AOChat.php on line 494
MySQL database connection test successfull
BotName [CONN] [ERROR] Failed authenticating to server. Retrying in 60 seconds.
The bot is restarting.
Fatal error: Maximum execution time of 300 seconds exceeded in C:\inetpub\wwwroot\bot.cripi.org\www\bot\StartBot.php on line 106
humm i've  an oters error message normaly :(. with EOF error
But, the bot is connected to the chat (i can't see him in logged ppl), I can whisp him and I receive message from him. And after some minutes the bot is disconnected.

I'm using :
Server : IIS
PHP : 5.3.9
MySQL : 5.0.8-dev
botCharacter : one of my premium account.

Is better to create F2P account for the bot ?
Title: Re: Bebot on external IIS server
Post by: Glarawyn on March 12, 2012, 04:07:44 pm
Stop what you're doing right now. BeBot is not to be run on y our webserver and served up as a web page. No webserver! Not only will it not work, but it creates a huge security issue due the the need for using sockets.

PHP is a flexible language, like other languages such as Perl, Python, Ruby, or even good old bash it can be used to make dynamic web pages or run as an interpreted scripting language. BeBot uses PHP as an interpreted scripting language.

What you need to do is install the PHP scripting environmental on your server/workstation/whatever and the StartBot.php that way. So instead of loading a webpage, you will open a command prompt and type:

php.exe StartBot.php.

Bebot will fire up and run in the DOS Window, and you'll get setup prompts and all that as expected.
SimplePortal 2.3.7 © 2008-2024, SimplePortal