• 0
waschbär

Batch File + BEC Restart dont work

Question

Hi com,

i wanted to install BEC on my Server an restart it with my batch file. I´ve tryed everything for hous now but it wont work -.-

---------------------------------------------

20:38:28 : Checking for new Bec version...
20:38:32 : Connecting to Battleye server 80.82.222.234:2302
20:38:34 : No Valid response. Trying to reconnect.!
20:38:34 : Could not check for Bec update!
20:38:38 : No Valid response. Trying to reconnect.!

---------------------------------------------

 

Ive changed Ports, IP´s, Path of BE + BEC, insert IP+webside to block version request

BEC Config.cfg

Spoiler

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

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


# 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:\Users\Administrator\Desktop\Server\BattlEye\


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


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


#--------------------------------------------------------------------------------------------------------
[Misc]
#--------------------------------------------------------------------------------------------------------

# Auto run loadbans when ban file(s) changes.
# 1 or True will turn it on.
# 0 or False will turn it off.
# If this parameter is not defined it will use False as default.

AutoLoadBans = True

# Set which type of hacks that will be added to your banlist.
# 0 = none. 1 = GameHack. 2 = Battleye Hack. 3 = both GameHack & Battleye Hack.
# value 3 is set as default if this parameter is not defined.
Ban = 3


# Set the names of your custom ban files, Separate each file with "," (comma): file1.txt, banfile2.txt, newfile.txt
# If you do not use any custom ban files. delete this option or leave this option commented.
# This option will check ban files for changes and automatic do a loadbans file when a file gets changed
# Do not specify the default bans.txt file here.
BeCustomBanFiles = Bans1.txt, file2.txt, file3.txt


# Set the height & width of Becs console window
ConsoleHeight    = 45
ConsoleWidth    = 165


# Only allow english chars.
AsciiNickOnly = false


# Only allow english chars to be typed on the chat. Note, Warnings must be enabled. 0 or more.
AsciiChatOnly = false


# If AsciiChatOnly is set True. you can define none english chars that will be accepted.
# You separate each char with a , "note you need to define lower and upper case of the chars."
IgnoreChatChars    = €,£,æ,Æ,ø,Ø,å,Å,ö,ä,ü,ß


# Set the amount of warnings a player will get before kicked. -1 is disabled. 0 instant kick
# 1 == one warning on a bad word. next bad word results in kick
Warnings = 3


# Kick players who has listed chars in their name when they connect
DisallowPlayerNameChars    = []{}()0123456789


# Min length, kicks players who has to short name when they connect.
MinPlayerNameLength    = 3


# Max length, kicks players who has to long name when they connect.
MaxPlayerNameLength    = 16


# Set the name of your Arma3server.exe if it has been renamed from arma3server.exe to something else!
# if the exe has its original name. comment it out.
# DO NOT SET FULL PATH TO THE EXE FILE
ServerExeName = Arma3server.exe


# Set path to the file containing a list of bad words. Note, Warnings must be enabled. 0 or more.
WordFilterFile = BadWords.txt


# Set the path to the file containing whitelisted guids.
WhiteListFile = WhiteList.txt


# Set custom whitelist kick message. Text must be in ascii letters.  MAX 58 CHARS. BE only does ascii on messages
WhiteListKickMsg = You are not whitelisted on this server.


# Kick people with offensive names
NickFilterFile = BadNames.txt


# Set the path to the Scheduler.xml file.
#Scheduler = Scheduler.xml


# Kick people who are idleing in the lobby, kick will happen after given time, Min time is 90 sec. use 0 to disable this function.
KickLobbyIdlers    = 0


# If enabled. Bec will create separate chat files for each channel along with the main file.
#ChatChannelFiles = false

