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

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

Author Topic: bot wont reconnect if crashed.  (Read 3017 times)

0 Members and 2 Guests are viewing this topic.

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
bot wont reconnect if crashed.
« 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

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Re: bot wont reconnect if crashed.
« Reply #1 on: April 22, 2006, 12:43:06 pm »
Are you running the start.php or the bot.php?

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: bot wont reconnect if crashed.
« Reply #2 on: April 22, 2006, 02:11:08 pm »
yea i get that also, and i use windows so i use the bat file

Offline Jarras

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: bot wont reconnect if crashed.
« Reply #3 on: April 22, 2006, 07:05:29 pm »
Had the same problem, but when I was speaking to malosar he suggested a program to make the bots run as a service and everything works perfectly now.

MatHack

  • Guest
Re: bot wont reconnect if crashed.
« Reply #4 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.

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
Re: bot wont reconnect if crashed.
« Reply #5 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

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: bot wont reconnect if crashed.
« Reply #6 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.
Eternalist
General of The Syndicate

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: bot wont reconnect if crashed.
« Reply #7 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   :-\
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

* Who's Online
  • Dot Guests: 160
  • 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