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 serversDon'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
сервак перезагружается 1 или 2 раза потом зависает непонятным образом,тупо подключаюсь по удалёнке к серваку ничего не делаю и бац начинает сам перезагружаться почему незнаю, батник
@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.exe" ::Enter Your DayZServer_64.exe start parameters set "DAYZ_SA_PARAMS=-port=2302" "-mod=@BuildAnywhere_v3;@BulletStacksPlusPlusRedux;@CarCover;@Code Lock;@Ear-Plugs;@LittleQuieter;@MoreDoors;@Post-Apo Weather;@SchanaModGlobalChat;@SchanaModParty;@Simple Base;@SkyZ - Skybox Overhaul;@Stamina 2x;@Unknown Ghillie Mod;@VPPAdminTools;@CF;" "-servermod=" -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.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 Сервер запущен. Проверка запущен ли сервер через %%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 Запускаю сервер. 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
кто подскажет? что не то((( бесит уже караулить у компа(
Edited by 123newвставка кода файла в спец. тег для его вставки (see edit history)
Share this post
Link to post
Share on other sites