![]() If %timeMinute% lss 10 set timeMinute=0%timeMinute% ![]() If %timeHour% lss 10 set timeHour=0%timeHour% Set /A timeHour=newTime/60, timeMinute=newTime%%60 Set /A newTime=timeHour*60 + timeMinute + %secondsToRestart% Set cTime=%timeHour%:%timeMinute%:%timeSeconds% Rem Change this to the amount of Minutes you want the server to restart each time.Įcho Invalid Server Code, Press Any Key To Enter Another One.įor /F "tokens=1-3 delims=." %%a in ("%time%") do ( SETLOCAL EnableExtensions enabledelayedexpansion Like the time the server started, when its going to restart next and total restarts this off The command line options i added below are examples of what your command lines should look like, you can remove them and add your own options.Įach time the server restarts the command window will update telling you some information, The 240 below to the amount of MINUTES you desire. ![]() If you would like to restart the server in shorter or longer periods of time, you can change using the config you selected at the start. Your server will now completely restart every 4 hours from the time it was started. for the win double click the shortcut on your desktop and select which server config you want to use. now add your actual server command line options in the :StartArma3Server part againħ. Add your different server config option in the :SelectServerType part incrementing each config numberĥ. copy the below into the created.bat file.Ĥ. make a shortcut to your desktop from the. ![]() I just made this, its a dos batch file that will auto restart a local arma 3 server every 4 hours.ġ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |