-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserver_default.bat
21 lines (19 loc) · 988 Bytes
/
server_default.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=HaZeyHosting.com H2M Dedicated - Default
::Name of the config file the server should use. (default: server.cfg)
set cfg=server_default.cfg
::Port used by the server (default: 27017)
set port=27017
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
set gamepath=%cd%
::Enable auto restart so if the server shuts down it will restart it
set auto_restart=1
title H2M - %name% - Server restarter
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%) - (%time%) %name% server start.
:server
start /wait /abovenormal h2m-mod.exe "%gamepath%" -dedicated -memoryfix +exec "%cfg%" +set net_port %port% +map_rotate
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
if "%auto_restart%" == "1" goto server