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
-
[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
-
Are you running the start.php or the bot.php?
-
yea i get that also, and i use windows so i use the bat file
-
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.
-
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.
-
using FireDaemon now and its mint, thanks for link, much better than trayit, but works well with it ;)
does not seem to pause now
-
Yeah don't use the batch file. Use firedaemon with the php.exe as the executable and the start.php as the parameter.
-
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
@cls
@php -c ./ Start.php
Guess we should rename the batch file in the package to start-test.bat :-\