# Set the amount of Normal players who can connect. Set it to -1 to disable it.
# If set to 0 it means only players who are listed in the Admins.xml, (or whatever you call it) will be able to connect to the server.
# Quick Example 1: server can holed 50 players. and you want to reserve 5 slots for admins. then set SlotLimit to 45.
# Quick Example 2: server can holed 50 players. and you want to reserve 5 slots for admins and 5 slots for friends. then set SlotLimit to 40,
# AND edit your admins.xml. ADD in all your frineds guid and remaining data, put them in group example 100. or whatever you feel likt.
# by using this method you can give some of your friends some access to some commands if you like or none.
# in general this is works like .Whitelisting X player slots for admins and friends, while leaving the remaining Y slots for public.
SlotLimit = -1

# Set the message people will get when they try to connect and is not whitelisted. Text must be in ascii letters.
SlotLimitKickMsg = The Server has reached its player limit.


# The amount of time Bec will wait for the server to start up.
Timeout = 80


#--------------------------------------------------------------------------------------------------------
[Reporter]
#--------------------------------------------------------------------------------------------------------
# Reporter account. Fill in the username and password for your reporter account.
# GameHacks, BattlEye Hacks will be reported to a database. all players who connect will also be checked against this database.

# Set the Username for your account
#User =


# Set the Password for your account
#Password =


