Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
sh1vu

Создание двух серверов на одном хосте

Привет, подскажите пожалуйста как правильно поднять 2 сервера, с разными картами на одном пк? Один сервер с ливонией уже есть, как завести рядом чернорусь? Понимаю что на другом порту, но каком и самое главное мне нужно полностью клонировать папку dayz server чтобы там поднять чернорусь? или как?

Спасибо 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

@sh1vu Тут все просто, создаешь папку пример DayZServer_2 и кидаешь туда серверные файлы. Потом изменяешь DayZServer_x64.exe на DayZServer_x64_2.exe (пример), в батнике не забыть тоже изменить путь и DayZServer_x64 на DayZServer_x64_2. Ну и порты другие открыть.

Share this post


Link to post
Share on other sites



  • 0
13.07.2023 в 12:11, Irkutsk86 сказал:

@sh1vu Тут все просто, создаешь папку пример DayZServer_2 и кидаешь туда серверные файлы. Потом изменяешь DayZServer_x64.exe на DayZServer_x64_2.exe (пример), в батнике не забыть тоже изменить путь и DayZServer_x64 на DayZServer_x64_2. Ну и порты другие открыть.

Оказывается не все так просто, если сервер с BEC, то BEC просто отказывается запускаться, батник просто вечно перезапускает сервер и не запускает BEC. По сути имя сервера упоминается в bat файле и в config.cfg самого BEC. Т.е. меняю например имя сервера с DayZServer_x64.exe на DayZServer_x64_Chernarus.exe, указываею в батнике и конфиге и после этого BEC не запускается. Что только не пробовал, голова уже болит... Хоть виртуалки поднимай под каждый сервер

Share this post


Link to post
Share on other sites
  • 0

@sh1vu Скинь сюда батник и конфиг bec.

Может путь BattlEye в конфиге bec не верно указал.

Share this post


Link to post
Share on other sites
  • 0
 @echo off
 cd %~dp0
 set "batch_dir=%cd%"
TITLE Сервер Стартер
COLOR 0D
:: Variables::
::Enter Your DayZServer_64.exe path.
set "DAYZ_SA_SERVER_LOCATION=%batch_dir%"
::Enter Your DayZServer_64.exe name exe file.
set "DAYZ_SA_EXE=DayZServer_x64_Chernarus.exe"
::Enter Your DayZServer_64.exe start parameters
set "DAYZ_SA_PARAMS=-port=2312 "-mod=@CF;@Community-Online-Tools;@VPPAdminTools;@BuildAnywhere_v3" "-servermod=@AntiRaid" -config=Instance_1\server.cfg -cfg=Instance_1\basic.cfg -profiles=Instance_1 -user=Instance_1 -name=Server -dologs -adminlog -freezecheck -FilePatching -scriptDebug=true"
::Enter true for clean old logs undo start server or false for disable clean
set CleanLogsInStartServer_Enabled=true
::Enter dir name for clean old logs undo start server
set CleanLogsInStartServer_Dir=%batch_dir%\Instance_1
::Enter true for start with DZSALModServer.exe or false for disable
set DZSALModServer_Enabled=false
::Enter DZSALModServer path.
set "DZSALModServer_LOCATION=%batch_dir%"
::Enter DZSALModServer name exe file.
set "DZSALModServer_EXE=DZSALModServer.exe"
::Enter Your Bec path.
set "BEC_LOCATION=%batch_dir%\Instance_1\bec"
::Enter Your Bec.exe name exe file.
set "BEC_EXE=Bec_Chernarus.exe"
::Enter Your Bec.exe start parameters
set "BEC_PARAMS=-f Config.cfg"
::Enter time in seconds for repeat next check DayZ Server is enabled
set TIME_CHECK_DAYZ_SA_SECONDS=10
::Enter time in seconds for repeat next check BEC is enabled
set TIME_CHECK_BEC_SECONDS=10
::::::::::::::

echo Inspection
goto checksv
pause

::This Will check if your server is running on start.
:checksv
tasklist /FI "IMAGENAME eq %DAYZ_SA_EXE%" 2>NUL | find /I /N "%DAYZ_SA_EXE%">NUL
if "%ERRORLEVEL%"=="0" goto checkbec
cls
echo Сервер НЕ ЗАПУЩЕН! Пробую запустить сервер..
goto killsv

::This will check if your Bec is running.
:checkbec
tasklist /FI "IMAGENAME eq %BEC_EXE%" 2>NUL | find /I /N "%BEC_EXE%">NUL
if "%ERRORLEVEL%"=="0" goto loopsv
cls
echo БЕК НЕ ЗАПУЩЕН! Пробую запустить бек..
goto startbec

