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
- 0
Проблема с модами, которые содержат пробелы
Asked by
SoarinSparkle
15 answers to this question
Recommended Posts
-
Our picks
Я перепробовал все, даже пытался менять батник, но ничего, даже в лаунчере последний
Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
Батник:
@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=@CF;@VPPAdminTools;@Mass'sManyItemOverhaul;@FIDOv PACK 4" "-servermod=@stamina" -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
вставка кода в обязательный тег для вставки (see edit history)
Share this post
Link to post
Share on other sites