#--------------------------------------------------------------------------------------------------------
[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 instant kick.
# If the number is higher than 0 players will be sent warnings.

Lobby = -1
Global = -1
Side = -1
Group = -1
Vehicle    = -1
Command    = -1
Commander = -1
Direct = -1


#--------------------------------------------------------------------------------------------------------
[ChatSpam]
#--------------------------------------------------------------------------------------------------------

# Set max amount of chat lines per channel allowed within given time frame.
# Set the values to 0 to disable this function(s)

# Quick Example:
# Lobby = 5
# Lobby_Time_Lower = 10
# Lobby_Time_Upper = 15

# If the time between each new chatlines from a player is less than CHANNEL_Time_Lower the spam counter increases by + 1.
# Consider the CHANNEL (Lobby) as the spam counter.
# When a player has (CHANNEL - 1) in spam counting. a warning will be sent to whom it may concern.
# If the time between each new chatline from the player is Greater than CHANNEL_Time_Lower and Less than CHANNEL_Time_Upper the spam counter stay as it is.
# If the time since the last chatline is greater then CHANNEL_Time_Upper the spam counter is reset to 1.
# To get optimal result play around a bit with the values on your server.

Lobby = 0
Lobby_Time_Lower = 0
Lobby_Time_Upper = 0

Global = 0
Global_Time_Lower = 0
Global_Time_Upper = 0

Side = 0
Side_Time_Lower    = 0
Side_Time_Upper    = 0

Group = 2
Group_Time_Lower = 1
Group_Time_Upper = 3

Vehicle    = 0
Vehicle_Time_Lower = 0
Vehicle_Time_Upper = 0

Command = 0
Command_Time_Lower = 0
Command_Time_Upper = 0

Commander = 0
Commander_Time_Lower = 0
Commander_Time_Upper = 0

Direct = 0
Direct_Time_Lower = 0
Direct_Time_Upper = 0

 

 

BeServer.cfg

Spoiler

RConPassword *HIDDEN*
RConIP 80.82.222.234
RConPort 2307

 

Restart.bat

Spoiler

@echo off
::MAKE SURE ALL TASKS ARE REALLY STOPPED

taskkill /f /fi "status eq not responding" /im arma3server.exe
taskkill /f /im arma3server.exe
timeout 1

::IF YOU PLAY ON SAME PC AS SERVER, SOMETIMES RESTARTS GET HUNG UP BECAUSE OF IT SO MAKE SURE TO KILL CLIENTSIDE TOO, I DONT, BUT JUST IN CASE YOU DO

taskkill /f /fi "status eq not responding" /im arma3.exe
taskkill /f /im arma3.exe
timeout 1

:: KILL BATTLEYE IF IT ISN'T ALREADY
taskkill /im Bec.exe

::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS
taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat
echo Make sure all is clear

echo Restarting Battleye

::RESTARTING BATTLEYE
set becpath="C:\Users\Administrator\Desktop\Server\BEC"
cd /d %becpath%
start "" /min "Bec.exe"  -f Config.cfg
timeout 3
echo Battleye has started..
echo.
echo.
echo Starting ARMA 3 Server...

::RESTARTING THE ARMA 3 SERVER BE SURE TO EDIT THIS TO YOUR SERVER .EXE LOCATION -NOTE ALSO THIS IS WHERE YOU DEFINE WHERE YOU CONFIG.CFG IS
cd C:\Users\Administrator\Desktop\Server
timeout 3
start "Arma3" /min /wait arma3server.exe -config=config.cfg -cfg=basic.cfg -mod=@Exile;@Ryanzombies -servermod=@ExileServer -BePath=BattlEye -autoInit
timeout 6
echo ARMA 3 Server has started

:: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET
set ServerMonitorPath="C:\Users\Administrator\Desktop\Server"
cd /d %ServerMonitorPath%-
start "" "servermonitor.bat"
echo Server Monitor has started. Have Fun
timeout 5
exit

 

Edited by waschbär

Share this post


Link to post
Share on other sites

56 answers to this question

  • 0

I'm not saying its not possible, but the better question is "why do you want to use BEC for your server?"

There is already warning for restarts, auto shutdown, and lock unlock via both Exile config and Infistar.

I can provide you a very effective way for auto restarts in a simple 5 line BAT file.

Auto messages that are configured by you in a single file that runs on the clients so no matter when they log in they get the same messages.

Please answer this question so i can tell if my solution will work, before posting all the details.

Why do you want to use BEC for your server?

Share this post


Link to post
Share on other sites
  • 0
14 minutes ago, GamersRoost said:

I'm not saying its not possible, but the better question is "why do you want to use BEC for your server?"

There is already warning for restarts, auto shutdown, and lock unlock via both Exile config and Infistar.

I can provide you a very effective way for auto restarts in a simple 5 line BAT file.

Auto messages that are configured by you in a single file that runs on the clients so no matter when they log in they get the same messages.

Please answer this question so i can tell if my solution will work, before posting all the details.

Why do you want to use BEC for your server?

I thought there were no better way then BEC. Ive tryed restarts with infistar but sometimes server dont restart when no player was online on the server. For example i set auto restart to 3h and last player leaved server at 01:00 the server didn´t restart. when i connect to the server at 07:00 i was kicked and server restarted.

maybe my settings where wrong?! infistar was just sending one message in top of the screen for the last 30 minutes to restart "restart in 30 minutes"

Infistar Config

Spoiler

class infiSTAR_RESTART_SYSTEM {
    enableSystem = "true";

    USE_RESTART_TIME_IN_M = "true";
    RESTART_TIME_IN_M = 180;                /* restart time in minutes (default: 180min == 3 hours) */
    TIME_FUNCTION_USED = "diag_tickTime";    /* diag_tickTime (starts with arma3server.exe), time (starts with mpmission init) */


    USE_RESTART_FIXED_TIME_ARRAY = "false";
    RESTART_TIMES[] = {    /* {hour,minute} .. put in the times when your server is supposed to restart (real time). */
        {17,30},
        {18,00},
        {18,30},
        {09,00},
        {12,00},
        {15,00},
        {18,00},
        {21,00}
        };

    USE_SHUTDOWN = "true";
    SERVER_END_FUNCTION = "#restartserver";    /* SERVER_END_FUNCTION -> #shutdown or #restartserver */
    RESTART_WARNING_SOUND = "air_raid";    /* for example: Alarm or air_raid */

    RESTART_IN_X_ARRAY[] = {20,15,10,5,3,2,1};    /* Announce the a restart x mins before it happens (x stands for each number) */

 Btw im using an V-Server (windows) and atm im starting my server with an batch file

Share this post


Link to post
Share on other sites
Advertisement
  • 0

EXAMPLE:

Auto messages:

In Initplayerlocal.sqf:

ExecVM "Automessages.sqf";

Spoiler

systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
//systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
//    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE ');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:]YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
    
systemchat ('[ADMIN:] YOU MESSAGE HERE');     sleep 180;   
   

Place one file in mission file, call it from initplayerlocal.sqf WAY easier than using XML Markup for messages.

SERVER RESTARTS:

In your bat file:

Spoiler

@echo off
color 0a
title Exile Server Monitor
:Serverstart
echo Launching Exile Server now
C:
cd "SERVER PATH HERE"

timeout 1
echo Exile Cherno Server Starting !
start "Arma3" /min /wait arma3server.exe -mod=@exile; -servermod=@exileserver; -config=YOURPATH\config.cfg -port=2302 -BEPath=YOURPATH\Battleye  -profiles=RPT_Files -cfg=YOURPATH\@ExileServer\basic.cfg -name=Exile_Server -autoinit

CLS

goto Serverstart

And that's it! Too good to be true? Nope. It's that simple. Many people try so hard to make that as complicated as possible... That's all i have used for years. works flawlessly.

Maybe consider this method before going down the BEC road.

One thing to note is the BeServer.CFG content.. If you want to use RCCON youll need to define a port and password in this file in your Battleye folder.

Example:

rconPassword password
RConport 3306

 

 

 

 

 

 

Edited by GamersRoost

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, waschbär said:

I thought there were no better way then BEC. Ive tryed restarts with infistar but sometimes server dont restart when no player was online on the server. For example i set auto restart to 3h and last player leaved server at 01:00 the server didn´t restart. when i connect to the server at 07:00 i was kicked and server restarted.

maybe my settings where wrong?! infistar was just sending one message in top of the screen for the last 30 minutes to restart "restart in 30 minutes"

Infistar Config

  Hide contents

class infiSTAR_RESTART_SYSTEM {
    enableSystem = "true";

    USE_RESTART_TIME_IN_M = "true";
    RESTART_TIME_IN_M = 180;                /* restart time in minutes (default: 180min == 3 hours) */
    TIME_FUNCTION_USED = "diag_tickTime";    /* diag_tickTime (starts with arma3server.exe), time (starts with mpmission init) */


    USE_RESTART_FIXED_TIME_ARRAY = "false";
    RESTART_TIMES[] = {    /* {hour,minute} .. put in the times when your server is supposed to restart (real time). */
        {17,30},
        {18,00},
        {18,30},
        {09,00},
        {12,00},
        {15,00},
        {18,00},
        {21,00}
        };

    USE_SHUTDOWN = "true";
    SERVER_END_FUNCTION = "#restartserver";    /* SERVER_END_FUNCTION -> #shutdown or #restartserver */
    RESTART_WARNING_SOUND = "air_raid";    /* for example: Alarm or air_raid */

    RESTART_IN_X_ARRAY[] = {20,15,10,5,3,2,1};    /* Announce the a restart x mins before it happens (x stands for each number) */

 Btw im using an V-Server (windows) and atm im starting my server with an batch file

    USE_SHUTDOWN = "true";


    SERVER_END_FUNCTION = "#restartserver";    /* SERVER_END_FUNCTION -> #shutdown or #restartserver */ THIS would need to be #shutdown instead of #restartserver with my method
    RESTART_WARNING_SOUND = "air_raid";    /* for example: Alarm or air_raid */

    RESTART_IN_X_ARRAY[] = {20,15,10,5,3,2,1};    /* Announce the a restart x mins before it happens (x stands for each number) */

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Ok nice thank you. Can you show me your Infistart Restart settings? For me the Fixed Time array dont work very well. Server restarted but not at the times i set

Share this post


Link to post
Share on other sites
  • 0
4 minutes ago, waschbär said:

Ok nice thank you. Can you show me your Infistart Restart settings? For me the Fixed Time array dont work very well. Server restarted but not at the times i set

certainly:

Spoiler

class infiSTAR_RESTART_SYSTEM {
    enableSystem = "true";

    USE_RESTART_TIME_IN_M = "false";
    RESTART_TIME_IN_M = 0;                /* restart time in minutes (default: 180min == 3 hours) */
    TIME_FUNCTION_USED = "diag_tickTime";    /* diag_tickTime (starts with arma3server.exe), time (starts with mpmission init) */


    USE_RESTART_FIXED_TIME_ARRAY = "true";
    RESTART_TIMES[] = {    /* {hour,minute} .. put in the times when your server is supposed to restart (real time). 4 hour restarts defined here for GamersRoost */
        {00,00},
        {04,00},
        {08,00},
        {12,00},
        {16,00},
        {20,00}
        
    };


    USE_SHUTDOWN = "true";
    SERVER_END_FUNCTION = "#shutdown";    /* SERVER_END_FUNCTION -> #shutdown or #restartserver */
    RESTART_WARNING_SOUND = "Alarm";    /* for example: Alarm or air_raid */
};

 

 

Share this post


Link to post
Share on other sites
  • 0
5 minutes ago, waschbär said:

Ok i will test it =) Thanks very much!

One part that i left as c: in the bat file MAY need to be changed. If you want, i can write the bat file for you based off of what your bat file is above. Just let me know.

Josh.

 

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, waschbär said:

Ok i will test it =) Thanks very much!

I just did it.

Save this as your Start.bat file

Spoiler

@echo off
color 0a
title Exile Server Monitor
:Serverstart
echo Launching Exile Server now
C:
cd "C:\Users\Administrator\Desktop\Server"

timeout 1
echo Exile Cherno Server Starting !
start "Arma3" /min /wait arma3server.exe -config=config.cfg -cfg=basic.cfg -mod=@Exile;@Ryanzombies -servermod=@ExileServer -BePath=BattlEye -autoInit
CLS

goto Serverstart

 

 

Share this post


Link to post
Share on other sites
  • 0
12 minutes ago, GamersRoost said:

I just did it.

Save this as your Start.bat file

  Hide contents

@echo off
color 0a
title Exile Server Monitor
:Serverstart
echo Launching Exile Server now
C:
cd "C:\Users\Administrator\Desktop\Server"

timeout 1
echo Exile Cherno Server Starting !
start "Arma3" /min /wait arma3server.exe -config=config.cfg -cfg=basic.cfg -mod=@Exile;@Ryanzombies -servermod=@ExileServer -BePath=BattlEye -autoInit
CLS

goto Serverstart

 

 

Yeah got that. But there where no restart for me atm. Its 21:34 now

AHAT_CONFIG

Spoiler

class infiSTAR_RESTART_SYSTEM {
    enableSystem = "true";

    USE_RESTART_TIME_IN_M = "false";
    RESTART_TIME_IN_M = 180;                /* restart time in minutes (default: 180min == 3 hours) */
    TIME_FUNCTION_USED = "diag_tickTime";    /* diag_tickTime (starts with arma3server.exe), time (starts with mpmission init) */


    USE_RESTART_FIXED_TIME_ARRAY = "true";
    RESTART_TIMES[] = {    /* {hour,minute} .. put in the times when your server is supposed to restart (real time). */
        {24,00},
        {06,00},
        {09,00},
        {12,00},
        {15,00},
        {21,30},
        {21,40},
        {22,00}
        };


    USE_SHUTDOWN = "true";
    SERVER_END_FUNCTION = "#shutdown";    /* SERVER_END_FUNCTION -> #shutdown or #restartserver */
    RESTART_WARNING_SOUND = "air_raid";    /* for example: Alarm or air_raid */

    RESTART_IN_X_ARRAY[] = {30,20,15,10,5,2,1};    /* Announce the a restart x mins before it happens (x stands for each number) */
};

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.