::This will check every 10 second if your server is still running.
:loopsv
FOR /L %%s IN (%TIME_CHECK_DAYZ_SA_SECONDS%,-1,0) DO (
    cls
    echo Сервер Chernarus 1pp запущен. Проверка запущен ли сервер через %%s секунд.. 
    timeout 1 >nul
)
goto checksv

::This will shutdown your Server and Bec When this task is asked.
:killsv
taskkill /f /im %BEC_EXE%
taskkill /f /im %DAYZ_SA_EXE%
goto startsv

::This will start your Server and open up the console.
::Dont forget to edit your Port, Path location of Battleye and your Profiles.
:startsv
cls
echo Запускаю сервер Chernarus 1pp.
timeout 3 >nul
cd "%DAYZ_SA_SERVER_LOCATION%"
if %CleanLogsInStartServer_Enabled% EQU true (
	DEL /F /Q "%CleanLogsInStartServer_Dir%\*.ADM" > nul
	DEL /F /Q "%CleanLogsInStartServer_Dir%\*.RPT" > nul
	DEL /F /Q "%CleanLogsInStartServer_Dir%\*.DMP" > nul
	DEL /F /Q "%CleanLogsInStartServer_Dir%\*.mdmp" > nul
	DEL /F /Q "%CleanLogsInStartServer_Dir%\*.log" > nul
)
if %DZSALModServer_Enabled% EQU true (
	cd "%DZSALModServer_LOCATION%"
	start "%DZSALModServer_LOCATION%\%DZSALModServer_EXE%" "%DAYZ_SA_SERVER_LOCATION%\%DAYZ_SA_EXE%" "%DAYZ_SA_PARAMS%"
) else (
	start "" "%DAYZ_SA_SERVER_LOCATION%\%DAYZ_SA_EXE%" "%DAYZ_SA_PARAMS%"
)
FOR /L %%s IN (%TIME_CHECK_BEC_SECONDS%,-1,0) DO (
    cls
    echo Инициализация, ждите %%s сек для инициализации Bec.. 
    timeout 1 >nul
)
goto startbec

::This will start your Bec and open up the console
:startbec
cls
echo Запускаю БЕК.
timeout 3 >nul
cd /d "%BEC_LOCATION%"
start "" "%BEC_LOCATION%\%BEC_EXE%" %BEC_PARAMS%
goto checksv 

Config
 

# 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 вашего сервера. Для сервера на том же ПК IP будет 127.0.0.1.
Ip = 127.0.0.1

# Set the port to the server. default port is 2302
# Укажите порт вашего сервера. Стандартный порт 2302.
Port = 2313

# Set the path to the BattlEye directory that is currently in use by the server.
# Укажите путь до папки с рабочим BattlEye, используемым сервером.
# BePath = C:\servers\MyServer\battleye
BePath = D:\Program\steamapps\common\DayZServer_Chernarus\Instance_1\BattlEye

# 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\*
# Укажите имя для папки с логами в директории BEC. Только имя, путь не надо!
LogDir = instance

# Set the path to your Admins.xml file containing your admins.
# Имя файла Admins.xml для настройки ваших админов и vip-слотов.
Admins = admins.xml

# Set the path to your Commands.xml file.
# Имя файла с работающим Commands.xml
Commands = commands.xml


# Детальная настройка!
#--------------------------------------------------------------------------------------------------------
[Misc]
#--------------------------------------------------------------------------------------------------------
# Set the path to the Scheduler.xml file.
# Имя файла с работающим Scheduler. Рекомендую не трогать!
Scheduler = Scheduler.xml

# 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.
# Параметр, устанавливающий тип бана для обнаруженных через BEC читеров! Рекомендуется 3.
Ban = 3

# Set the height & width of Becs console window
# Установка ширины и высоты размера окна BEC
ConsoleHeight	= 25
ConsoleWidth	= 70
# Set the color of the terminal. if not defined. 07 will be used as default
# Установите цвет сообщений в чате. Если не указано, установится 07 поумолчанию. Рекомендуется не трогать!
ConsoleColor	= 04
Color = 01

# Only allow english chars.
# Разрешить только английские символы в нике
AsciiNickOnly = True

# 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."
#  Если AsciiChatOnly стоит на True, вы можете указать, какие символы в чате будут запрещены
#  Каждый символ надо отделять запятой, верхний и нижний регистр символов надо указывать отдельно
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
#  Установите количество предупреждений за запрещённые фразы. -1 отключить, 0 - сразу кикать, 1 - одно предупреждение, потом кик
Warnings = -1

# Kick players who has listed chars in their name
#  Кикать игроков с указанными ниже символами в имени игрока
#  Поумолчанию было так:
# DisallowPlayerNameChars	= []{}()0123456789
DisallowPlayerNameChars	= ¨¤%&@£$€

