mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-22 17:25:43 +00:00
45 lines
1.9 KiB
Batchfile
45 lines
1.9 KiB
Batchfile
@echo off
|
|
::Paste the server key from https://platform.plutonium.pw/serverkeys here
|
|
set key=
|
|
::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
|
|
set rcon_password=
|
|
::Name of the config file the server should use.
|
|
set cfg=server.cfg
|
|
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
|
set name=PlutoniumT5MP Bot Warfare
|
|
::Port used by the server (default: 28960)
|
|
set port=28967
|
|
::What ip to bind too
|
|
set ip=0.0.0.0
|
|
::Mod name (default "")
|
|
set mod=
|
|
:: current dir of this .bat file
|
|
SET mypath=%~dp0
|
|
SET mypath=%mypath:~0,-1%
|
|
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS! %cd%
|
|
set gamepath=%mypath%
|
|
::Your plutonium install path (leave default!)
|
|
set pluto_path=%localappdata%\Plutonium
|
|
:: Gamemode; oneof t4sp, t4mp, t5sp, t5mp, iw5mp, t6mp, t6zm
|
|
set pluto_game_mode=t5mp
|
|
:: Other things to send to cmd
|
|
set cmd_extras=
|
|
:: Exe dedi path (leave default!)
|
|
set exe_path=bin\plutonium-bootstrapper-win32.exe
|
|
::IMPORTANT! Make sure the filename is unique for each server you clone!
|
|
set log_file=games_mp.log
|
|
|
|
|
|
title Plutonium - %name% - Server restarter
|
|
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
|
echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"!
|
|
echo To shut down the server close this window first!
|
|
echo (%date%) - (%time%) %name% server start.
|
|
|
|
cd /D %pluto_path%
|
|
:server
|
|
start /wait /abovenormal /b "%name%" "%exe_path%" %pluto_game_mode% "%gamepath%" -dedicated -key "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +set g_log "%log_file%" +exec "%cfg%" %cmd_extras% +map_rotate
|
|
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
|
goto server
|
|
|