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