-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for quickly starting DS + 2x players
- Loading branch information
Showing
4 changed files
with
2,303 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@echo off | ||
cd .. | ||
rem create a loop | ||
:fullLoop | ||
|
||
rem Launch the HEMTT server | ||
hemtt.exe launch server | ||
|
||
rem Check if the process gives an error | ||
if errorlevel 1 goto armaClosed | ||
|
||
rem Sleep for 5 seconds | ||
timeout /t 5 >nul | ||
|
||
rem Launch the Arma 3 clients (2 clients) | ||
hemtt.exe launch player -i 2 -Q | ||
|
||
rem sleep for 5 seconds | ||
timeout /t 5 >nul | ||
|
||
rem Check every 1 second if Arma 3 is still running | ||
:loop | ||
tasklist /fi "imagename eq arma3_x64.exe" | find /i /n "arma3_x64.exe" >nul | ||
if errorlevel 1 goto armaClosed | ||
timeout /t 1 >nul | ||
goto loop | ||
:armaClosed | ||
|
||
rem Restart options | ||
ECHO 1.Restart only | ||
ECHO 2.Close | ||
ECHO. | ||
|
||
CHOICE /C 12 /M "Select an option: " | ||
IF ERRORLEVEL 2 GOTO stopDebug | ||
IF ERRORLEVEL 1 GOTO fullLoop | ||
|
||
:stopDebug | ||
exit |
Oops, something went wrong.