Jump to content
  • 0

BEC auto restart help


alexm561

Question

hello dayz ppl I've been trying to get BEC working for my server auto restart and when i run it I get an error message Missing the -f switch need config file to start. 

 

I have BEC in a folder on my desktop and i tried following these steps  

 

but cant find  Arma 2 Folder / @dayzcc_config  / 1 / 

 

and it wont let me do this either: Create a shortcut of BEC.exe (same folder) and add on target -f Config.cfg (Rename the shortcut to bec_1 )

so please help

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Download BEC and put it in your Arma root directory.

Then edit the scheduler.xml and use my post here :

(use the proper paths).

Then create that .bat file i posted there and add the code inside (remove the .sql part of it, its for wamp database backup)

 

My Bec\config.cfg looks like this. (change the folder paths)

# 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. normaly 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:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\instance_11_Chernarus\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


# Set a name for the directory where the logs will be located. 
# Do not set a path. only a name. since the logs will be in X:\....\Bec\Log\Name\*
LogDir = DayZ_1_Epoch



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

# Set the color of the terminal. if not defined. 07 will be used as default
ConsoleColor	= 03
ConsoleHeight	= 45
ConsoleWidth	= 145

# Only allow english chars.
#AsciiNickOnly = True


# Kick players who has listed chars in their name
#DisallowPlayerNameChars	= [](){}<>/\^|§!#%&@£¤¨


# Max length a player name. kicks players who has to long name.
MaxPlayerNameLength	= 20


# Set the name of your armaserver.exe if it has been renamed from armaoaserver.exe.
# if the exe has its originale name. comment it out.
ServerExeName = arma2oaserver.exe


# Set the amount of warnings a player will get before kicked. -1 is disabled. 0 instant kick
#Warnings = 4


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


# If AsciiChatOnly is set True. you can define none english chars that will be accepted.
#IgnoreChatChars	= æøå


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


# Kick people with offensive names
#NickFilterFile = BadNames.txt


# Set the amount of time Bec will wait on the server on startup.
Timeout = 45

# 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	= 600


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


# 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 hold 50 players. and you want to reserve 5 slots for admins. then set SlotLimit to 45.
# Quick Example 2: server can hold 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. 
# in general this is works like .Whitelisting X player slots for admins and friends, while leaving the remaining Y slots for public.
#SlotLimit = 1


# Teamspeak 3 Queryer. will notify admins about kicks,bans,hacks etc. 
# Ts3 clients who will recive the pm's must be defined in a xml file. 
#Ts3 = Ts3.xml


#--------------------------------------------------------------------------------------------------------
[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 consern.
# 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 spamcounter 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


#--------------------------------------------------------------------------------------------------------
[Heartbeat]
#--------------------------------------------------------------------------------------------------------

# If your server is running multiple servers, you can add in the path to the other ban files.
# Once a ban is done on the current server. the ban will also be added to the other ban files defined.
# An alternative for this is by doing linking of the files. 
#BePath1 = C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\instance_11_Chernarus\BattlEye\bans.txt

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...