collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bot unable to reconnect  (Read 3252 times)

0 Members and 1 Guest are viewing this topic.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Bot unable to reconnect
« 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:

Code: [Select]
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.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: Bot unable to reconnect
« Reply #1 on: December 13, 2006, 08:01:55 pm »
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.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bot unable to reconnect
« Reply #2 on: December 13, 2006, 09:40:57 pm »
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.
BeBot Founder and Fixer Kingpin

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: Bot unable to reconnect
« Reply #3 on: December 13, 2006, 10:52:25 pm »
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.
« Last Edit: December 13, 2006, 11:09:47 pm by mesa »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bot unable to reconnect
« Reply #4 on: December 14, 2006, 10:48:43 pm »
If you use the BeBot-php bundle you should avoid any issues with missing dll's as everything that is needed is supplied.
BeBot Founder and Fixer Kingpin

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: Bot unable to reconnect
« Reply #5 on: December 14, 2006, 11:39:53 pm »
 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

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bot unable to reconnect
« Reply #6 on: December 15, 2006, 11:39:03 pm »
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.
BeBot Founder and Fixer Kingpin

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Bot unable to reconnect
« Reply #7 on: December 16, 2006, 12:57:20 am »
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.


Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: Bot unable to reconnect
« Reply #8 on: December 20, 2006, 05:47:05 pm »
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 :)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bot unable to reconnect
« Reply #9 on: December 21, 2006, 03:55:36 pm »
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.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 729
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal