thankyou
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 906 times)

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #15 on: May 31, 2017, 12:11:50 AM »
Which plugin is it that gives that welcome message?

xml for our ex ro2 firedaemon server. WorkingDir, Executable and Parameters are probaly what youneed, just change paths to match your setup!

Code: [Select]
<!-- Generated by FireDaemon Pro v3.5 GA (Build 2536) -->

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Service>
 <Program>
  <Name>b3_ro2</Name>
  <DisplayName>b3_ro2</DisplayName>
  <Description>B3 RO2</Description>
  <WorkingDir>D:\82ndab_b3_current\ro2</WorkingDir>
  <Executable>D:\Python27\python.exe</Executable>
  <Parameters>D:\82ndab_b3_current\b3_run.py -c D:\82ndab_b3_current\ro2\b3_ro2.xml</Parameters>
  <Delay>3000</Delay>
  <StartUpMode>0</StartUpMode>
  <ForceReplace>true</ForceReplace>
 </Program>
 <Options>
  <AffinityMask>0</AffinityMask>
  <Priority>0</Priority>
  <AppendLogs>true</AppendLogs>
  <EventLogging>true</EventLogging>
  <InteractWithDesktop>true</InteractWithDesktop>
  <PreLaunchDelay>0</PreLaunchDelay>
  <ConsoleApp>false</ConsoleApp>
  <CtrlC>0</CtrlC>
  <UponExit>1</UponExit>
  <UponFlap>0</UponFlap>
  <FlapCount>0</FlapCount>
  <UponFail>0</UponFail>
  <FailCount>0</FailCount>
  <ShutdownDelay>5000</ShutdownDelay>
  <ShowWindow>0</ShowWindow>
  <JobType>0</JobType>
  <IgnoreFlags>3</IgnoreFlags>
 </Options>
 <SMF>
  <SMFEnabled>true</SMFEnabled>
  <SMFFrequency>5000</SMFFrequency>
 </SMF>
 <Scheduling>
  <StartTime>00:00:00</StartTime>
  <EndTime>00:00:00</EndTime>
  <RunDays>127</RunDays>
  <MonthFrom>0</MonthFrom>
  <MonthTo>0</MonthTo>
  <MonthDay>0</MonthDay>
  <RestartFreq>7</RestartFreq>
  <RestartEvery>60</RestartEvery>
  <RestartDelay>0</RestartDelay>
  <RestartTime>00:00:00</RestartTime>
 </Scheduling>
 <DlgResponder>
  <Enabled>false</Enabled>
  <CloseAll>false</CloseAll>
  <CheckFrequency>5000</CheckFrequency>
  <IgnoreUnknowns>true</IgnoreUnknowns>
  <LogFile></LogFile>
  <Responses>
  </Responses>
 </DlgResponder>
 <Recovery>
  <FirstFailure>0</FirstFailure>
  <SecondFailure>0</SecondFailure>
  <SubSequent>0</SubSequent>
  <ResetFailCountAfter>0</ResetFailCountAfter>
  <RestartServiceDelay>0</RestartServiceDelay>
  <RestartComputerDelay>0</RestartComputerDelay>
  <Program></Program>
  <CommandLineParams></CommandLineParams>
  <AppendFailCount>false</AppendFailCount>
  <EnableActionsForStopWithErrors>false</EnableActionsForStopWithErrors>
  <SendMsg>false</SendMsg>
  <RebootMsg></RebootMsg>
 </Recovery>
</Service>

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #16 on: May 31, 2017, 12:28:04 AM »
Thank you for the xml.

The plugin is plugin_welcome

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #17 on: May 31, 2017, 04:14:53 AM »
Please post a new log, and the Welcome plugin config file.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #18 on: May 31, 2017, 10:56:07 AM »
Now I see that it's not actually the welcome plugin, it must be something else because it carries that UID to other plugins as well. 

https://pastebin.com/mNqRySW5

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #19 on: May 31, 2017, 03:22:52 PM »
Try changing line 134 in parsers/ro2.py from

'message': '%(uid)s %(message)s',

to

'message': '%(message)s',

and see if that effects anything else.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #20 on: May 31, 2017, 04:56:55 PM »
Yeah it worked ! I am gonna monitor it now and see if it crashes, thank you for all the time taken to fix those problems, I appreciate :)

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #21 on: May 31, 2017, 05:12:11 PM »
Is there a way for the bot to listen only to commands starting with exclamation mark ?

Because I see whenever someone writes in chat a random character, the bot will check if it's a command, for example:

  David Duke: "good idea should be running there everytime I respawn"#G:G5
  Admin: (Bot): Unrecognized command quot;good

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #22 on: May 31, 2017, 09:38:42 PM »
That's what it should be doing anyway, I'll take a look at it later.

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #23 on: June 01, 2017, 03:21:00 AM »
Could you post a log with a lot of chat showing this happening please?

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #24 on: June 01, 2017, 11:32:53 AM »
https://pastebin.com/sFsq76na

Hello. I looked now and it looks like the Chatlogger plugin is listening to other signs > < ! @ ^ " etc. 

You can search in the log for the "test1, test2, test3" etc.

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 restart when crashed
« Reply #25 on: June 01, 2017, 03:41:08 PM »
OK, its picking up on the html encoding that is done for the website, & is the start of the html code and is also the character that B3 uses for the "command_prefix_big" by default. If you change that in the plugin_admin config file you will have a lot less fake commands.

You can change the entries for command_prefix_big, command_prefix_loud and command_prefix_private to characters that players are less likely to use ( I think they could all be set to the same character, but you would have to test that) - you could even try setting them all to ! and see how RO2 responds to that.

I can't say that we have noticed any major issues in other games, but the html encoding issue has definitely made the issue worse for RO2.

Offline herron

  • Jr. Member
  • **
  • Posts: 40
Re: B3 restart when crashed
« Reply #26 on: June 01, 2017, 04:27:37 PM »
Will do! Thanks a lot for all the help and patience!

 


Rate this page +1 at Google Search