Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

Author Topic: B3 restart when crashed  (Read 764 times)

Offline herron

  • Jr. Member
  • **
  • Posts: 40
B3 restart when crashed
« on: May 26, 2017, 01:40:33 PM »
I am running b3 bot 1.10.10 for windows. I run it through the b3_run.exe

Sometimes it crashes, Press enter to exit.
How can I make the bot restart by itself if it crashed ?
I tried running it from cmd like : cd b3 -> b3_run.exe --restart but it doesn't work.

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #1 on: May 28, 2017, 05:41:03 PM »
We use Firedaemon, but you could probably use a BAT file that checks to see if the bot is still running every so often, and restarts it if it isn't.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #2 on: May 28, 2017, 07:14:52 PM »
I installed Firedaemon as well, and have the b3 as a service, however I don't know how to configure it when it crashes.

Basically the console applications writes "Press ENTER to exit" or something like that. So, it crashed but Firedaemon keeps it running. Any suggestion ?

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #3 on: May 28, 2017, 08:02:36 PM »
Does it show any error in the log or the console?

Please post any errors that show up.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #4 on: May 28, 2017, 11:39:34 PM »
https://pastebin.com/bKbYuKzK

This is the last part.
I can post a full log, but I don't know where to paste, it's around 30k lines...

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #5 on: May 29, 2017, 12:44:28 AM »
Can you post a screenshot of the console ?

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #6 on: May 29, 2017, 01:47:35 AM »
Yup attached

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #7 on: May 29, 2017, 05:38:21 AM »
Are you able to install python and run the source version?

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #8 on: May 29, 2017, 11:31:33 AM »
Well if there is no other solution, yes :)

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #9 on: May 29, 2017, 04:00:36 PM »
I installed the python version and copied the xml + plugins. So far it's working good but it's too early to see if anything shows up. I will post if it crashes again. Do you run FireDaemon with the python version ?

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #10 on: May 29, 2017, 08:08:44 PM »
Yes, we use Firedaemon with the Python version.

I am hoping that we will get an error message if it crashes now so we can find out what is going on.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #11 on: May 29, 2017, 09:57:40 PM »
Yep, will post as soon as something shows up, so far so good :)

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #12 on: May 30, 2017, 12:56:12 PM »
Yep it crashed again, now there is more info but I don't know what's wrong.

https://pastebin.com/nGKBM6BV
« Last Edit: May 30, 2017, 12:59:04 PM by herron »

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2610
Re: B3 restart when crashed
« Reply #13 on: May 30, 2017, 03:49:45 PM »
That error should be fixed in the latest version of the parser, could you update to 1.10.11 from here.

https://forum.bigbrotherbot.net/downloads/?sa=view;down=185

 It happens when someone types a chat message that is blank

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #14 on: May 30, 2017, 11:30:20 PM »
OK I installed the 1.10.11 version, works ok, and tested the empty strings, bot doesn't crash.
However the problem now is with welcoming players, the bot adds the UniqueID of the player in front of the bot message like this:

Admin: 0x011000010100870A (Bot): Welcome back, strudel, you've played here 53 times. Thank you!


Also, one more question: how do you run the b3_run.py through Firedaemon ?
« Last Edit: May 30, 2017, 11:32:16 PM by herron »

 


Rate this page +1 at Google Search