BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Foxy on April 22, 2006, 12:12:09 pm

Title: bot wont reconnect if crashed.
Post by: Foxy on April 22, 2006, 12:12:09 pm
[2006-04-22 01:52:59]   [CONN]  [ERROR] Bot has disconnected. Reconnecting in 60
 seconds.
The bot is restarting.

C:\Documents and Settings\Media Center\Desktop\bots\pvp>pause
Press any key to continue . . .

means my bot was offline for like 9hrs.. while i slept, any idea how i can make it reconnect and not pause
Title: Re: bot wont reconnect if crashed.
Post by: Blondengy on April 22, 2006, 12:43:06 pm
Are you running the start.php or the bot.php?
Title: Re: bot wont reconnect if crashed.
Post by: Pharexys on April 22, 2006, 02:11:08 pm
yea i get that also, and i use windows so i use the bat file
Title: Re: bot wont reconnect if crashed.
Post by: Jarras on April 22, 2006, 07:05:29 pm
Had the same problem, but when I was speaking to malosar he suggested a program (http://bebot.link/index.php/topic,360.0.html) to make the bots run as a service and everything works perfectly now.
Title: Re: bot wont reconnect if crashed.
Post by: MatHack on April 22, 2006, 09:54:08 pm
the bot.bat file seems to cause that, I'm just starting my bots with php.exe "path to start.php file" now, works fine.
Title: Re: bot wont reconnect if crashed.
Post by: Foxy on April 23, 2006, 02:35:02 am
using FireDaemon now and its mint, thanks for link, much better than trayit, but works well with it ;)

does not seem to pause now
Title: Re: bot wont reconnect if crashed.
Post by: Malosar on April 23, 2006, 03:51:52 am
Yeah don't use the batch file. Use firedaemon with the php.exe as the executable and the start.php as the parameter.
Title: Re: bot wont reconnect if crashed.
Post by: Xenixa on April 25, 2006, 09:30:03 pm
If your using the packaged .bat as is you should know its for testing purposes. That is I use it to stop the bot from restarting when a fatal error in code stops php so I can see what the error was in the Windows php CLI. Mostly because there is no php error logging in bebot using the Win32 php CLI.

Anyway Here's the contents of a batch file that won't stop the bot from reconnecting. Note the lack of a DOS batch pause command and it calls start.php instead of main.php
start.bat
Code: [Select]
@cls
@php -c ./ Start.php

Guess we should rename the batch file in the package to start-test.bat   :-\
SimplePortal 2.3.7 © 2008-2025, SimplePortal