mirror of
https://git.chasehall.net/Chase/COD-Cfgs.git
synced 2025-06-08 01:38:06 -05:00
48 lines
1.5 KiB
Batchfile
48 lines
1.5 KiB
Batchfile
@echo off
|
|
:: T5 Startup Script
|
|
:: Features Auto-Restart upon server window closed.
|
|
:: By Chase (https://ChaseHall.net)
|
|
:: <3 BO1 Community.
|
|
|
|
|
|
:: Your Game Server Port.
|
|
:: Make sure you Port Forward both TCP & UDP.
|
|
set GamePort=28962
|
|
|
|
:: Map to start with
|
|
set Map=mp_nuked
|
|
|
|
:: Your server.cfg file in data.
|
|
:: This is where you edit your configs for your server(s)
|
|
set ServerFilename=server.cfg
|
|
|
|
|
|
:: Mod Support
|
|
:: Example: ModfolderName=mods/bots
|
|
:: No Mod: ModfolderName=
|
|
set ModFolderName=
|
|
|
|
|
|
:: Name of Server
|
|
:: (Used to title auto-restart cmd window)
|
|
:: **THIS IS NOT YOUR NAME THAT THE SERVER WILL SHOW IN THE SERVER LIST. SEE YOUR SERVER CFG FOR THAT. **
|
|
set name=T5 Server
|
|
|
|
|
|
:: If you wish to disable auto-restart, please comment everything out between BEGIN AUTO-RESTART and END AUTO-RESTART, then uncomment the NON-AUTO-RESTART.
|
|
:: BEGIN AUTO-RESTART
|
|
title %name% - Server Restarter
|
|
echo Server "%name%" will load %ServerFilename% and listen on port %GamePort% TCP/UDP!
|
|
echo To shut down the server, close this window first!
|
|
echo (%date%) - (%time%) %name% server start.
|
|
:server
|
|
start /wait /abovenormal t5m.exe -mp -console +set dedicated 2 +set net_port %GamePort% +set fs_game "%ModFolderName%" +exec %ServerFilename% +map %Map%
|
|
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
|
goto server
|
|
:: END AUTO-RESTART
|
|
|
|
|
|
:: BEGIN NON-AUTO-RESTART
|
|
::start t5m.exe -mp -console +set dedicated 2 +set net_port %GamePort% +set fs_game "%ModFolderName%" +exec %ServerFilename% +map %Map%
|
|
::exit
|
|
:: END-AUTO-RESTART |