# Min length, kicks players who has to short name.
#  Минимально разрешённая длина для ника (кол-во символов)
MinPlayerNameLength	= 3

# Max length, kicks players who has to long name.
#  Максимально разрешённая длина для ника (кол-во символов)
MaxPlayerNameLength	= 20

# 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
# Установите имя вашего exe файла сервера
# Не указывайте полный путь до файла сервера
# Я рекомендую не трогать параметр!
ServerExeName = DayZServer_x64_Chernarus.exe

# Set the path to the file containing whitelisted guids.
# Имя файла с GUID для вайтлиста. Поумолчанию отключено.
# Если хотите включить, сотрите # перед этим и следующим параметрами!
# WhiteListFile = WhiteList.txt

# Set custom whitelist kick message. Text must be in ascii letters.  MAX 58 CHARS. BE only does ascii on messages
# Сообщение, с которым кикает игрока, если он не в вайтлисте! Текст должен быть в ascii кдировке! Максимум 58 символов!
# Если хотите включить, сотрите # перед этим и предыдущим параметрами!
# WhileListKickMsg = you are not whitelisted on this server vk.com/dayz_rp1.

Timeout = 60

# Set path to the file containing a list of bad words. Note, Warnings must be enabled. 0 or more.
# Имя файла с запрещёнными фразами в чате (фразы на англ.). Передупреждения должны быть включены на 0 или больше.
WordFilterFile = BadWords.txt

# Only allow english chars to be typed on the chat. Note, Warnings must be enabled. 0 or more.
# Разрешить только английские фразы в чате
AsciiChatOnly = False

# Kick people with offensive names
# Имя файла с запрещёнными фразами в никнейме (фразы на англ.).
NickFilterFile = BadNames.txt

# If enabled. Bec will create seperate chat files for each channel along with the main file.
# Если включено, Bec создаст отдельные файлы логов чата для каждого канала вместе с основным файлом.
# Поумолчанию отключено (false - откл., true - вкл, # перед параметром - откл.)
ChatChannelFiles = true

# 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.
# Кик людей, доллго сидящих в лобби, или долго соединяющихся! Минимум 90 секунд! Установите 0, чтобы отключить опцию.
KickLobbyIdlers	= 0

# 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.
# Регулировка вип-слотов и админ-слотов на сервере
# -1 - отключено. 0 - только VIP слоты
# Если у вас на сервере выставлено 50 слотов, и вы хотите 5 слотов VIP - установите 45
# При вкл. смогут войти только те, кто указан в Admins.xml
SlotLimit = -1

# Set the message people will get when they try to connect and is not whitelisted. Text must be in ascii letters.
# Сообщение, с которым кикнет, если остались только вип-слоты и админ-слоты на сервере. Только в ascii кодировке
SlotLimitKickMsg = The Server has reached its player limit.

# The amount of time Bec will wait for the server to start up.
# Время в секундах, в течение которого bec будет пытаться подключиться к серверу, а потом выключится в случае неудачи!
Timeout = 30

# Регулировка чата
#--------------------------------------------------------------------------------------------------------
[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 isntant kick.
# If the number is higher than 0 players will be sent warnings.
# Установка количества строк, разрешённых в чате для разных каналов.
# Если: -1 то отключено, 0 кик сразу, больше 0 - предупреждение в чат, потом кик!
# Рекомендую не трогать!

Lobby = 30
Global = -1
Side = 7
Group = 9
Vehicle	= 11
Command	= 13
Commander = 15
Direct = 17


# Регулировка спама в чат! Не понял что эт и для чего!
# Не знаете - лучше не трогайте ;)
#--------------------------------------------------------------------------------------------------------
[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 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



# Прописывание банов в другие сервера сразу!
#--------------------------------------------------------------------------------------------------------
[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 = D:\server2\DayZSA046\dayzea.ChernarusPlus\Battleye\bans.txt
#BePath2 = c:\Server-3\BattlEye\bans.txt

 

Share this post


Link to post
Share on other sites
  • 0

@Irkutsk86 В общем вернул к стоковым значениям все, 2 сервера в одной папке, но папки самих серверов называются по разному. В общем все работает уже 4 рестарта пережили, все закрывается, открывается, логинится. Я без понятия как это работает, но это работает, возможно это твоя аура зарешала 😄 В общем буду смотреть, если опять нгачнет выпендриваться, без BEC сделаю сервер, ребутать сервер буду батником а уведомления через massage сделаю по таймеру подгоню, там единственный минус что рестарт сервера будет каждый раз сдвигаться ибо там таймер, а у бека "будильник". И если знаешь, подскажи как вывод сообщений от BEC в игре, цвет поменять, по стандарту белый. Хотелось как на оф серверах, красным сделать. Спасибо!

Share this post


Link to post
Share on other sites

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

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.