iw7-mod/cfg/!start_mp_server.bat

31 lines
1.4 KiB
Batchfile
Raw Normal View History

2024-08-13 05:22:35 -04:00
@echo off
::///////////////////////////////////////////////////////////////////////
::/// IW7-Mod Server Configuration start-up file ///
::///////////////////////////////////////////////////////////////////////
::// This config best view with Notepad++ or other non-windows notepad //
::///////////////////////////////////////////////////////////////////////
::// Your edited server_zm.cfg in the "main" folder goes here //
::// This is were you edit your hostname, map & gamemodes from. //
::///////////////////////////////////////////////////////////////////////
set cfg=server.cfg
set port=27018
set name="IW7 MP 1"
set mod=
::///////////////////////////////////////////////////////////////////////
:://You're done!! WARNING!!! Don't mess with anything below this line //
::///////////////////////////////////////////////////////////////////////
set game_exe=iw7-mod.exe
title IW7 - %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.
cd /D %cd%
:server
start /wait /abovenormal %game_exe% -dedicated +set onlinegame 1 +set fs_game "%mod%" +set net_port "%port%" +exec %cfg% +map_rotate -nosteam +set g_hardcore 0 +set xblive_privatematch 0
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server