BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: mesa on December 13, 2006, 07:57:56 pm
-
I've noticed with both 0.2.9 and 0.2.10 that the bot sometimes was unable to reconect after losing connection.
The exact error message I dont have offhand as the bot doesnt save it in the log just see it in the console.
It's something along the lines of this though:
php_socket() failled to connect the connection was closed by remote host.
The bot is restarting...
C:\(directories)\Bot.php>Pause...
and it just sits there never reconnecting. any thoughts on this? would be great if it could reconnect of course but not sure where to start looking to fix it.
-
ah nvm found a post on this here:
http://bebot.link/index.php/topic,370.0.html
seems to do with using the .bat on windows. will try the fix there.
-
Use StartBot.bat instead of StartDebugBot.bat.
The latter will pause to prevent the window from closing in case of an error occuring, which also means the bot will not restart or reconnect.
-
Ah thanks Khalem I will give that a try again. I was using startDebug.bat because start.bat would just close immediately on start up. It was complaining that it couldn't find some DLL related to MySQL, but it otherwise runs fine without it. I also think it complained about not finding aokex.dll as well.
The mysql dll i was complainging about gave a dialog error:
The Dynamic link library MSVCR71.dll could not be found in the specified path C:\blah blah
where "C:\ blah blah" looked like some concatination of strings from both unix file paths and windows and was 6 or so different paths where I assumed it was looking for this DLL.
Normally I hit ok and it runs along happily though.
-
If you use the BeBot-php bundle you should avoid any issues with missing dll's as everything that is needed is supplied.
-
have a weird setup actually due to having to run an IGN org bot on the same server ( yick) but that error message wasn't what concerned me, I am using the supplied php bundle but I discovered why the StartBot.bat wasn't working.
in
StartBot.bat in 0.2.10
it was updated to
@cls
@php -c ./ StartBot.php
but the file is still named start.php :P
anyways I changed it to main.php and everything works great now :)
I
-
Just a warning, using main.php instead of start.php means the bot will not restart itself in case of errors or disconnect, or even !restart.
-
I can't use StartBot.bat as it closes out and does nothing. Bot never starts up. So I use StartDebugBot.bat.
I looked and my StartBot.bat points to StartBot.php.
So I change it to Start.php and it does nothing but give me line after line of the same error (Which I forget, I'm at work).
This is with 0.2.10, and these are the files that come with it. So either StartBot.bat needs fixed or Start.php needs fixed.
-
I can't use StartBot.bat as it closes out and does nothing. Bot never starts up. So I use StartDebugBot.bat.
I looked and my StartBot.bat points to StartBot.php.
So I change it to Start.php and it does nothing but give me line after line of the same error (Which I forget, I'm at work).
This is with 0.2.10, and these are the files that come with it. So either StartBot.bat needs fixed or Start.php needs fixed.
this is the same problem i have been getting too (along with the missing mysql related DLL)
there is definitely something wrong in the SVN with it pointing to the right file
but looking at it again i think i made the mistake of not editing the $php_bin variable in start.php
the default install of 2.10 is for linux and I run under windows which requires the path to php.
just look in start.php and uncomment the appropriate set of variables for your system.
im still not sure why it cant find this mysql related DLL though. will post again if i ever figure it out :)
-
Download the following updates:
http://svn.shadow-realm.org/svn/BeBot/branches/0.2/StartBot.bat
http://svn.shadow-realm.org/svn/BeBot/branches/0.2/start.php
Provided you then use the BeBot php bundle you should be all set to go.