Sign in to follow this  
Followers 0
altair

Auto Restart BEC, Please help solve the problem!

5 posts in this topic

Posted (edited)

Hi guys! All done on the instructions, but it gives an error: Successful attempt to execute server Command '#kick, and many of these errors from 1 to 99. Please help find the cause!

instructions:

AutoRestart.bat

Spoiler

@echo off
color 0a
title Server Starter
:Serverstart
echo Launching Server
C: 
cd "C:\Arma3ServerExile"
echo Watching DTG Arma 3 Exile Server
start arma3server.exe -mod=@Exile; -servermod=@ExileServer;@A3XAI; -config=C:\Arma3ServerExile\@ExileServer\config.cfg -cfg=C:\Arma3ServerExile\@ExileServer\basic.cfg -name=ExileServer -port=2302 -profiles=ExileServer -autoInit -loadMissionToMemory -high
ping 127.0.0.1 -n 50 >NUL
echo Server with Exile has exited ... Restarting!
ping 127.0.0.1 -n 5 >NUL
cls
goto Serverstart

C:\Arma3ServerExile\BEC\Config   ( exile.cfg )

Spoiler

# This config file is only provided as an example file.
# Edit it to sute your needs.
# For more info on how to edit this file. use the Readme.txt file or visit http://www.ibattle.org/install-and-configure


#--------------------------------------------------------------------------------------------------------
[Bec]
#--------------------------------------------------------------------------------------------------------

# Set the ip to your server. normally 127.0.0.1 will be fine.
Ip = 127.0.0.1


# Set the port to the server. default port is 2302
Port = 2302


# Set the path to the BattlEye directory that is currently in use by the server.
BePath = C:\Arma3ServerExile\BattlEye


# Set the path to your Admins.xml file containing your admins.
Admins = A3_Admins.xml


# Set the path to your Commands.xml file.
Commands = Commands.xml

Scheduler.xml 

Spoiler

<Scheduler>
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>000230</start>
        <runtime>000230</runtime>
        <loop>-1</loop>
        <cmd>#unlock</cmd>
    </job>
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>000245</start>
        <runtime>000245</runtime>
        <loop>0</loop>
        <cmd>#unlock</cmd>
    </job>    
    <job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>053000</start>
        <runtime>053000</runtime>
        <loop>5</loop>
        <cmd>say -1 Server will restart in 30 minutes.</cmd>
    </job>
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>054000</start>
        <runtime>054000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 20 minutes.</cmd>
    </job>
    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>054500</start>
        <runtime>054500</runtime>
        <loop>3</loop>
        <cmd>say -1 Server will restart in 15 minutes.</cmd>
    </job>
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>054930</start>
        <runtime>054930</runtime>
        <loop>-1</loop>
        <cmd>say -1 Server has been locked for additional players.</cmd>
    </job>
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>054945</start>
        <runtime>054945</runtime>
        <loop>-1</loop>
        <cmd>#lock</cmd>
    </job>
    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>055000</start>
        <runtime>055000</runtime>
        <loop>-1</loop>
        <cmd>say -1 Server will restart in 10 minutes.</cmd>
    </job>
    <job id='8'>
        <day>1,2,3,4,5,6,7</day>
        <start>055200</start>
        <runtime>055200</runtime>
        <loop>-1</loop>
        <cmd>say -1 Please logout now to ensure all data is saved correctly.</cmd>
    </job>
    <job id='9'>
        <day>1,2,3,4,5,6,7</day>
        <start>055400</start>
        <runtime>055400</runtime>
        <loop>-1</loop>
        <cmd>say -1 Players will be flushed from server shortly, restart in 6 minutes.</cmd>
    </job>
    <job id='10'>
        <day>1,2,3,4,5,6,7</day>
        <start>000800</start>
        <runtime>001500</runtime>
        <loop>-1</loop>
        <cmd>say -1 [ISAF] Visit us online;</cmd>
    </job>
    <job id='11'>
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>001530</runtime>
        <loop>-1</loop>
        <cmd>say -1 [ISAF] Join us on Teamspeak;</cmd>
    </job>
    <job id='12'>
        <day>1,2,3,4,5,6,7</day>
        <start>001100</start>
        <runtime>001600</runtime>
        <loop>-1</loop>
        <cmd>say -1 [ISAF] We're looking for Game Admins, submit your application on our website today!</cmd>
    </job>
    <job id='13'>
        <day>1,2,3,4,5,6,7</day>
        <start>001200</start>
        <runtime>001630</runtime>
        <loop>-1</loop>
        <cmd>say -1 [ISAF] Did you know: All bug reports and refund claims must be submitted to us on our website!</cmd>
    </job>
    <job id='14'>
        <day>1,2,3,4,5,6,7</day>
        <start>060030</start>
        <runtime>060030</runtime>
        <loop>-1</loop>
        <cmd>#shutdown</cmd>
    </job>
</Scheduler>  

 

 

5555.jpg

Edited by altair

Share this post


Link to post
Share on other sites

Thanks for using my scheduler.xml :D

But that is not an error, it's performing a playerflush, it's working as it should ^_^

Share this post


Link to post
Share on other sites
Advertisement
38 minutes ago, ka0s said:

Thanks for using my scheduler.xml :D

But that is not an error, it's performing a playerflush, it's working as it should ^_^

The problem is! It restarts the server several times in a row, see the screenshot in the task manager in the process! How to solve it, why he restarts the server?

eee2.jpg

Share this post


Link to post
Share on other sites
19 minutes ago, altair said:

 

Ahh I see, please see your PM. 

Share this post


Link to post
Share on other sites

Posted (edited)

13 hours ago, ka0s said:

Ahh I see, please see your PM. 

With constant running the server, such as happened to understand, for it corresponds to the string,

echo Server with Exile has exited ... Restarting!
ping 127.0.0.1 -n 5 >NUL,

where is 5, is 5 seconds after the start-up is restarted, this value should be put under the restart the server for example 4 hours is 14400 seconds, after this time will restart and restart! But there is another Problem, after the new restart, the previous server continues to run. How do whatever he completed the job?

AutoRestart.bat

Spoiler

@echo off
color 0a
title Server Starter
:Serverstart
echo Launching Server
C: 
cd "C:\Arma3ServerExile"
echo Watching DTG Arma 3 Exile Server
start arma3server.exe -mod=@Exile; -servermod=@ExileServer;@A3XAI; -config=C:\Arma3ServerExile\@ExileServer\config.cfg -cfg=C:\Arma3ServerExile\@ExileServer\basic.cfg -name=ExileServer -port=2302 -profiles=ExileServer -autoInit -loadMissionToMemory -high
ping 127.0.0.1 -n 60 >NUL
echo Server with Exile has exited ... Restarting!
ping 127.0.0.1 -n 14400 >NUL
cls
goto Serverstart

@echo off

:initialize
cls
echo Killing Arma 3 Server
taskkill /IM arma3server.exe /C
echo Done!
timeout 14400

 

Edited by altair

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.